From 126c54cd2562ad2ea5fea803b4107b68f4fab9b3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 15 Nov 2024 12:46:47 +0100 Subject: [PATCH] server: Print a warning if page size isn't 4k. --- server/mapping.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/mapping.c b/server/mapping.c index 2bf45780375..38e519ac627 100644 --- a/server/mapping.c +++ b/server/mapping.c @@ -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 )