summaryrefslogtreecommitdiff
path: root/trapasm.S
blob: 69649ff7ffcdee4a8130a7bb5c77a03fcedd9d0b (plain)
1
2
3
4
5
6
7
8
9
10
11
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