summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/vm_param.h8
-rw-r--r--i386/include/mach/i386/vm_param.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/i386/i386/vm_param.h b/i386/i386/vm_param.h
index 57a2166..8e92e79 100644
--- a/i386/i386/vm_param.h
+++ b/i386/i386/vm_param.h
@@ -27,14 +27,14 @@
#include <mach/vm_param.h>
/* The kernel address space is 1GB, starting at virtual address 0. */
-#define VM_MIN_KERNEL_ADDRESS ((vm_offset_t) 0x00000000)
-#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t) (LINEAR_MAX_KERNEL_ADDRESS - LINEAR_MIN_KERNEL_ADDRESS + VM_MIN_KERNEL_ADDRESS))
+#define VM_MIN_KERNEL_ADDRESS (0x00000000)
+#define VM_MAX_KERNEL_ADDRESS ((LINEAR_MAX_KERNEL_ADDRESS - LINEAR_MIN_KERNEL_ADDRESS + VM_MIN_KERNEL_ADDRESS))
/* The kernel virtual address space is actually located
at high linear addresses.
This is the kernel address range in linear addresses. */
-#define LINEAR_MIN_KERNEL_ADDRESS ((vm_offset_t) VM_MAX_ADDRESS)
-#define LINEAR_MAX_KERNEL_ADDRESS ((vm_offset_t) 0xffffffff)
+#define LINEAR_MIN_KERNEL_ADDRESS (VM_MAX_ADDRESS)
+#define LINEAR_MAX_KERNEL_ADDRESS (0xffffffffUL)
#define KERNEL_STACK_SIZE (1*I386_PGBYTES)
#define INTSTACK_SIZE (1*I386_PGBYTES)
diff --git a/i386/include/mach/i386/vm_param.h b/i386/include/mach/i386/vm_param.h
index 87f5076..6d7c5f3 100644
--- a/i386/include/mach/i386/vm_param.h
+++ b/i386/include/mach/i386/vm_param.h
@@ -72,7 +72,7 @@
not be increased to more than 3GB as glibc and hurd servers would not cope
with that.
*/
-#define VM_MIN_ADDRESS ((vm_offset_t) 0)
-#define VM_MAX_ADDRESS ((vm_offset_t) 0xc0000000)
+#define VM_MIN_ADDRESS (0)
+#define VM_MAX_ADDRESS (0xc0000000UL)
#endif /* _MACH_I386_VM_PARAM_H_ */