From ca5078299db2104b0a5ec331dcd1aca4a0172f7f Mon Sep 17 00:00:00 2001 From: Martin Reindl Date: Sun, 4 May 2008 21:18:01 +0000 Subject: convert to ptoa/atop tested by maja@ --- sys/arch/sh/include/param.h | 6 +----- sys/arch/sh/sh/sh_machdep.c | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'sys/arch') 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, -- cgit v1.2.3