2010-03-02 Michael Walle <michael@walle.cc>

* cpu.c: Provide body for CPU specific Idle thread. This halts on qemu
	but is just a nop on a real cpu.
This commit is contained in:
Joel Sherrill
2010-03-02 16:25:06 +00:00
parent d3cfd63fd3
commit daa0addc73
2 changed files with 11 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2010-03-02 Michael Walle <michael@walle.cc>
* cpu.c: Provide body for CPU specific Idle thread. This halts on qemu
but is just a nop on a real cpu.
2009-05-05 Michael Walle <michael@walle.cc>
* cpu_asm.S, irq.c, rtems/score/cpu.h: Add lm32 gdb stub support.

View File

@@ -161,7 +161,10 @@ void _CPU_Install_interrupt_stack( void )
void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
for( ; ; )
/* insert your "halt" instruction here */ ;
for( ; ; ) {
/* The LM32 softcore itself hasn't any HLT instruction. But the
* LM32 qemu target interprets this nop instruction as HLT.
*/
asm volatile("and r0, r0, r0");
}
}