From 2e9a5713f0567fffaa3518f495b8d16a2b74f84a Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Wed, 5 May 2010 16:32:59 +0100 Subject: Remove PAGE_RESERVED The usermode PAGE_RESERVED code is not required by the current mmap implementation, and is already broken when guest_base != 0. Unfortunately the bsd emulation still uses the old mmap implementation, so we can't rip it out altogether. Signed-off-by: Paul Brook --- cpu-all.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpu-all.h') diff --git a/cpu-all.h b/cpu-all.h index 7b1594cdf8..52a1817bd2 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -742,7 +742,10 @@ extern unsigned long qemu_host_page_mask; /* original state of the write flag (used when tracking self-modifying code */ #define PAGE_WRITE_ORG 0x0010 +#if defined(CONFIG_BSD) && defined(CONFIG_USER_ONLY) +/* FIXME: Code that sets/uses this is broken and needs to go away. */ #define PAGE_RESERVED 0x0020 +#endif #if defined(CONFIG_USER_ONLY) void page_dump(FILE *f); -- cgit v1.2.3