diff options
author | tmm <tmm@FreeBSD.org> | 2002-11-07 23:57:17 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2002-11-07 23:57:17 +0000 |
commit | f740e3df9bd1ce0fef776b6c9444176d4c64bcaa (patch) | |
tree | 4cf885259d3ca54239f82ab003a069f284512d18 /sys/powerpc/aim | |
parent | aae3d5b8b6dbe84cd25f622726f44f46008df89a (diff) | |
download | FreeBSD-src-f740e3df9bd1ce0fef776b6c9444176d4c64bcaa.zip FreeBSD-src-f740e3df9bd1ce0fef776b6c9444176d4c64bcaa.tar.gz |
Move the definitions of the hw.physmem, hw.usermem and hw.availpages
sysctls to MI code; this reduces code duplication and makes all of them
available on sparc64, and the latter two on powerpc.
The semantics by the i386 and pc98 hw.availpages is slightly changed:
previously, holes between ranges of available pages would be included,
while they are excluded now. The new behaviour should be more correct
and brings i386 in line with the other architectures.
Move physmem to vm/vm_init.c, where this variable is used in MI code.
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r-- | sys/powerpc/aim/machdep.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index 32ae7f5..1df450d 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -114,7 +114,6 @@ static const char rcsid[] = #include <sys/vnode.h> #include <machine/sigframe.h> -long physmem = 0; int cold = 1; char pcpu0[PAGE_SIZE]; @@ -153,18 +152,6 @@ void install_extint(void (*)(void)); int setfault(faultbuf); /* defined in locore.S */ -static int -sysctl_hw_physmem(SYSCTL_HANDLER_ARGS) -{ - u_long val; - - val = ctob(physmem); - return (sysctl_handle_long(oidp, &val, 0, req)); -} - -SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_ULONG | CTLFLAG_RD, - 0, 0, sysctl_hw_physmem, "LU", ""); - long Maxmem = 0; static int chosen; |