9ab0998ae6
After recent changes to jerry-libc, `syscall_N` C functions became pure trampolines to their appropriate `syscall_N_asm` counterparts written in assembly. Removing the C functions and renaming the assembly functions to take their place simplifies the code. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
57 lines
1.0 KiB
ArmAsm
57 lines
1.0 KiB
ArmAsm
#ifdef __TARGET_HOST_x64
|
|
# include "arch/x86-64.h"
|
|
#elif defined (__TARGET_HOST_x86)
|
|
# include "arch/x86-32.h"
|
|
#elif defined (__TARGET_HOST_ARMv7)
|
|
# include "arch/arm-v7.h"
|
|
#else /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
|
|
# error "!__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7"
|
|
#endif /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
|
|
|
|
.global _start
|
|
_start:
|
|
_START
|
|
|
|
.global syscall_0
|
|
syscall_0:
|
|
SYSCALL_0
|
|
|
|
.global syscall_1
|
|
syscall_1:
|
|
SYSCALL_1
|
|
|
|
.global syscall_2
|
|
syscall_2:
|
|
SYSCALL_2
|
|
|
|
.global syscall_3
|
|
syscall_3:
|
|
SYSCALL_3
|
|
|
|
/**
|
|
* setjmp (jmp_buf env)
|
|
*
|
|
* See also:
|
|
* longjmp
|
|
*
|
|
* @return 0 - if returns from direct call,
|
|
* nonzero - if returns after longjmp.
|
|
*/
|
|
.global setjmp
|
|
setjmp:
|
|
_SETJMP
|
|
|
|
/**
|
|
* longjmp (jmp_buf env, int val)
|
|
*
|
|
* Note:
|
|
* if val is not 0, then it would be returned from setjmp,
|
|
* otherwise - 0 would be returned.
|
|
*
|
|
* See also:
|
|
* setjmp
|
|
*/
|
|
.global longjmp
|
|
longjmp:
|
|
_LONGJMP
|