mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Use the correct offsets for the trap frame in fork_trampoline.
Sponsored by: DARPA, AFRL
This commit is contained in:
parent
7f98104d1f
commit
e403f9865d
1 changed files with 2 additions and 2 deletions
|
|
@ -236,12 +236,12 @@ ENTRY(fork_trampoline)
|
|||
msr daifset, #2
|
||||
|
||||
/* Restore sp and lr */
|
||||
ldp x0, x1, [sp]
|
||||
ldp x0, x1, [sp, #TF_SP]
|
||||
msr sp_el0, x0
|
||||
mov lr, x1
|
||||
|
||||
/* Restore elr and spsr */
|
||||
ldp x0, x1, [sp, #16]
|
||||
ldp x0, x1, [sp, #TF_ELR]
|
||||
msr elr_el1, x0
|
||||
msr spsr_el1, x1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue