Date: Fri, 24 Jan 2003 23:51:58 -0800 (PST) From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 24173 for review Message-ID: <200301250751.h0P7pwLg001952@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=24173 Change 24173 by jmallett@jmallett_dalek on 2003/01/24 23:51:35 Everyone (32-bit XXX) uses (unsigned) in btop/ptob, so why shouldn't I. NetBSD uses paddr_t which is the same as size_t and (I think) vm_offset_t, and that seems pretty good. Affected files ... .. //depot/projects/mips/sys/mips/include/param.h#4 edit Differences ... ==== //depot/projects/mips/sys/mips/include/param.h#4 (text+ko) ==== @@ -95,5 +95,5 @@ */ #define mips_round_page(x) ((((unsigned)(x)) + NBPG - 1) & ~(NBPG-1)) #define mips_trunc_page(x) ((unsigned)(x) & ~(NBPG-1)) -#define mips_btop(x) ((paddr_t)(x) >> PGSHIFT) -#define mips_ptob(x) ((paddr_t)(x) << PGSHIFT) +#define mips_btop(x) ((unsigned)(x) >> PGSHIFT) +#define mips_ptob(x) ((unsigned)(x) << PGSHIFT) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301250751.h0P7pwLg001952>