summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-11-22 21:49:06 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-11-22 21:49:06 +0100
commit8dd62ea2908c4f15d295fa05dd0b35e4afc36f38 (patch)
tree2a2abd54291d9351052c9ed86dcaa527426ffdd6
parentb3b8940afb7f0e2c5ccf52827a81faf989bc7369 (diff)
Remove (vm_offset_t) casts from constants
* i386/i386/vm_param.h (VM_MIN_KERNEL_ADDRESS, VM_MAX_KERNEL_ADDRESS, LINEAR_MIN_KERNEL_ADDRESS, LINEAR_MAX_KERNEL_ADDRESS): Remove (vm_offset_t) cast, use UL suffix instead. * i386/include/mach/i386/vm_param.h (VM_MIN_ADDRESS, VM_MAX_ADDRESS): Remove (vm_offset_t) cast, use UL suffix instead.
-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_ */