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