summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-10-02 20:13:03 +0000
committerpeter <peter@FreeBSD.org>2000-10-02 20:13:03 +0000
commitc341f3044383e7debe8c0c6ff9f35b2635f410d3 (patch)
tree474c2a464cf9d1527fca6df9592fb4f013828c90
parenteffa2801c61cd844177ae8f8b75b763d14bfea72 (diff)
downloadFreeBSD-src-c341f3044383e7debe8c0c6ff9f35b2635f410d3.zip
FreeBSD-src-c341f3044383e7debe8c0c6ff9f35b2635f410d3.tar.gz
Fix a cosmetic sign problem on machines with 4G of ram.
0x00312000 - 0xe5fe7fff, 3855441920 bytes (4294859990 pages) .. becomes 0x00314000 - 0xe5fe7fff, 3855433728 bytes (941268 pages)
-rw-r--r--sys/amd64/amd64/machdep.c2
-rw-r--r--sys/i386/i386/machdep.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 4fb4c45..355a0a9 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -286,7 +286,7 @@ cpu_startup(dummy)
printf("Physical memory chunk(s):\n");
for (indx = 0; phys_avail[indx + 1] != 0; indx += 2) {
- int size1 = phys_avail[indx + 1] - phys_avail[indx];
+ unsigned int size1 = phys_avail[indx + 1] - phys_avail[indx];
printf("0x%08x - 0x%08x, %u bytes (%u pages)\n",
phys_avail[indx], phys_avail[indx + 1] - 1, size1,
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 4fb4c45..355a0a9 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -286,7 +286,7 @@ cpu_startup(dummy)
printf("Physical memory chunk(s):\n");
for (indx = 0; phys_avail[indx + 1] != 0; indx += 2) {
- int size1 = phys_avail[indx + 1] - phys_avail[indx];
+ unsigned int size1 = phys_avail[indx + 1] - phys_avail[indx];
printf("0x%08x - 0x%08x, %u bytes (%u pages)\n",
phys_avail[indx], phys_avail[indx + 1] - 1, size1,
OpenPOWER on IntegriCloud