diff options
author | Konrad Witaszczyk <def@FreeBSD.org> | 2025-09-16 11:21:57 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2025-09-16 11:23:58 +0000 |
commit | 99213b3c352cdf568ea7cf5b4dddb1879f16a601 (patch) | |
tree | f05ffa6108cc0a179ab53ee2e5911327bcce5ec7 /sys/ufs/ffs/(public-mirror) | |
parent | 7314f78b240bdbf2bcec07e3d5a475e37941bb6b (diff) |
x18 is overwritten with a temporary copy of the kernel stack pointer
when it is saved in the trapframe. This does not matter in terms of
function since nested exception return does not restore x18 from the
trapframe, but it does mean that examining x18 in a debugger in stack
frames above a nested fault outputs the wrong register value.
To fix, compute the value of the original stack pointer to save in x18
later after the trapframe has been constructed.
Reviewed by: jhb, andrew
Sponsored by: AFRL, DARPA
Differential Revision: https://reviews.freebsd.org/D52472
Diffstat (limited to 'sys/ufs/ffs/(public-mirror)')
0 files changed, 0 insertions, 0 deletions