xref: /xv6-public/trapasm.S (revision 55e95b16)
1	.text
2        .globl trapret
3	/*
4         * a forked process RETs here
5         * expects ESP to point to a Trapframe
6         */
7trapret:
8        popal
9        popl %es
10        popl %ds
11        addl $0x8, %esp /* trapno and errcode */
12        iret
13