Changeset 1c5f6f8 in mainline


Ignore:
Timestamp:
2013-09-13T12:16:19Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
adec6a29, b5ba8f6
Parents:
67fbd5e
Message:

Use the WAIT instruction on mips32.

  • Both QEMU and msim support this instruction and it actually helps to keep the CPU fan spinned down when simulating Malta.
File:
1 edited

Legend:

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

    r67fbd5e r1c5f6f8  
    4242NO_TRACE static inline void cpu_sleep(void)
    4343{
    44         /*
    45          * Unfortunatelly most of the simulators do not support
    46          *
    47          * asm volatile (
    48          *     "wait"
    49          * );
    50          *
    51          */
     44        asm volatile ("wait");
    5245}
    5346
Note: See TracChangeset for help on using the changeset viewer.