summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/extra-patch-sysctl-hw-availpages
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu-devel/files/extra-patch-sysctl-hw-availpages')
-rw-r--r--emulators/qemu-devel/files/extra-patch-sysctl-hw-availpages10
1 files changed, 10 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/extra-patch-sysctl-hw-availpages b/emulators/qemu-devel/files/extra-patch-sysctl-hw-availpages
index 914f146961b4..5253802430bc 100644
--- a/emulators/qemu-devel/files/extra-patch-sysctl-hw-availpages
+++ b/emulators/qemu-devel/files/extra-patch-sysctl-hw-availpages
@@ -1,3 +1,13 @@
+From nox Mon Sep 17 00:00:00 2001
+From: Juergen Lock <nox@jelal.kn-bremen.de>
+Date: 05 Apr 2014 21:06:00 +0200
+Subject: Fix bsd-user FreeBSD hw.availpages sysctl
+
+hw.availpages is defined as OID_AUTO so the mib can change; find out
+it's value at the first hw.* sysctl syscall.
+
+Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de>
+
--- a/bsd-user/freebsd/os-sys.c
+++ b/bsd-user/freebsd/os-sys.c
@@ -219,24 +219,36 @@ abi_long do_freebsd_sysctl(CPUArchState