[nce] fix thread kill
All checks were successful
eden-license / license-header (pull_request) Successful in 24s
All checks were successful
eden-license / license-header (pull_request) Successful in 24s
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
1e1419a4bd
commit
7208dcaba1
2 changed files with 3 additions and 3 deletions
|
@ -71,8 +71,8 @@ _ZN4Core6ArmNce37ReturnToRunCodeByExceptionLevelChangeEiPv:
|
|||
mov x1, #(ReturnToRunCodeByExceptionLevelChangeSignal)
|
||||
#ifdef __APPLE__
|
||||
/* I can never be happy, why no tkill in mach kernel? Ugh ... */
|
||||
/* Signature: 328 AUE_PTHREADKILL ALL { int __pthread_kill(int thread_port, int sig); } */
|
||||
mov x16, #328
|
||||
/* Signature: 43040 AUE_PTHREADKILL ALL { int __pthread_kill(int thread_port, int sig); } */
|
||||
mov x16, #(43040)
|
||||
#else
|
||||
/* Signature: int tgkill(pid_t tgid, pid_t tid, int sig); */
|
||||
mov x8, #(__NR_tkill)
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
inline _STRUCT_ARM_NEON_STATE64* GetFloatingPointState(mcontext_t& host_ctx) {
|
||||
return &(host_ctx->__ns);
|
||||
}
|
||||
#else
|
||||
#elif defined(__linux__)
|
||||
inline fpsimd_context* GetFloatingPointState(mcontext_t& host_ctx) {
|
||||
_aarch64_ctx* header = reinterpret_cast<_aarch64_ctx*>(&host_ctx.__reserved);
|
||||
while (header->magic != FPSIMD_MAGIC) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue