svn commit: r198207 - projects/mips/sys/mips/include
Warner Losh
imp at FreeBSD.org
Sun Oct 18 14:57:05 UTC 2009
Author: imp
Date: Sun Oct 18 14:57:04 2009
New Revision: 198207
URL: http://svn.freebsd.org/changeset/base/198207
Log:
Undo spamage of last MFC.
Modified:
projects/mips/sys/mips/include/param.h
Modified: projects/mips/sys/mips/include/param.h
==============================================================================
--- projects/mips/sys/mips/include/param.h Sun Oct 18 14:56:33 2009 (r198206)
+++ projects/mips/sys/mips/include/param.h Sun Oct 18 14:57:04 2009 (r198207)
@@ -93,7 +93,7 @@
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define ALIGNED_POINTER(p, t) ((((unsigned)(p)) & (sizeof (t) - 1)) == 0)
+#define ALIGNED_POINTER(p, t) ((((unsigned long)(p)) & (sizeof (t) - 1)) == 0)
/*
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an
@@ -154,10 +154,10 @@
/*
* Conversion macros
*/
-#define mips_round_page(x) ((((unsigned)(x)) + NBPG - 1) & ~(NBPG-1))
-#define mips_trunc_page(x) ((unsigned)(x) & ~(NBPG-1))
-#define mips_btop(x) ((unsigned)(x) >> PGSHIFT)
-#define mips_ptob(x) ((unsigned)(x) << PGSHIFT)
+#define mips_round_page(x) ((((unsigned long)(x)) + NBPG - 1) & ~(NBPG-1))
+#define mips_trunc_page(x) ((unsigned long)(x) & ~(NBPG-1))
+#define mips_btop(x) ((unsigned long)(x) >> PGSHIFT)
+#define mips_ptob(x) ((unsigned long)(x) << PGSHIFT)
#define round_page mips_round_page
#define trunc_page mips_trunc_page
#define atop(x) ((unsigned long)(x) >> PAGE_SHIFT)
More information about the svn-src-projects
mailing list