]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ARM: Fix kernel stack offset calculations
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 5 May 2005 12:11:00 +0000 (13:11 +0100)
committerRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 5 May 2005 12:11:00 +0000 (13:11 +0100)
commit8a05cbcdfbaff06e57431754b0894998dbd02f8c
tree978f55875b776c83ebcfed24737784ac098d1a4e
parentf2414a8895e45d09f8b44210d811ff78df73d8ea
[PATCH] ARM: Fix kernel stack offset calculations

Various places in the ARM kernel implicitly assumed that kernel
stacks are always 8K due to hard coded constants.  Replace these
constants with definitions.

Correct the allowable range of kernel stack pointer values within
the allocation.  Arrange for the entire kernel stack to be zeroed,
not just the upper 4K if CONFIG_DEBUG_STACK_USAGE is set.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
arch/arm/kernel/head.S
arch/arm/kernel/process.c
arch/arm/kernel/sys_arm.c
arch/arm/kernel/traps.c
arch/arm/kernel/vmlinux.lds.S
include/asm-arm/processor.h
include/asm-arm/thread_info.h