aarch64: use 0x516 as magic signal return address

This commit is contained in:
K. Lange 2024-01-22 21:08:21 +09:00
parent bad793c600
commit ba5c9d7847
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ void arch_enter_signal_handler(uintptr_t entrypoint, int signum, struct regs *r)
"r"(0));
register uint64_t x0 __asm__("x0") = signum;
register uint64_t x30 __asm__("x30") = 0x8DEADBEEF;
register uint64_t x30 __asm__("x30") = 0x516;
register uint64_t x4 __asm__("x4") = (uintptr_t)this_core->sp_el1;
asm volatile(

View File

@ -301,7 +301,7 @@ void aarch64_sync_enter(struct regs * r) {
}
/* Magic signal return */
if (elr == 0x8DEADBEEF && far == 0x8DEADBEEF) {
if (elr == 0x516 && far == 0x516) {
return_from_signal_handler(r);
goto _resume_user;
}