source:
trunk/minix/lib/i386/em/em_trp.s@
10
Last change on this file since 10 was 9, checked in by , 14 years ago | |
---|---|
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 |
16 | 2: |
17 | push eax |
18 | call .stop |
Note:
See TracBrowser
for help on using the repository browser.