2010-05-07 Michael Walle <michael@walle.cc>

* shared/start/start.S: Add support for qemu-system-lm32 shutdown
	device.
This commit is contained in:
Joel Sherrill
2010-05-07 19:02:45 +00:00
parent e455a1252f
commit 02b38baaf2
2 changed files with 12 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2010-05-07 Michael Walle <michael@walle.cc>
* shared/start/start.S: Add support for qemu-system-lm32 shutdown
device.
2009-11-25 Michael Walle <michael@walle.cc>
* shared/gdbstub/lm32-stub.c: Fix wrong computation of negative branch

View File

@@ -150,10 +150,16 @@ crt0:
call r7
# boot_card returns when RTEMS is shutdown
#if ON_SIMULATOR
#if defined(ON_GDB_SIM)
#define SYS_exit 1
mvi r8, SYS_exit
scall
#else
# on qemu-lm32
mvhi r7, hi(SYS_CTRL_REG)
ori r7, r7, lo(SYS_CTRL_REG)
sw (r7+0), r0
#endif
#endif
.dead_end: