start_kernel: test if irq's got enabled early, barf, and disable them again
authorArd van Breemen <ard@telegraafnet.nl>
Fri, 20 Apr 2007 22:10:28 +0000 (00:10 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 20 Apr 2007 22:10:28 +0000 (00:10 +0200)
commitcfef930041a5dba4d3c8eb03d9d24fae9b129b08
treea76533ec34b574fe07945a6c2a8c77354e98a1ca
parentae0199ba95ac7d5f45a565afb4adf8bb1e7ef59c
start_kernel: test if irq's got enabled early, barf, and disable them again

The calls made by parse_parms to other initialization code might enable
interrupts again way too early.

Having interrupts on this early can make systems PANIC when they initialize
the IRQ controllers (which happens later in the code).  This patch detects
that irq's are enabled again, barfs about it and disables them again as a
safety net.

[akpm@osdl.org: cleanups]
Signed-off-by: Ard van Breemen <ard@telegraafnet.nl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
init/main.c