diff options
Diffstat (limited to 'trapasm.S')
-rw-r--r-- | trapasm.S | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/trapasm.S b/trapasm.S deleted file mode 100644 index da8aefc..0000000 --- a/trapasm.S +++ /dev/null @@ -1,32 +0,0 @@ -#include "mmu.h" - - # vectors.S sends all traps here. -.globl alltraps -alltraps: - # Build trap frame. - pushl %ds - pushl %es - pushl %fs - pushl %gs - pushal - - # Set up data segments. - movw $(SEG_KDATA<<3), %ax - movw %ax, %ds - movw %ax, %es - - # Call trap(tf), where tf=%esp - pushl %esp - call trap - addl $4, %esp - - # Return falls through to trapret... -.globl trapret -trapret: - popal - popl %gs - popl %fs - popl %es - popl %ds - addl $0x8, %esp # trapno and errcode - iret |