forked from Imagelibrary/rtems
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:
@@ -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.
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user