Changeset daa0add in rtems


Ignore:
Timestamp:
Mar 2, 2010, 4:25:06 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
c9df21a4
Parents:
d3cfd63
Message:

2010-03-02 Michael Walle <michael@…>

  • cpu.c: Provide body for CPU specific Idle thread. This halts on qemu but is just a nop on a real cpu.
Location:
cpukit/score/cpu/lm32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/lm32/ChangeLog

    rd3cfd63 rdaa0add  
     12010-03-02      Michael Walle <michael@walle.cc>
     2
     3        * cpu.c: Provide body for CPU specific Idle thread. This halts on qemu
     4        but is just a nop on a real cpu.
     5
    162009-05-05      Michael Walle <michael@walle.cc>
    27
  • cpukit/score/cpu/lm32/cpu.c

    rd3cfd63 rdaa0add  
    162162void *_CPU_Thread_Idle_body( uintptr_t ignored )
    163163{
    164 
    165   for( ; ; )
    166     /* insert your "halt" instruction here */ ;
     164  for( ; ; ) {
     165    /* The LM32 softcore itself hasn't any HLT instruction. But the
     166     * LM32 qemu target interprets this nop instruction as HLT.
     167     */
     168    asm volatile("and r0, r0, r0");
     169 }
    167170}
Note: See TracChangeset for help on using the changeset viewer.