From 7dd8ed88a925a943f1963baa072f4b6c6a8c9930 Mon Sep 17 00:00:00 2001 From: attilio Date: Thu, 31 May 2007 22:52:15 +0000 Subject: Revert VMCNT_* operations introduction. Probabilly, a general approach is not the better solution here, so we should solve the sched_lock protection problems separately. Requested by: alc Approved by: jeff (mentor) --- sys/powerpc/aim/machdep.c | 4 ++-- sys/powerpc/powerpc/machdep.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/powerpc') diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index 6f31c87..98c4051 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -218,8 +218,8 @@ cpu_startup(void *dummy) vm_ksubmap_init(&kmi); - printf("avail memory = %ld (%ld MB)\n", ptoa(VMCNT_GET(free_count)), - ptoa(VMCNT_GET(free_count)) / 1048576); + printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count), + ptoa(cnt.v_free_count) / 1048576); /* * Set up buffers, so they can be used to read disk labels. diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c index 6f31c87..98c4051 100644 --- a/sys/powerpc/powerpc/machdep.c +++ b/sys/powerpc/powerpc/machdep.c @@ -218,8 +218,8 @@ cpu_startup(void *dummy) vm_ksubmap_init(&kmi); - printf("avail memory = %ld (%ld MB)\n", ptoa(VMCNT_GET(free_count)), - ptoa(VMCNT_GET(free_count)) / 1048576); + printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count), + ptoa(cnt.v_free_count) / 1048576); /* * Set up buffers, so they can be used to read disk labels. -- cgit v1.1