mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:38:10 +00:00
LibC: Oops, setjmp() and longjmp() were not exported.
This commit is contained in:
parent
37ab7b7a8c
commit
3ebbefd916
1 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,8 @@
|
|||
#include <Kernel/Syscall.h>
|
||||
|
||||
asm(
|
||||
"setjmp:\n\
|
||||
".globl setjmp\n\
|
||||
setjmp:\n\
|
||||
movl %ebx, 0(%eax)\n\
|
||||
movl %esi, 4(%eax)\n\
|
||||
movl %edi, 8(%eax)\n\
|
||||
|
@ -16,7 +17,8 @@ asm(
|
|||
");
|
||||
|
||||
asm(
|
||||
"longjmp:\n\
|
||||
".globl longjmp\n\
|
||||
longjmp:\n\
|
||||
xchgl %edx, %eax\n\
|
||||
test %eax, %eax\n\
|
||||
jnz 1f\n\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue