source: trunk/minix/lib/ack/i386/em/em_trp.s@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 266 bytes
Line 
1.sect .text; .sect .rom; .sect .data; .sect .bss
2.sect .text
3.define .trp
4.extern .trppc, .stop
5
6 ! eax is trap number
7.trp:
8 xor ebx,ebx
9 xchg ebx,(.trppc)
10 test ebx,ebx
11 jz 2f
12 push eax
13 call ebx
14 pop eax
15 ret
162:
17 push eax
18 call .stop
Note: See TracBrowser for help on using the repository browser.