From owner-freebsd-current Wed Jul 18 10:28:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id 6F14C37B408 for ; Wed, 18 Jul 2001 10:28:06 -0700 (PDT) (envelope-from jlemon@flugsvamp.com) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.0/8.11.0) id f6IHS0K63136; Wed, 18 Jul 2001 12:28:00 -0500 (CDT) (envelope-from jlemon) Date: Wed, 18 Jul 2001 12:28:00 -0500 (CDT) From: Jonathan Lemon Message-Id: <200107181728.f6IHS0K63136@prism.flugsvamp.com> To: yokota@zodiac.mech.utsunomiya-u.ac.jp, current@freebsd.org Subject: Re: vm86 problem in -CURRENT X-Newsgroups: local.mail.freebsd-current In-Reply-To: Organization: Cc: 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 In article you write: >As far as I understand, the entire 1M bytes of lower physical memory >is supposed to be mapped when vm86_intcall() is run. Apparently >0xc0000, where the video BIOS ROM resides, is mapped OK. But, somehow >0xa0000, where the video ram is, went missing. As I wrote before, >this test program sometimes runs fine, sometimes does not. When you make a vm86 call from the kernel, it uses a private page table (located at vm86paddr) in order to map the pages. The details of the layout can be found in i386/i386/vm86.c. This page table is initially populated in locore.s, and contains only page 0 + the ISA hole (0xa0000 -> 0x100000). If getmemsize() detects that there is a hole between basemem and ISA memory, the pages in this hole will additionally be mapped into the vm86 space. If you're getting a page fault while trying to access 0xa0000, then it would seem that the entries in the vm86 page table are incorrect. You can check this by examining the page table located at vm86paddr. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message