Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
qemu
0010-qemu-cvs-mmap-amd64.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0010-qemu-cvs-mmap-amd64.patch of Package qemu
From 2013ec7c2d1b5a71d73701da746363b69d4c992c Mon Sep 17 00:00:00 2001 From: Ulrich Hecht <uli@suse.de> Date: Tue, 14 Apr 2009 16:34:05 +0200 Subject: [PATCH 10/17] qemu-cvs-mmap-amd64 Map stuff to address space < 4GB on AMD64. This patch got continually smaller as most cases were this was an issue were dealt with in other ways. May already be fully obsolete. Signed-off-by: Ulrich Hecht <uli@suse.de> --- linux-user/mmap.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/linux-user/mmap.c b/linux-user/mmap.c index e18c228..de8abe9 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -31,6 +31,10 @@ #include "qemu.h" #include "qemu-common.h" +#if !defined(MAP_32BIT) +#define MAP_32BIT 0 +#endif + //#define DEBUG_MMAP #if defined(CONFIG_USE_NPTL) @@ -169,7 +173,7 @@ static int mmap_frag(abi_ulong real_start, if (prot1 == 0) { /* no page was there, so we allocate one */ void *p = mmap(host_start, qemu_host_page_size, prot, - flags | MAP_ANONYMOUS, -1, 0); + flags | MAP_ANONYMOUS | MAP_32BIT, -1, 0); if (p == MAP_FAILED) return -1; prot1 = prot; -- 1.7.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor