diff options
author | jake <jake@FreeBSD.org> | 2001-01-10 04:43:51 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-01-10 04:43:51 +0000 |
commit | 4f5d8ed82579a945555b585b43ab2d09eae30c77 (patch) | |
tree | 512839f19fc02786cc9904c4406357f3573a8b09 /sys/kern/kern_shutdown.c | |
parent | 776ef1f43089579877329277af83423976a699d2 (diff) | |
download | FreeBSD-src-4f5d8ed82579a945555b585b43ab2d09eae30c77.zip FreeBSD-src-4f5d8ed82579a945555b585b43ab2d09eae30c77.tar.gz |
Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variables
other then curproc.
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r-- | sys/kern/kern_shutdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index d1e23f8..eaf8b94 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -209,7 +209,7 @@ boot(int howto) #ifdef SMP if (smp_active) - printf("boot() called on cpu#%d\n", cpuid); + printf("boot() called on cpu#%d\n", PCPU_GET(cpuid)); #endif /* * Do any callouts that should be done BEFORE syncing the filesystems. @@ -557,7 +557,7 @@ panic(const char *fmt, ...) printf("panic: %s\n", buf); #ifdef SMP /* two seperate prints in case of an unmapped page and trap */ - printf("cpuid = %d; ", cpuid); + printf("cpuid = %d; ", PCPU_GET(cpuid)); #ifdef APIC_IO printf("lapic.id = %08x\n", lapic.id); #endif |