small fixes

This commit is contained in:
daanx 2024-12-22 14:39:57 -08:00
parent a42a2a926b
commit c5cfc92f0c
3 changed files with 4 additions and 2 deletions

View file

@ -107,6 +107,7 @@ typedef int32_t mi_ssize_t;
// Define big endian if needed
// #define MI_BIG_ENDIAN 1
// maximum virtual address bits in a user-space pointer
#if MI_DEFAULT_VIRTUAL_ADDRESS_BITS > 0
#define MI_MAX_VABITS MI_DEFAULT_VIRTUAL_ADDRESS_BITS
#elif MI_ARCH_X64
@ -117,6 +118,7 @@ typedef int32_t mi_ssize_t;
#define MI_MAX_VABITS (32)
#endif
// use a flat page-map (or a 2-level one)
#ifndef MI_PAGE_MAP_FLAT
#if MI_MAX_VABITS <= 40
#define MI_PAGE_MAP_FLAT 1