1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

- Fix bsd-user x86_64 target failing with stk mmap: Invalid argument .

- Bump PORTREVISION.

Reported by:	sbruno
This commit is contained in:
Juergen Lock 2014-06-12 19:34:06 +00:00
parent 3853cb98e2
commit 3d81fef84c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357631
2 changed files with 21 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= qemu
PORTVERSION= 2.0.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= emulators
MASTER_SITES= http://wiki.qemu.org/download/:release \
LOCAL/nox:snapshot
@ -67,6 +67,7 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-sysctl-hw-availpages
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-sysctl-0oldlen
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-bsd-user-mmap.c
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-sysctl-hw-pagesizes
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-bsd-user-x86_64-target_arch_vmparam.h
.endif
CONFIGURE_ARGS+= --extra-ldflags=-L${LOCALBASE}/lib

View File

@ -0,0 +1,19 @@
From nox Mon Sep 17 00:00:00 2001
From: Juergen Lock <nox@jelal.kn-bremen.de>
Date: 12 Jun 2014 19:55:52 +0200
Subject: Fix bsd-user x86_64 target failing with stk mmap: Invalid argument
Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de>
--- a/bsd-user/x86_64/target_arch_vmparam.h
+++ b/bsd-user/x86_64/target_arch_vmparam.h
@@ -11,7 +11,8 @@
#define TARGET_MAXSSIZ (512UL*1024*1024) /* max stack size */
#define TARGET_SGROWSIZ (128UL*1024) /* amount to grow stack */
-#define TARGET_VM_MAXUSER_ADDRESS (0x0000800000000000UL)
+/* #define TARGET_VM_MAXUSER_ADDRESS (0x0000800000000000UL) */
+#define TARGET_VM_MAXUSER_ADDRESS (0x00007fffff000000UL)
#define TARGET_USRSTACK (TARGET_VM_MAXUSER_ADDRESS - TARGET_PAGE_SIZE)