Commit 0f7d6d6e authored by Andrew Jones's avatar Andrew Jones Committed by Marcelo Tosatti
Browse files

arm: clarify comment about exception stack use

Each mode has its own stack, but we only use it as a base pointer
to a private memory region. That region, which has a size of
sizeof(struct pt_regs), is used to store some registers during the
switch to svc mode - which will use the normal svc stack. The switch
to svc mode is done because we handle all exceptions in svc.

Signed-off-by: Andrew Jones's avatarAndrew Jones <>
Signed-off-by: default avatarMarcelo Tosatti <>
parent 44bd4c1d
......@@ -121,8 +121,9 @@ asm_mmu_enable:
* Simplified version of the Linux kernel implementation
* arch/arm/kernel/entry-armv.S
* Each mode has an S_FRAME_SIZE sized stack initialized
* in exceptions_init
* Each mode has an S_FRAME_SIZE sized memory region,
* and the mode's stack pointer has been initialized
* to the base of that region in exceptions_init.
.macro vector_stub, name, vec, mode, correction=0
.align 5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment