From owner-freebsd-hackers Fri Oct 25 14:11:03 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA15048 for hackers-outgoing; Fri, 25 Oct 1996 14:11:03 -0700 (PDT) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA15007 for ; Fri, 25 Oct 1996 14:10:23 -0700 (PDT) Received: (from uucp@localhost) by frmug.org (8.6.8/8.6.9) with UUCP id XAA01043 for hackers@FreeBSD.org; Fri, 25 Oct 1996 23:10:12 +0200 Received: from localhost (localhost [127.0.0.1]) by xp11.frmug.org (8.8.2/8.7.3/xp11-uucp-1.1) with ESMTP id VAA14625 for ; Fri, 25 Oct 1996 21:58:19 +0200 (MET DST) Message-Id: <199610251958.VAA14625@xp11.frmug.org> To: hackers@FreeBSD.org Subject: 16MB -> 32MB and the boot fails Date: Fri, 25 Oct 1996 21:58:17 +0200 From: "Philippe Charnier" Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hello, I moved this from questions to hackers. I added some printfs in the kernel (and a dummy loop to see results) code to see why it fails on my box if I don't add MAXMEM definition into the kernel. My box is a 486dx50 ISA/VLB with AMI BIOS (1992). The bios detects the memory and prints 32640K during memory test. I have BOUNCE_BUFFERS enabled because of my AHA 1542CF. >From /usr/src/sys/i386/i386/machdep.c(v 1.208): void init386(first) int first; { [...] pagesinbase = biosbasemem * 1024 / PAGE_SIZE; pagesinext = biosextmem * 1024 / PAGE_SIZE; I get pagesinbase = 160, pagesinext = 8000 [...] if ((pagesinext > 3840) && (pagesinext < 4096)) pagesinext = 3840; pagesinext is still 8000 here. /* * Maxmem isn't the "maximum memory", it's one larger than the * highest page of the physical address space. It should be * called something like "Maxphyspage". */ Maxmem = pagesinext + 0x100000/PAGE_SIZE; Maxmem is 8256 here which seems to be more than my memory!!! #ifdef MAXMEM Maxmem = MAXMEM/4; #endif The working value I must set here is 8192. Maybe, there is something in the code that _assumes_ Maxmem to be the maximum memory. ------ ------ Philippe Charnier charnier@lirmm.fr (smtp) charnier@xp11.frmug.org (uucp) ``a PC not running FreeBSD is like a venusian with no tentacles'' ------------------------------------------------------------------------