URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
.include "../../asm/testutils.inc"
|
.include "../../asm/testutils.inc"
|
|
|
# Define an exception vector table "vecname" with a single
|
# Define an exception vector table "vecname" with a single
|
# vector number "n" as "entry", all others "other".
|
# vector number "n" as "entry", all others "other".
|
# V32 only needs 1<<10 alignment, earlier versions need 1<<16.
|
# V32 only needs 1<<10 alignment, earlier versions need 1<<16.
|
.macro singlevec vecname vecno entry other=killme
|
.macro singlevec vecname vecno entry other=killme
|
.section .text.exvec
|
.section .text.exvec
|
.p2align 16
|
.p2align 16
|
\vecname:
|
\vecname:
|
.if (\vecno)
|
.if (\vecno)
|
.rept \vecno
|
.rept \vecno
|
.dword \other
|
.dword \other
|
.endr
|
.endr
|
.endif
|
.endif
|
.dword \entry
|
.dword \entry
|
.if (\vecno)-255
|
.if (\vecno)-255
|
.rept 256-(\vecno)-1
|
.rept 256-(\vecno)-1
|
.dword \other
|
.dword \other
|
.endr
|
.endr
|
.endif
|
.endif
|
.previous
|
.previous
|
.endm
|
.endm
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.