diff options
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r-- | Userland/Libraries/LibC/arch/aarch64/setjmp.S | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibC/arch/x86_64/setjmp.S | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/arch/aarch64/setjmp.S b/Userland/Libraries/LibC/arch/aarch64/setjmp.S index 6ae11c4151..65a47ee966 100644 --- a/Userland/Libraries/LibC/arch/aarch64/setjmp.S +++ b/Userland/Libraries/LibC/arch/aarch64/setjmp.S @@ -4,12 +4,16 @@ * SPDX-License-Identifier: BSD-2-Clause */ +.global _setjmp .global setjmp +_setjmp: setjmp: # FIXME: Possibly incomplete. ret +.global _longjmp .global longjmp +_longjmp: longjmp: # FIXME: Possibly incomplete. ret diff --git a/Userland/Libraries/LibC/arch/x86_64/setjmp.S b/Userland/Libraries/LibC/arch/x86_64/setjmp.S index 57e401d2d0..db33fcf28e 100644 --- a/Userland/Libraries/LibC/arch/x86_64/setjmp.S +++ b/Userland/Libraries/LibC/arch/x86_64/setjmp.S @@ -10,7 +10,9 @@ // /!\ Read setjmp.h before modifying this file! // +.global _setjmp .global setjmp +_setjmp: setjmp: mov $0, %esi // Set val argument to 0 @@ -44,7 +46,9 @@ sigsetjmp: xor %eax, %eax ret +.global _longjmp .global longjmp +_longjmp: longjmp: mov %esi, %eax test %eax, %eax |