aboutsummaryrefslogtreecommitdiff
path: root/i386/include
diff options
context:
space:
mode:
authorLuca Dariz <luca@orpolo.org>2023-02-16 22:33:15 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-16 23:26:11 +0100
commitbdfedb6e4ada9adc78137d75065b9e9607223f4f (patch)
tree2dcd201479e1bbd126056dc09a4e855a620a1b6c /i386/include
parent749af14243c7860476f90aab19b291735b0bb88c (diff)
downloadgnumach-bdfedb6e4ada9adc78137d75065b9e9607223f4f.tar.gz
gnumach-bdfedb6e4ada9adc78137d75065b9e9607223f4f.tar.bz2
gnumach-bdfedb6e4ada9adc78137d75065b9e9607223f4f.zip
x86_64: fix some compiler warnings
* i386/include/mach/i386/vm_param.h: extend the vm constants to ULL on x86_64 to avoid a shift overflow warning * i386/intel/pmap.c: fix cast and unused variables Message-Id: <20230216213318.2048699-1-luca@orpolo.org>
Diffstat (limited to 'i386/include')
-rw-r--r--i386/include/mach/i386/vm_param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/include/mach/i386/vm_param.h b/i386/include/mach/i386/vm_param.h
index e98f032c..f09049a5 100644
--- a/i386/include/mach/i386/vm_param.h
+++ b/i386/include/mach/i386/vm_param.h
@@ -72,9 +72,9 @@
not be increased to more than 3GB as glibc and hurd servers would not cope
with that.
*/
-#define VM_MIN_ADDRESS (0)
+#define VM_MIN_ADDRESS (0ULL)
#ifdef __x86_64__
-#define VM_MAX_ADDRESS (0xC0000000UL)
+#define VM_MAX_ADDRESS (0xc0000000ULL)
#else
#define VM_MAX_ADDRESS (0xc0000000UL)
#endif