Fixed compile error on SPARC port
authorAndrew Waterman <waterman@s143.Millennium.Berkeley.EDU>
Fri, 8 Jul 2011 06:07:50 +0000 (23:07 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:04 +0000 (17:36 -0700)
kern/arch/sparc/ros/mmu.h
kern/arch/sparc/smp.c

index b01ea02..16b998a 100644 (file)
@@ -26,6 +26,8 @@
 #define PGSIZE (1 << PGSHIFT)
 #define PTSIZE L1PGSIZE
 
+#define NOVPT
+
 #ifndef __ASSEMBLER__
 typedef unsigned long pte_t;
 typedef unsigned long pde_t;
index b00ac84..cb71356 100644 (file)
@@ -97,13 +97,15 @@ int smp_call_function_all(isr_t handler, void* data,
                if(i == core_id())
                        continue;
 
-               send_kernel_message(i,(amr_t)smp_call_wrapper,
-                                         handler, wrapper, data, KMSG_IMMEDIATE);
+               send_kernel_message(i, (amr_t)smp_call_wrapper,
+                                         (long)handler, (long)wrapper, 
+                                         (long)data, KMSG_IMMEDIATE);
        }
 
        // send to me
-       send_kernel_message(core_id(),(amr_t)smp_call_wrapper,
-                                 handler,wrapper,data, KMSG_IMMEDIATE);
+       send_kernel_message(core_id(), (amr_t)smp_call_wrapper,
+                                 (long)handler, (long)wrapper,
+                                 (long)data, KMSG_IMMEDIATE);
 
        cpu_relax(); // wait to get the interrupt
 
@@ -127,8 +129,9 @@ int smp_call_function_single(uint32_t dest, isr_t handler, void* data,
 
        enable_irqsave(&state);
 
-       send_kernel_message(dest,(amr_t)smp_call_wrapper,
-                                 handler,wrapper,data, KMSG_IMMEDIATE);
+       send_kernel_message(dest, (amr_t)smp_call_wrapper,
+                                 (long)handler, (long)wrapper,
+                                 (long)data, KMSG_IMMEDIATE);
 
        cpu_relax(); // wait to get the interrupt, if it's to this core