aarch64: use 0x516 as magic signal return address
This commit is contained in:
parent
bad793c600
commit
ba5c9d7847
@ -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(
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user