]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] start_kernel: test if irq's got enabled early, barf, and disable them again
authorArd van Breemen <ard@telegraafnet.nl>
Thu, 11 Jan 2007 15:21:52 +0000 (10:21 -0500)
committerChris Wright <chrisw@sous-sol.org>
Mon, 5 Feb 2007 16:31:41 +0000 (08:31 -0800)
commita9281060e889df67249949013c22858135068738
tree0c3fdd3cf6672cf99626d7594f476e43478f0651
parent3167f4ef8f28a9a94b6463a83488107b99387e4d
[PATCH] 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: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
init/main.c