From 55e95b16db458b7f9abeca96e541acbdf8d7f85b Mon Sep 17 00:00:00 2001 From: rtm Date: Mon, 12 Jun 2006 15:22:12 +0000 Subject: import --- trapasm.S | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 trapasm.S (limited to 'trapasm.S') 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 -- cgit v1.2.3