summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
Diffstat (limited to 'i386')
-rw-r--r--i386/include/mach/i386/vm_param.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/i386/include/mach/i386/vm_param.h b/i386/include/mach/i386/vm_param.h
index 6d7c5f3..8f708f0 100644
--- a/i386/include/mach/i386/vm_param.h
+++ b/i386/include/mach/i386/vm_param.h
@@ -52,8 +52,8 @@
* No rounding is used.
*/
-#define i386_btop(x) (((unsigned)(x)) >> I386_PGSHIFT)
-#define i386_ptob(x) (((unsigned)(x)) << I386_PGSHIFT)
+#define i386_btop(x) (((unsigned long)(x)) >> I386_PGSHIFT)
+#define i386_ptob(x) (((unsigned long)(x)) << I386_PGSHIFT)
/*
* Round off or truncate to the nearest page. These will work
@@ -61,9 +61,9 @@
* bytes.)
*/
-#define i386_round_page(x) ((((unsigned)(x)) + I386_PGBYTES - 1) & \
+#define i386_round_page(x) ((((unsigned long)(x)) + I386_PGBYTES - 1) & \
~(I386_PGBYTES-1))
-#define i386_trunc_page(x) (((unsigned)(x)) & ~(I386_PGBYTES-1))
+#define i386_trunc_page(x) (((unsigned long)(x)) & ~(I386_PGBYTES-1))
/* User address spaces are 3GB each,
starting at virtual and linear address 0.