aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-voyager
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-03-03 12:13:10 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:40:57 -0400
commitd507897b2f179a9b30ce2f91b768ed2ee84575bc (patch)
tree015cc30234e6987f9893e1c2795461e4867fa681 /arch/x86/mach-voyager
parent420688293927a590d092ec76ef97c2565ae21aff (diff)
x86: adapt voyager's trampoline_base
Change voyager's trampoline base to unsigned char * instead of u32. This way, it won't conflict with the other architectures when including smp.h Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mach-voyager')
-rw-r--r--arch/x86/mach-voyager/voyager_smp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/mach-voyager/voyager_smp.c b/arch/x86/mach-voyager/voyager_smp.c
index 3cc8eb2f36a9..20b7ce697ee8 100644
--- a/arch/x86/mach-voyager/voyager_smp.c
+++ b/arch/x86/mach-voyager/voyager_smp.c
@@ -210,7 +210,7 @@ static int cpucount = 0;
210/* steal a page from the bottom of memory for the trampoline and 210/* steal a page from the bottom of memory for the trampoline and
211 * squirrel its address away here. This will be in kernel virtual 211 * squirrel its address away here. This will be in kernel virtual
212 * space */ 212 * space */
213static __u32 trampoline_base; 213unsigned char *trampoline_base;
214 214
215/* The per cpu profile stuff - used in smp_local_timer_interrupt */ 215/* The per cpu profile stuff - used in smp_local_timer_interrupt */
216static DEFINE_PER_CPU(int, prof_multiplier) = 1; 216static DEFINE_PER_CPU(int, prof_multiplier) = 1;
@@ -435,9 +435,9 @@ static __u32 __init setup_trampoline(void)
435 extern const __u8 trampoline_end[]; 435 extern const __u8 trampoline_end[];
436 extern const __u8 trampoline_data[]; 436 extern const __u8 trampoline_data[];
437 437
438 memcpy((__u8 *) trampoline_base, trampoline_data, 438 memcpy(trampoline_base, trampoline_data,
439 trampoline_end - trampoline_data); 439 trampoline_end - trampoline_data);
440 return virt_to_phys((__u8 *) trampoline_base); 440 return virt_to_phys(trampoline_base);
441} 441}
442 442
443/* Routine initially called when a non-boot CPU is brought online */ 443/* Routine initially called when a non-boot CPU is brought online */
@@ -1166,7 +1166,7 @@ void flush_tlb_all(void)
1166 * is sorted out */ 1166 * is sorted out */
1167void __init smp_alloc_memory(void) 1167void __init smp_alloc_memory(void)
1168{ 1168{
1169 trampoline_base = (__u32) alloc_bootmem_low_pages(PAGE_SIZE); 1169 trampoline_base = alloc_bootmem_low_pages(PAGE_SIZE);
1170 if (__pa(trampoline_base) >= 0x93000) 1170 if (__pa(trampoline_base) >= 0x93000)
1171 BUG(); 1171 BUG();
1172} 1172}