forked from Imagelibrary/rtems
2000-04-23 Jiri Gaisler <jiri@gaisler.com>
* start.S: Modificatins to preserve the current CWP and adjust the WIM accordingly. This improves compatibility with the remote debugger and the mkprom prom-builder.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2000-04-23 Jiri Gaisler <jiri@gaisler.com>
|
||||
|
||||
* start.S: Modificatins to preserve the current CWP and adjust the
|
||||
WIM accordingly. This improves compatibility with the remote
|
||||
debugger and the mkprom prom-builder.
|
||||
|
||||
2000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>
|
||||
|
||||
* ChangeLog, .cvsignore, Makefile.am, bspclean.c, bspstart.c,
|
||||
|
||||
@@ -199,14 +199,18 @@ SYM(hard_reset):
|
||||
|
||||
/* Common initialisation */
|
||||
|
||||
set SYM(trap_table), %g1 ! Initialize TBR
|
||||
set SYM(trap_table), %g1 ! Initialize TBR
|
||||
mov %g1, %tbr
|
||||
|
||||
set WIM_INIT, %g1 ! Initialize WIM
|
||||
mov %g1, %wim
|
||||
mov %psr, %g1 ! Initialize WIM
|
||||
add %g1, 1, %g2
|
||||
and %g2, 0x7, %g2
|
||||
set 1, %g3
|
||||
sll %g3, %g2, %g3
|
||||
mov %g3, %wim
|
||||
|
||||
set PSR_INIT, %g1
|
||||
wr %g1, 0x20, %psr ! enable traps
|
||||
or %g1, 0x20, %g1
|
||||
wr %g1, %psr ! enable traps
|
||||
|
||||
nop
|
||||
nop
|
||||
|
||||
Reference in New Issue
Block a user