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>
|
2000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>
|
||||||
|
|
||||||
* ChangeLog, .cvsignore, Makefile.am, bspclean.c, bspstart.c,
|
* ChangeLog, .cvsignore, Makefile.am, bspclean.c, bspstart.c,
|
||||||
|
|||||||
@@ -199,14 +199,18 @@ SYM(hard_reset):
|
|||||||
|
|
||||||
/* Common initialisation */
|
/* Common initialisation */
|
||||||
|
|
||||||
set SYM(trap_table), %g1 ! Initialize TBR
|
set SYM(trap_table), %g1 ! Initialize TBR
|
||||||
mov %g1, %tbr
|
mov %g1, %tbr
|
||||||
|
|
||||||
set WIM_INIT, %g1 ! Initialize WIM
|
mov %psr, %g1 ! Initialize WIM
|
||||||
mov %g1, %wim
|
add %g1, 1, %g2
|
||||||
|
and %g2, 0x7, %g2
|
||||||
|
set 1, %g3
|
||||||
|
sll %g3, %g2, %g3
|
||||||
|
mov %g3, %wim
|
||||||
|
|
||||||
set PSR_INIT, %g1
|
or %g1, 0x20, %g1
|
||||||
wr %g1, 0x20, %psr ! enable traps
|
wr %g1, %psr ! enable traps
|
||||||
|
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
|
|||||||
Reference in New Issue
Block a user