| 1 |
.include "../../asm/testutils.inc" |
| 2 |
|
| 3 |
# Define an exception vector table "vecname" with a single |
| 4 |
# vector number "n" as "entry", all others "other". |
| 5 |
# V32 only needs 1<<10 alignment, earlier versions need 1<<16. |
| 6 |
.macro singlevec vecname vecno entry other=killme |
| 7 |
.section .text.exvec |
| 8 |
.p2align 16 |
| 9 |
\vecname: |
| 10 |
.if (\vecno) |
| 11 |
.rept \vecno |
| 12 |
.dword \other |
| 13 |
.endr |
| 14 |
.endif |
| 15 |
.dword \entry |
| 16 |
.if (\vecno)-255 |
| 17 |
.rept 256-(\vecno)-1 |
| 18 |
.dword \other |
| 19 |
.endr |
| 20 |
.endif |
| 21 |
.previous |
| 22 |
.endm |