/branches/arm/kernel/arch/arm32/include/exception.h |
---|
68,6 → 68,22 |
#define EXC_FIQ 6 |
/** Kernel stack pointer. |
* |
* It is set when thread switches to user mode, |
* and then used for exception handling. |
*/ |
extern uintptr_t supervisor_sp; |
/** Temporary exception stack pointer. |
* |
* Temporary stack is used in exceptions handling routines |
* before switching to thread's kernel stack. |
*/ |
extern uintptr_t exc_stack; |
/** Structure representing CPU state saved when an exception occurs. */ |
typedef struct { |
uint32_t spsr; |
/branches/arm/kernel/arch/arm32/src/exception.c |
---|
60,21 → 60,6 |
#define EXC_VECTORS_SIZE (EXC_VECTORS * 4) |
/** Kernel stack pointer. |
* |
* It is set when thread switches to user mode, |
* and then used for exception handling. |
*/ |
extern uintptr_t supervisor_sp; |
/** Temporary exception stack pointer. |
* |
* Temporary stack is used in exceptions handling routines |
* before switching to thread's kernel stack. |
*/ |
extern uintptr_t exc_stack; |
/** Switches to kernel stack and saves all registers there. |
* |
* Temporary exception stack is used to save a few registers |
/branches/arm/kernel/arch/arm32/src/arm32.c |
---|
53,14 → 53,7 |
/** Information about loaded tasks. */ |
bootinfo_t bootinfo; |
/** Temporary exception stack pointer. |
* |
* Temporary stack is used in exceptions handling routines |
* before switching to thread's kernel stack. |
*/ |
extern uintptr_t supervisor_sp; |
/** Performs arm32 specific initialization before main_bsp() is called. */ |
void arch_pre_main(void) |
{ |