From 27efbf647d0328612f1c44a888957c1f15f2b67c Mon Sep 17 00:00:00 2001 From: marius Date: Sat, 20 Feb 2010 23:24:19 +0000 Subject: 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. --- sys/boot/sparc64/loader/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/boot/sparc64') diff --git a/sys/boot/sparc64/loader/main.c b/sys/boot/sparc64/loader/main.c index 7204169..2afbfee 100644 --- a/sys/boot/sparc64/loader/main.c +++ b/sys/boot/sparc64/loader/main.c @@ -137,7 +137,7 @@ struct tlb_entry *dtlb_store; struct tlb_entry *itlb_store; u_int dtlb_slot; u_int itlb_slot; -int cpu_impl; +static int cpu_impl; static u_int dtlb_slot_max; static u_int itlb_slot_max; -- cgit v1.1