Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 ctob() -> ptoa(), to fix sign-extension i...



details:   https://anonhg.NetBSD.org/src/rev/456e9a2c8831
branches:  trunk
changeset: 485716:456e9a2c8831
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed May 03 20:02:08 2000 +0000

description:
ctob() -> ptoa(), to fix sign-extension issues when using >2GB.  A more
comprehensive change will be necessary for >4GB, but that's a bigger issue.

diffstat:

 sys/arch/i386/i386/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1bd4ca8dde42 -r 456e9a2c8831 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Wed May 03 19:19:04 2000 +0000
+++ b/sys/arch/i386/i386/machdep.c      Wed May 03 20:02:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.381 2000/04/21 18:37:20 thorpej Exp $    */
+/*     $NetBSD: machdep.c,v 1.382 2000/05/03 20:02:08 mycroft Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -271,7 +271,7 @@
        printf(version);
        identifycpu();
 
-       format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
+       format_bytes(pbuf, sizeof(pbuf), ptoa(physmem));
        printf("total memory = %s\n", pbuf);
 
        /*
@@ -1710,7 +1710,7 @@
                       "have %d bytes, want %d bytes\n"
                       "running in degraded mode\n"
                       "press a key to confirm\n\n",
-                      ctob(physmem), 2*1024*1024);
+                      ptoa(physmem), 2*1024*1024);
                cngetc();
        }
 }



Home | Main Index | Thread Index | Old Index