From owner-freebsd-current Thu Nov 7 23:29:54 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5946037B401 for ; Thu, 7 Nov 2002 23:29:52 -0800 (PST) Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FF5643E75 for ; Thu, 7 Nov 2002 23:29:51 -0800 (PST) (envelope-from iwasaki@jp.FreeBSD.org) Received: from localhost (iwa@tasogare.imasy.or.jp [202.227.24.5]) by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare/smtpfeed 1.14) with ESMTP/inet id gA87Tmi27147; Fri, 8 Nov 2002 16:29:48 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Fri, 08 Nov 2002 16:29:43 +0900 (JST) Message-Id: <20021108.162943.74756425.iwasaki@jp.FreeBSD.org> To: gallatin@cs.duke.edu Cc: petry@NetMasters.Com, julian@elischer.org, sidcarter@symonds.net, current@FreeBSD.ORG Subject: Re: Kernel not booting....Immediate crash From: Mitsuru IWASAKI In-Reply-To: <20021108.135430.68032362.iwasaki@jp.FreeBSD.org> References: <200211071859.gA7IxbEV075350@netwolf.NetMasters.Com> <15818.50698.91676.542116@grasshopper.cs.duke.edu> <20021108.135430.68032362.iwasaki@jp.FreeBSD.org> X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > OK, some questions: > - What is the size of your base memory (reported by boot loader)? > - Does attached patches solve your problem? > - Is this problem specific to IBM Netvista? > > Thanks > > Index: locore.s > =================================================================== > RCS file: /home/ncvs/src/sys/i386/i386/locore.s,v Oops, not this file. Thanks Index: machdep.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/machdep.c,v retrieving revision 1.545 diff -u -r1.545 machdep.c --- machdep.c 25 Oct 2002 19:10:56 -0000 1.545 +++ machdep.c 8 Nov 2002 04:50:05 -0000 @@ -1513,6 +1513,7 @@ struct vm86context vmc; vm_offset_t pa, physmap[PHYSMAP_SIZE]; pt_entry_t *pte; + pt_entry_t saved_pte[160]; char *cp; struct bios_smap *smap; @@ -1520,6 +1521,14 @@ bzero(physmap, sizeof(physmap)); basemem = 0; + for (pa = (4 << PAGE_SHIFT); pa < ISA_HOLE_START; pa += PAGE_SIZE) + pmap_kenter(KERNBASE + pa, pa); + pte = (pt_entry_t *)vm86paddr; + for (i = 4; i < 160; i++) { + saved_pte[i] = pte[i]; + pte[i] |= PG_V | PG_RW | PG_U; + } + /* * map page 1 R/W into the kernel page table so we can use it * as a buffer. The kernel will unmap this page later. @@ -1629,6 +1638,12 @@ * pmap_mapdev, but since no memory needs to be * allocated we simply change the mapping. */ + pte = (pt_entry_t *)vm86paddr; + for (i = 4; i < 160; i++) + pte[i] = saved_pte[i]; + for (pa = (4 << PAGE_SHIFT); pa < ISA_HOLE_START; pa += PAGE_SIZE) + pmap_kremove(KERNBASE + pa); + for (pa = trunc_page(basemem * 1024); pa < ISA_HOLE_START; pa += PAGE_SIZE) pmap_kenter(KERNBASE + pa, pa); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message