Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/asm.h

    r3896974 r9d58539  
    4343#include <trace.h>
    4444
    45 /** No such instruction on old ARM to sleep CPU.
    46  *
    47  * ARMv7 introduced wait for event and wait for interrupt (wfe/wfi).
    48  * ARM920T has custom coprocessor action to do the same. See ARM920T Technical
    49  * Reference Manual ch 4.9 p. 4-23 (103 in the PDF)
    50  */
     45/** No such instruction on ARM to sleep CPU. */
    5146NO_TRACE static inline void cpu_sleep(void)
    5247{
    53 #ifdef PROCESSOR_armv7_a
    54         asm volatile ( "wfe" :: );
    55 #elif defined(MACHINE_gta02)
    56         asm volatile ( "mcr p15,0,R0,c7,c0,4" :: );
    57 #endif
    5848}
    5949
Note: See TracChangeset for help on using the changeset viewer.