diff options
author | Ian Moffett <ian@osmora.org> | 2024-07-29 02:17:24 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-07-29 02:17:24 -0400 |
commit | f312ec0097a1f518e9585c5756443752c457d60e (patch) | |
tree | c68106b2c6afa5ffa6207ad68dc1458d19b92b8a /sys/arch/amd64/amd64 | |
parent | 6b6133186d9eb1fb076e63013b1ed3bdaebea973 (diff) |
kernel/amd64: Use only defines + handle err codes
- Use only defines in frame.h
- Improve handling of trap error codes
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/trap.S | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/amd64/amd64/trap.S b/sys/arch/amd64/amd64/trap.S index ce70138..e5ec205 100644 --- a/sys/arch/amd64/amd64/trap.S +++ b/sys/arch/amd64/amd64/trap.S @@ -47,22 +47,22 @@ TRAPENTRY(bound_range, $TRAP_BOUND_RANGE) TRAPENTRY(invl_op, $TRAP_INVLOP) .globl double_fault -TRAPENTRY(double_fault, $TRAP_DOUBLE_FAULT) +TRAPENTRY_EC(double_fault, $TRAP_DOUBLE_FAULT) .globl invl_tss -TRAPENTRY(invl_tss, $TRAP_INVLTSS) +TRAPENTRY_EC(invl_tss, $TRAP_INVLTSS) .globl segnp -TRAPENTRY(segnp, $TRAP_SEGNP) +TRAPENTRY_EC(segnp, $TRAP_SEGNP) .globl general_prot -TRAPENTRY(general_prot, $TRAP_PROTFLT) +TRAPENTRY_EC(general_prot, $TRAP_PROTFLT) .globl page_fault -TRAPENTRY(page_fault, $TRAP_PAGEFLT) +TRAPENTRY_EC(page_fault, $TRAP_PAGEFLT) .globl nmi TRAPENTRY(nmi, $TRAP_NMI) .globl ss_fault -TRAPENTRY(ss_fault, $TRAP_SS) +TRAPENTRY_EC(ss_fault, $TRAP_SS) |