]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] start_kernel: test if irq's got enabled early, barf, and disable them again
authorArd van Breemen <ard@telegraafnet.nl>
Sat, 6 Jan 2007 00:36:19 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:21 +0000 (23:55 -0800)
commit943f09170fd66ebea1e12e3fc5c7f65b546540bf
treecd4479ae882bb52b00d71f85956ba8e1d0fdc03b
parent800ed73a90f0fa5fe22cc0090e18fcd13c5d7a63
[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>
init/main.c