From owner-freebsd-stable@FreeBSD.ORG Wed Jun 15 13:57:06 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1194106567A for ; Wed, 15 Jun 2011 13:57:06 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: from uriah.heep.sax.de (uriah.heep.sax.de [213.240.137.9]) by mx1.freebsd.org (Postfix) with ESMTP id 833418FC17 for ; Wed, 15 Jun 2011 13:57:06 +0000 (UTC) Received: by uriah.heep.sax.de (Postfix, from userid 107) id 0F66543; Wed, 15 Jun 2011 15:57:05 +0200 (MET DST) Date: Wed, 15 Jun 2011 15:57:05 +0200 From: Joerg Wunsch To: freebsd-stable@freebsd.org Message-ID: <20110615135704.GQ23206@uriah.heep.sax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-GPG-Fingerprint: 5E84 F980 C3CA FD4B B584 1070 F48C A81B 69A8 5873 User-Agent: Mutt/1.5.20 (2009-06-14) Subject: doscmd under 8-stable, anyone? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joerg Wunsch List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2011 13:57:06 -0000 When trying to use doscmd on 8-stable, all I get is: Error mapping HMA, HMA disabled: : Invalid argument Segmentation fault (core dumped) The segfault happens at the end of mem_init(), when the allocated DOS memory (which is located at virtual address 0) is attempted to be written to. Apparently, the mmap() failure that causes the "HMA disabled" message is actually a fatal error rather than a benign one the could be ignored, as it results in no valid DOS memory allocation at all. Right now, the only older system I could test it against uses FreeBSD 5.x, where the mmap() works as expected. So does anyone have an idea why this mmap() call: if (mmap((caddr_t)0x000000, 0x100000, PROT_EXEC | PROT_READ | PROT_WRITE, MAP_ANON | MAP_FIXED | MAP_SHARED, -1, 0) == MAP_FAILED) { perror("Error mapping HMA, HMA disabled: "); HMA_a20 = -1; close(HMA_fd_off); close(HMA_fd_on); return; } yields an EINVAL now under 8-stable? -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)