Store the original value of stack pointer to the exception frame
(the value we had before supervisor exception occurred). This helps consumers (e.g. DTrace) to not proceed additional calculations. Sponsored by: DARPA, AFRL Sponsored by: HEIF5
This commit is contained in:
parent
b938d7c285
commit
17dc82e99f
@ -93,7 +93,9 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
.if \el == 1
|
||||
/* Store kernel sp */
|
||||
sd sp, (TF_SP)(sp)
|
||||
li t1, TF_SIZE
|
||||
add t0, sp, t1
|
||||
sd t0, (TF_SP)(sp)
|
||||
.else
|
||||
/* Store user sp */
|
||||
csrr t0, sscratch
|
||||
|
Loading…
x
Reference in New Issue
Block a user