summaryrefslogtreecommitdiffstats
path: root/sys/mips/include/param.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/include/param.h')
-rw-r--r--sys/mips/include/param.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/mips/include/param.h b/sys/mips/include/param.h
index b818649..8edd48e 100644
--- a/sys/mips/include/param.h
+++ b/sys/mips/include/param.h
@@ -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)
OpenPOWER on IntegriCloud