Use the correct offsets for the trap frame in fork_trampoline.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2018-11-01 10:25:22 +00:00
parent 7f98104d1f
commit e403f9865d

View File

@ -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