Unify trap handler naming and remove unused kernel mode stack setup
Some checks failed
Builds / ExectOS (amd64, release) (push) Failing after 40s
Builds / ExectOS (amd64, debug) (push) Successful in 34s
Builds / ExectOS (i686, debug) (push) Successful in 32s
Builds / ExectOS (i686, release) (push) Successful in 39s

This commit is contained in:
2026-04-08 19:52:55 +02:00
parent f1476912f3
commit 4f65773aa9
2 changed files with 8 additions and 17 deletions

View File

@@ -119,11 +119,11 @@ Ar\Type\Vector:
mov %al, KTRAP_FRAME_PreviousMode(%rbp)
/* Skip swapgs as the interrupt originated from kernel mode */
jz UserMode\Type\Vector
jz Dispatch\Type\Vector
swapgs
UserMode\Type\Vector:
Dispatch\Type\Vector:
/* Set up trap frame pointer for the dispatcher and clear the direction flag */
mov %rsp, %rcx
cld
@@ -150,11 +150,11 @@ UserMode\Type\Vector:
/* Test previous mode and swapgs if needed */
testb $1, KTRAP_FRAME_PreviousMode(%rbp)
jz KernelModeReturn\Type\Vector
jz RestoreState\Type\Vector
cli
swapgs
KernelModeReturn\Type\Vector:
RestoreState\Type\Vector:
/* Restore XMM registers */
movdqa KTRAP_FRAME_Xmm0(%rbp), %xmm0
movdqa KTRAP_FRAME_Xmm1(%rbp), %xmm1