diff options
author | Martin Reindl <martin@cvs.openbsd.org> | 2008-05-04 21:18:01 +0000 |
---|---|---|
committer | Martin Reindl <martin@cvs.openbsd.org> | 2008-05-04 21:18:01 +0000 |
commit | ca5078299db2104b0a5ec331dcd1aca4a0172f7f (patch) | |
tree | 5a425e02d8302fee45b6bb7d5d1a6d60cd16baaf /sys/arch/sh | |
parent | c4c8fa3c304ad3e7a632dc7594888216deb3d8cf (diff) |
convert to ptoa/atop
tested by maja@
Diffstat (limited to 'sys/arch/sh')
-rw-r--r-- | sys/arch/sh/include/param.h | 6 | ||||
-rw-r--r-- | sys/arch/sh/sh/sh_machdep.c | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/sys/arch/sh/include/param.h b/sys/arch/sh/include/param.h index b826b6adf8f..6a26f5bc068 100644 --- a/sys/arch/sh/include/param.h +++ b/sys/arch/sh/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.4 2007/05/28 21:02:49 thib Exp $ */ +/* $OpenBSD: param.h,v 1.5 2008/05/04 21:18:00 martin Exp $ */ /* $NetBSD: param.h,v 1.15 2006/08/28 13:43:35 yamt Exp $ */ /*- @@ -104,10 +104,6 @@ #define MSGBUFSIZE NBPG /* default message buffer size */ #endif -/* pages to bytes */ -#define btoc(x) (((x) + PAGE_MASK) >> PAGE_SHIFT) -#define ctob(x) ((x) << PAGE_SHIFT) - /* pages to disk blocks */ #define ctod(x) ((x) << (PAGE_SHIFT - DEV_BSHIFT)) #define dtoc(x) ((x) >> (PAGE_SHIFT - DEV_BSHIFT)) diff --git a/sys/arch/sh/sh/sh_machdep.c b/sys/arch/sh/sh/sh_machdep.c index 0cfcd801825..0d0662cbaa4 100644 --- a/sys/arch/sh/sh/sh_machdep.c +++ b/sys/arch/sh/sh/sh_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sh_machdep.c,v 1.17 2007/10/10 15:53:52 art Exp $ */ +/* $OpenBSD: sh_machdep.c,v 1.18 2008/05/04 21:18:00 martin Exp $ */ /* $NetBSD: sh3_machdep.c,v 1.59 2006/03/04 01:13:36 uwe Exp $ */ /* @@ -285,7 +285,7 @@ sh_startup() sh_vector_interrupt_end - sh_vector_interrupt); #endif /* DEBUG */ - printf("real mem = %u (%uK)\n", ctob(physmem), ctob(physmem) / 1024); + printf("real mem = %u (%uK)\n", ptoa(physmem), ptoa(physmem) / 1024); /* * Find out how much space we need, allocate it, |