server: Print a warning if page size isn't 4k.

This commit is contained in:
Alexandre Julliard 2024-11-15 12:46:47 +01:00
parent ab40b7fd86
commit 126c54cd25

View file

@ -262,6 +262,9 @@ void init_memory(void)
page_mask = sysconf( _SC_PAGESIZE ) - 1;
free_map_addr( 0x60000000, 0x1c000000 );
free_map_addr( 0x600000000000, 0x100000000000 );
if (page_mask != 0xfff)
fprintf( stderr, "wineserver: page size is %uk but Wine requires 4k pages, expect problems\n",
(int)(page_mask + 1) / 1024 );
}
static void ranges_dump( struct object *obj, int verbose )