[nce] fix linux build

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-09-03 18:20:11 +00:00 committed by crueter
parent c1577d15dd
commit 5c848779bd
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
2 changed files with 5 additions and 2 deletions

View file

@ -71,8 +71,8 @@ _ZN4Core6ArmNce37ReturnToRunCodeByExceptionLevelChangeEiPv:
mov x1, #(ReturnToRunCodeByExceptionLevelChangeSignal)
#ifdef __APPLE__
/* I can never be happy, why no tkill in mach kernel? Ugh ... */
/* Signature: 43040 AUE_PTHREADKILL ALL { int __pthread_kill(int thread_port, int sig); } */
mov x16, #(43040)
/* Signature: 328 AUE_PTHREADKILL ALL { int __pthread_kill(int thread_port, int sig); } */
mov x16, #(328)
#else
/* Signature: int tgkill(pid_t tgid, pid_t tid, int sig); */
mov x8, #(__NR_tkill)

View file

@ -14,6 +14,9 @@
# ifdef __sun__
# include <sys/regset.h>
# endif
# ifdef __linux__
# include <sigcontext.h>
# endif
#endif
#ifndef MCL_ARCHITECTURE_RISCV