aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-08-30 04:04:37 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-08-30 04:04:37 +0000
commit447b3772dc3a01e489e242783023e581868101a1 (patch)
tree1efd2347dcbfb7b9894853dfbf52875f12fa5e04 /sys/powerpc
parentd3ecac66174aa336a21cb9edbccebe75669b8b76 (diff)
Notes
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/aim/machdep.c14
-rw-r--r--sys/powerpc/include/md_var.h2
-rw-r--r--sys/powerpc/powerpc/machdep.c14
3 files changed, 19 insertions, 11 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c
index a9aa219b8d9fd..00e93398abcfe 100644
--- a/sys/powerpc/aim/machdep.c
+++ b/sys/powerpc/aim/machdep.c
@@ -113,7 +113,7 @@ static const char rcsid[] =
#include <sys/vnode.h>
#include <machine/sigframe.h>
-int physmem = 0;
+long physmem = 0;
int cold = 1;
char pcpu0[PAGE_SIZE];
@@ -153,14 +153,18 @@ void osendsig(sig_t, int, sigset_t *, u_long);
static int
sysctl_hw_physmem(SYSCTL_HANDLER_ARGS)
{
- int error = sysctl_handle_int(oidp, 0, ctob(physmem), req);
+ int error;
+ unsigned long val;
+
+ val = ctob(physmem);
+ error = sysctl_handle_int(oidp, &val, 0, req);
return (error);
}
-SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_INT|CTLFLAG_RD,
- 0, 0, sysctl_hw_physmem, "IU", "");
+SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_ULONG|CTLFLAG_RD,
+ 0, 0, sysctl_hw_physmem, "LU", "");
-int Maxmem = 0;
+long Maxmem = 0;
static int chosen;
diff --git a/sys/powerpc/include/md_var.h b/sys/powerpc/include/md_var.h
index b4d0ba07ca4ab..5e4f93a245882 100644
--- a/sys/powerpc/include/md_var.h
+++ b/sys/powerpc/include/md_var.h
@@ -36,7 +36,7 @@
extern char sigcode[];
extern char esigcode[];
extern int szsigcode;
-extern int Maxmem;
+extern long Maxmem;
extern int busdma_swi_pending;
extern vm_offset_t kstack0;
diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c
index a9aa219b8d9fd..00e93398abcfe 100644
--- a/sys/powerpc/powerpc/machdep.c
+++ b/sys/powerpc/powerpc/machdep.c
@@ -113,7 +113,7 @@ static const char rcsid[] =
#include <sys/vnode.h>
#include <machine/sigframe.h>
-int physmem = 0;
+long physmem = 0;
int cold = 1;
char pcpu0[PAGE_SIZE];
@@ -153,14 +153,18 @@ void osendsig(sig_t, int, sigset_t *, u_long);
static int
sysctl_hw_physmem(SYSCTL_HANDLER_ARGS)
{
- int error = sysctl_handle_int(oidp, 0, ctob(physmem), req);
+ int error;
+ unsigned long val;
+
+ val = ctob(physmem);
+ error = sysctl_handle_int(oidp, &val, 0, req);
return (error);
}
-SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_INT|CTLFLAG_RD,
- 0, 0, sysctl_hw_physmem, "IU", "");
+SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_ULONG|CTLFLAG_RD,
+ 0, 0, sysctl_hw_physmem, "LU", "");
-int Maxmem = 0;
+long Maxmem = 0;
static int chosen;