Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 1996 22:30:51 -0700
From:      David Greenman <>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Virtual memory question: map first page? 
Message-ID:  <>
In-Reply-To: Your message of "Tue, 22 Oct 1996 22:14:59 MDT." <> 

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
>I noticed that in imgact_aout.c the text segment gets mapped starting at
>linear address 4096.


>Is it possible to map the first page of linear memory?  What I would like
>to be able to do is set up a process in which linear addresses starting
>at 0 are mapped.

   Yes, it's possible.

>When I modified imgact_aout.c to map the first linear page of memory as
>an experiment, and then ran a specially cooked executable to exercise that
>code, the machine immediately hung.

   Operator error. :-)

>Is there something special on the first linear page of a user process?

   No. In fact if my memory isn't failing, the original "ZMAGIC" format of
386BSD (which we still support) maps the executable starting at virtual
address 0 (although to skip over the image header, the file offset is 4096).


David Greenman
Core-team/Principal Architect, The FreeBSD Project

Want to link to this message? Use this URL: <>