diff options
author | rtm <rtm> | 2006-06-12 15:22:12 +0000 |
---|---|---|
committer | rtm <rtm> | 2006-06-12 15:22:12 +0000 |
commit | 55e95b16db458b7f9abeca96e541acbdf8d7f85b (patch) | |
tree | 92a1fcb6f1cdede7ab83b37acabf76e1bc1b10f4 /trapasm.S | |
download | xv6-labs-55e95b16db458b7f9abeca96e541acbdf8d7f85b.tar.gz xv6-labs-55e95b16db458b7f9abeca96e541acbdf8d7f85b.tar.bz2 xv6-labs-55e95b16db458b7f9abeca96e541acbdf8d7f85b.zip |
import
Diffstat (limited to 'trapasm.S')
-rw-r--r-- | trapasm.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/trapasm.S b/trapasm.S new file mode 100644 index 0000000..69649ff --- /dev/null +++ b/trapasm.S @@ -0,0 +1,12 @@ + .text + .globl trapret + /* + * a forked process RETs here + * expects ESP to point to a Trapframe + */ +trapret: + popal + popl %es + popl %ds + addl $0x8, %esp /* trapno and errcode */ + iret |