]> err.no Git - linux-2.6/commit
x86: BUILD_IRQ say .text to avoid .data.percpu
authorHugh Dickins <hugh@veritas.com>
Mon, 21 Jul 2008 17:41:26 +0000 (18:41 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 24 Jul 2008 10:42:57 +0000 (12:42 +0200)
commit9d25d4db81833029d30b7b03cc1000cbbe09e192
treef8e153d16a004ddc5f9a0de135f3662f4181c2c2
parent2dc1697eb355c34f9f7bcbbb83f490de248c360a
x86: BUILD_IRQ say .text to avoid .data.percpu

When I edit the x86_64 Makefile to -fno-unit-at-a-time, bootup panics
on 0xCCs in IRQ0x3e_interrupt(): IRQ0x20_interrupt etc. have got linked
into .data.percpu.  Perhaps there are other ways of triggering that:
specify ".text" in the BUILD_IRQ() macro for safety.

I've been using -fno-unit-at-a-time (to lessen inlining, for easier
debugging) for a long time.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/irqinit_64.c