summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/md_var.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-02-20 23:24:19 +0000
committermarius <marius@FreeBSD.org>2010-02-20 23:24:19 +0000
commit27efbf647d0328612f1c44a888957c1f15f2b67c (patch)
treee93ca7084184f69831be9ec848380cb2e7a4faf0 /sys/sparc64/include/md_var.h
parentbd54d0edd70c92645e019f14c299149217d2a60f (diff)
downloadFreeBSD-src-27efbf647d0328612f1c44a888957c1f15f2b67c.zip
FreeBSD-src-27efbf647d0328612f1c44a888957c1f15f2b67c.tar.gz
Some machines can not only consist of CPUs running at different speeds
but also of different types, f.e. Sun Fire V890 can be equipped with a mix of UltraSPARC IV and IV+ CPUs, requiring different MMU initialization and different workarounds for model specific errata. Therefore move the CPU implementation number from a global variable to the per-CPU data. Functions which are called before the latter is available are passed the implementation number as a parameter now.
Diffstat (limited to 'sys/sparc64/include/md_var.h')
-rw-r--r--sys/sparc64/include/md_var.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/include/md_var.h b/sys/sparc64/include/md_var.h
index 592d980..a1f3980 100644
--- a/sys/sparc64/include/md_var.h
+++ b/sys/sparc64/include/md_var.h
@@ -47,8 +47,8 @@ extern vm_paddr_t kstack0_phys;
struct pcpu;
struct md_utrap;
-const char *cpu_cpuid_prop(void);
-uint32_t cpu_get_mid(void);
+const char *cpu_cpuid_prop(u_int cpu_impl);
+uint32_t cpu_get_mid(u_int cpu_impl);
void cpu_identify(u_long vers, u_int clock, u_int id);
void cpu_setregs(struct pcpu *pc);
int is_physical_memory(vm_paddr_t addr);
OpenPOWER on IntegriCloud