]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6961/1: zImage: Add build-time check for correctly-sized proc_type entries
authorDave Martin <dave.martin@linaro.org>
Tue, 14 Jun 2011 13:20:44 +0000 (14:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 21 Jun 2011 10:33:20 +0000 (11:33 +0100)
commit01fcd7a2b8399c65a1bfad289ef23d0a196fe3a8
treecc5c434db14553737808d7b86bb2d6938b06ca53
parenta7f4e1d3be058198efaa0776f4373f43635b0927
ARM: 6961/1: zImage: Add build-time check for correctly-sized proc_type entries

It is easy to mis-maintain the proc_types table such that the
entries become wrongly-sized and misaligned when the kernel is
built in Thumb-2.

This patch adds an assembly-time check which will turn most common
size/alignment mistakes in this table into build failures, to avoid
having to debug the boot-time kernel hang which would happen if the
resulting kernel were actually booted.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/head.S