2010-11-15 Gedare Bloom <giddyup44@yahoo.com>

PR 1691/bsps
	* usiii/start/bspinit.S: Create a dummy trap table that jumps
	to the firmware trap table for default trap handlers.
This commit is contained in:
Joel Sherrill
2010-11-16 23:19:58 +00:00
parent db5f1341c2
commit 982b484912
2 changed files with 17 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
2010-11-15 Gedare Bloom <giddyup44@yahoo.com>
PR 1691/bsps
* usiii/start/bspinit.S: Create a dummy trap table that jumps
to the firmware trap table for default trap handlers.
2010-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore, include/.cvsignore: New files.

View File

@@ -35,12 +35,17 @@ PUBLIC(_BSP_init)
SYM(_BSP_init):
save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp
/* copy firmware trap table so that RTEMS can install ISR handlers */
setx SYM(trap_table), %l0, %o0
rdpr %tba, %o1
set TABLE_SIZE, %o2
call memcpy
nop
! copy the tba
sethi %hi(real_trap_table), %o0
rdpr %tba, %o2
stx %o2, [%o0 + %lo(real_trap_table)]
! /* copy firmware trap table so that RTEMS can install ISR handlers */
! setx SYM(trap_table), %l0, %o0
! rdpr %tba, %o1
! set TABLE_SIZE, %o2
! call memcpy
! nop
mov %g0, %o0
call _take_mmu