mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +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
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.global _setjmp
|
||||||
.global setjmp
|
.global setjmp
|
||||||
|
_setjmp:
|
||||||
setjmp:
|
setjmp:
|
||||||
# FIXME: Possibly incomplete.
|
# FIXME: Possibly incomplete.
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
.global _longjmp
|
||||||
.global longjmp
|
.global longjmp
|
||||||
|
_longjmp:
|
||||||
longjmp:
|
longjmp:
|
||||||
# FIXME: Possibly incomplete.
|
# FIXME: Possibly incomplete.
|
||||||
ret
|
ret
|
||||||
|
|
|
@ -10,7 +10,9 @@
|
||||||
// /!\ Read setjmp.h before modifying this file!
|
// /!\ Read setjmp.h before modifying this file!
|
||||||
//
|
//
|
||||||
|
|
||||||
|
.global _setjmp
|
||||||
.global setjmp
|
.global setjmp
|
||||||
|
_setjmp:
|
||||||
setjmp:
|
setjmp:
|
||||||
mov $0, %esi // Set val argument to 0
|
mov $0, %esi // Set val argument to 0
|
||||||
|
|
||||||
|
@ -44,7 +46,9 @@ sigsetjmp:
|
||||||
xor %eax, %eax
|
xor %eax, %eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
.global _longjmp
|
||||||
.global longjmp
|
.global longjmp
|
||||||
|
_longjmp:
|
||||||
longjmp:
|
longjmp:
|
||||||
mov %esi, %eax
|
mov %esi, %eax
|
||||||
test %eax, %eax
|
test %eax, %eax
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue