switch_ctx_cm3.c File Reference

Cortex-M3 context switch. More...

#include <cfg/compiler.h>
#include <cfg/cfg_proc.h>
#include <cpu/irq.h>
#include <cpu/types.h>
#include <kern/proc_p.h>
#include <kern/proc.h>
#include "switch_ctx_cm3.h"

Go to the source code of this file.

Functions

void NAKED asm_switch_context (cpu_stack_t **new_sp, cpu_stack_t **old_sp)
 CPU dependent context switching routines.

Detailed Description

Cortex-M3 context switch.

Author:
Andrea Righi <arighi@develer.com>

Definition in file switch_ctx_cm3.c.


Function Documentation

void NAKED asm_switch_context ( cpu_stack_t **  new_sp,
cpu_stack_t **  save_sp 
)

CPU dependent context switching routines.

Saving and restoring the context on the stack is done by a CPU-dependent support routine which usually needs to be written in assembly.

Definition at line 126 of file switch_ctx_cm3.c.