From owner-freebsd-stable@FreeBSD.ORG Wed Jun 15 14:32:56 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 609021065673; Wed, 15 Jun 2011 14:32:56 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 091918FC1B; Wed, 15 Jun 2011 14:32:55 +0000 (UTC) Received: by qyk27 with SMTP id 27so301873qyk.13 for ; Wed, 15 Jun 2011 07:32:55 -0700 (PDT) Received: by 10.229.202.42 with SMTP id fc42mr414376qcb.272.1308146495155; Wed, 15 Jun 2011 07:01:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.211.212 with HTTP; Wed, 15 Jun 2011 07:00:55 -0700 (PDT) In-Reply-To: <20110615135704.GQ23206@uriah.heep.sax.de> References: <20110615135704.GQ23206@uriah.heep.sax.de> From: Vlad Galu Date: Wed, 15 Jun 2011 16:00:55 +0200 Message-ID: To: Joerg Wunsch Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: doscmd under 8-stable, anyone? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 14:32:56 -0000 Hi Joerg, Flip security.bsd**.map_at_zero to 1. On Wed, Jun 15, 2011 at 3:57 PM, Joerg Wunsch < freebsd-stable@uriah.heep.sax.de> wrote: > 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. ;-) > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Good, fast & cheap. Pick any two.