From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBqTE-0000EA-A6 for qemu-devel@nongnu.org; Mon, 18 Apr 2011 11:34:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QBqTD-0006M7-G8 for qemu-devel@nongnu.org; Mon, 18 Apr 2011 11:34:36 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:38149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBqTD-0006LB-7L for qemu-devel@nongnu.org; Mon, 18 Apr 2011 11:34:35 -0400 From: Peter Maydell Date: Mon, 18 Apr 2011 16:34:23 +0100 Message-Id: <1303140866-29348-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/3] Fix ARM semihosting SYS_HEAPINFO issues List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , patches@linaro.org This patchset is intended to fix some problems with the ARM semihosting SYS_HEAPINFO call. Patch 1 fixes a bug in do_brk() which meant that using SYS_HEAPINFO tended to result in our accidentally unmapping the host libc. Patch 2 fixes the bug https://bugs.launchpad.net/qemu/+bug/656285 by correcting the check for failure of do_brk(). Patch 3 does the same for the equivalent code in m68k-semi.c, but note that I have only tested that it compiles. (linux-user/m68k-sim.c also has a suspicious error check on do_brk(), but since I don't have any specs of what the simcalls there are supposed to do on error I haven't attempted to fix this one.) Peter Maydell (3): linux-user: Don't use MAP_FIXED in do_brk() arm-semi.c: Use correct check for failure of do_brk() m68k-semi.c: Use correct check for failure of do_brk() arm-semi.c | 5 +++-- linux-user/syscall.c | 29 ++++++++++++++++++++--------- m68k-semi.c | 5 +++-- 3 files changed, 26 insertions(+), 13 deletions(-)