BeRTOS
Defines
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)   (reg)
 Default for macro not defined in the right arch section.
#define CPU_IDLE   PAUSE
 Invoked by the scheduler to stop the CPU when idle.
#define CPU_CREATE_NEW_STACK(stack)
 Default macro for creating a new Process stack.

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   PAUSE

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 260 of file frame.h.