diff options
| author | Manfred Spraul <manfred@colorfullife.com> | 2002-12-22 02:59:07 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-12-22 02:59:07 -0800 |
| commit | dd0f2bdff18ce10b7d4d634be46f57c875e5accd (patch) | |
| tree | ea372d94f231b324a64d41d7ee1f0b52158629d9 /include | |
| parent | 576d92d62e719887a9108f75378700ffaddd34ea (diff) | |
[PATCH] Avoid overwriting boot_cpu_data from trampoline code
boot_cpu_data should contain the common capabilities of all cpus in the
system. identify_cpu [arch/i386/kernel/cpu/common.c] tries to enforce
that. But right now, the SMP trampoline code [arch/i386/kernel/head.S]
overwrites boot_cpu_data when the secondary cpus are started, i.e.
boot_cpu_data contains the capabilities from the last cpu that booted :-(
The attached patch adds a new, __initdata variable for the asm code.
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-i386/processor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h index ac467d123706..bf944abdf821 100644 --- a/include/asm-i386/processor.h +++ b/include/asm-i386/processor.h @@ -78,6 +78,7 @@ struct cpuinfo_x86 { */ extern struct cpuinfo_x86 boot_cpu_data; +extern struct cpuinfo_x86 new_cpu_data; extern struct tss_struct init_tss[NR_CPUS]; #ifdef CONFIG_SMP |
