frame.h File Reference

CPU-specific stack frame handling macros. More...

#include <cpu/detect.h>
#include "cfg/cfg_arch.h"
#include <cfg/compiler.h>

Go to the source code of this file.


Defines

#define CPU_REG_INIT_VALUE(reg)   0
 Default for macro not defined in the right arch section.
#define CPU_IDLE   do { /* nothing */ } while (0)
 Invoked by the scheduler to stop the CPU when idle.

Detailed Description

CPU-specific stack frame handling macros.

These are mainly used by the portable part of the scheduler to work with the process stack frames.

Author:
Giovanni Bajo <rasky@develer.com>

Bernie Innocenti <bernie@codewiz.org>

Stefano Fedrigo <aleph@develer.com>

Francesco Sacchi <batt@develer.com>

Definition in file frame.h.


Define Documentation

#define CPU_IDLE   do { /* nothing */ } while (0)

Invoked by the scheduler to stop the CPU when idle.

This hook can be redefined to put the CPU in low-power mode, or to profile system load with an external strobe, or to save CPU cycles in hosted environments such as emulators.

Definition at line 243 of file frame.h.