summaryrefslogtreecommitdiff
path: root/trapasm.S
diff options
context:
space:
mode:
Diffstat (limited to 'trapasm.S')
-rw-r--r--trapasm.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/trapasm.S b/trapasm.S
index acdca99..962ba10 100644
--- a/trapasm.S
+++ b/trapasm.S
@@ -8,6 +8,8 @@ alltraps:
# Build trap frame.
pushl %ds
pushl %es
+ pushl %fs
+ pushl %gs
pushal
# Set up data segments.
@@ -24,6 +26,8 @@ alltraps:
.globl trapret
trapret:
popal
+ popl %gs
+ popl %fs
popl %es
popl %ds
addl $0x8, %esp # trapno and errcode