Store the original value of stack pointer to the exception frame
commit17dc82e99feb7c8a74c2f537636839ab86f57dd3
authorbr <br@FreeBSD.org>
Tue, 24 May 2016 13:59:13 +0000 (24 13:59 +0000)
committerbr <br@FreeBSD.org>
Tue, 24 May 2016 13:59:13 +0000 (24 13:59 +0000)
tree8f5c395bfee76d8bcca1ce0396878389f31ede23
parentb938d7c2851e0fffc3a04fd6ff208cdfa5b01788
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
sys/riscv/riscv/exception.S