From f312ec0097a1f518e9585c5756443752c457d60e Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 29 Jul 2024 02:17:24 -0400 Subject: 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 --- sys/arch/amd64/amd64/trap.S | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/arch') 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) -- cgit v1.2.3