summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2007-05-20 14:49:01 +0000
committermarius <marius@FreeBSD.org>2007-05-20 14:49:01 +0000
commit6aa8341d7584a00bcb06aaf727c729e0f98e3abd (patch)
tree391fc747b8b969d8925979b4b0f2e5f899126d0d /sys/sparc64/include
parent743faad470a8b9116ca0e703c5bc12bf02cc3e05 (diff)
downloadFreeBSD-src-6aa8341d7584a00bcb06aaf727c729e0f98e3abd.zip
FreeBSD-src-6aa8341d7584a00bcb06aaf727c729e0f98e3abd.tar.gz
- Staticize cpu_ipi_send() and cpu_mp_unleash() as these aren't
referenced outside of mp_machdep.c - Replace a magic 14 with the newly added IDC_ITID_SHIFT macro. - Remove the global mp_boot_mid variable as it's not really necessary and just replacing it with PCPU_GET(mid) doesn't have any impact on performance once booted. - Replace PCPU_GET(cpuid) with the curcpu shortcut. - Replace hardcoded function names in panic strings etc with __func__ so they don't need to be updated when renaming the function. - Use register_t instead of u_long for variables used to hold the return value of intr_disable() so we don't need to apply any knowledge about the actual width of that value here. - Improve the wording of some comments. - Fix several style(9) bugs.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r--sys/sparc64/include/smp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/sparc64/include/smp.h b/sys/sparc64/include/smp.h
index 523843a..324a003 100644
--- a/sys/sparc64/include/smp.h
+++ b/sys/sparc64/include/smp.h
@@ -42,6 +42,8 @@
#define IDR_BUSY (1<<0)
#define IDR_NACK (1<<1)
+#define IDC_ITID_SHIFT 14
+
#define IPI_AST PIL_AST
#define IPI_RENDEZVOUS PIL_RENDEZVOUS
#define IPI_STOP PIL_STOP
@@ -79,7 +81,6 @@ void cpu_mp_bootstrap(struct pcpu *pc);
void cpu_mp_shutdown(void);
void cpu_ipi_selected(u_int cpus, u_long d0, u_long d1, u_long d2);
-void cpu_ipi_send(u_int mid, u_long d0, u_long d1, u_long d2);
void ipi_selected(u_int cpus, u_int ipi);
void ipi_all(u_int ipi);
@@ -220,36 +221,42 @@ ipi_wait(void *cookie)
static __inline void *
ipi_dcache_page_inval(void *func, vm_paddr_t pa)
{
+
return (NULL);
}
static __inline void *
ipi_icache_page_inval(void *func, vm_paddr_t pa)
{
+
return (NULL);
}
static __inline void *
ipi_tlb_context_demap(struct pmap *pm)
{
+
return (NULL);
}
static __inline void *
ipi_tlb_page_demap(struct pmap *pm, vm_offset_t va)
{
+
return (NULL);
}
static __inline void *
ipi_tlb_range_demap(struct pmap *pm, vm_offset_t start, vm_offset_t end)
{
+
return (NULL);
}
static __inline void
ipi_wait(void *cookie)
{
+
}
#endif /* SMP */
OpenPOWER on IntegriCloud