[libc] Implement setjmp/longjmp

Add a very simple setjmp/longjmp implementation. No destructors or other
cleanup is handled.
This commit is contained in:
Justin C. Miller
2024-08-08 19:31:20 -07:00
parent c6835dad70
commit 05c1361283
3 changed files with 90 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
; This file is part of the C standard library for the jsix operating
; system.
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at https://mozilla.org/MPL/2.0/.
extern _GLOBAL_OFFSET_TABLE_
extern main