mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +00:00
LibC: Declare _setjmp and _longjmp on non i386 platforms
These aliases were previously only implemented for i386 and are required for certain Ports e.g. Lua.
This commit is contained in:
parent
41cb705b47
commit
743f46030c
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue