aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2007-05-18 07:10:50 +0000
committerJeff Roberson <jeff@FreeBSD.org>2007-05-18 07:10:50 +0000
commit222d01951f8677015e3e96c6950e809c0d983c09 (patch)
treec94b660d4b9246fed8cbeadf7851932258d8b72a /sys/pc98
parent2b7e2ee7a505adbd7f7355bcaadd8573174464e6 (diff)
downloadsrc-222d01951f8677015e3e96c6950e809c0d983c09.tar.gz
src-222d01951f8677015e3e96c6950e809c0d983c09.zip
- define and use VMCNT_{GET,SET,ADD,SUB,PTR} macros for manipulating
vmcnts. This can be used to abstract away pcpu details but also changes to use atomics for all counters now. This means sched lock is no longer responsible for protecting counts in the switch routines. Contributed by: Attilio Rao <attilio@FreeBSD.org>
Notes
Notes: svn path=/head/; revision=169667
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/pc98/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index ce780206ff2e..2d9ca3d50ce6 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -244,8 +244,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
printf("avail memory = %ju (%ju MB)\n",
- ptoa((uintmax_t)cnt.v_free_count),
- ptoa((uintmax_t)cnt.v_free_count) / 1048576);
+ ptoa((uintmax_t)VMCNT_GET(free_count)),
+ ptoa((uintmax_t)VMCNT_GET(free_count)) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.