Fix an off-by-one bug in the trap frame

This commit is contained in:
Ruihan Li 2025-10-15 23:38:57 +08:00 committed by Tate, Hongliang Tian
parent fe7dc1f83e
commit 384e5bc70d
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
* We make the following new changes:
* * Add the `trap_handler_table`.
* * Adjust some symbol names.
* * Fix an off-by-one bug to correct the RSP value in the trap frame.
*
* These changes are released under the following license:
*
@ -113,7 +114,7 @@ _trap_from_kernel:
push r10
push r9
push r8
lea r8, [rsp + 13*8]
lea r8, [rsp + 14*8]
push r8 # push rsp
push rbp
push rdi