From: boyd@prl.dec.com (Boyd Roberts)
Subject: Re: VAX question
Date: Sun, 26 Jul 1992 21:19:39 GMT [thread overview]
Message-ID: <1992Jul26.211939.25698@prl.dec.com> (raw)
In-Reply-To: 1992Jul26.015003.1@matrix.cs.wright.edu
In article <1992Jul26.015003.1@matrix.cs.wright.edu>, dwagoner@matrix.cs.wright.edu writes:
> Can anyone explain the difference between P0 and P1 space on a VAX?
P0 space starts at 0 and goes to 0x3FFFFFFF. P1 space starts at 0x7FFFFFFF
and extends down to 0x40000000. P0 is used for text, data and bss. P1
is used for the stack. [I hope i've got the numbers right; anyway it's
all to do with the top two bits of the address:
31 30 ... 0
o o o o ... o
^ ^
| |--------- P0/P1
|
|----------- user/kernel space
kernel P1 is invalid].
> Text and initialized data segments (on BSD 4.3, at least) wind up
> in P0 space; unitialized data (i.e. stack) is placed in P1 space.
Uninitialised data is known as bss and belongs in P0.
> The two regions are accessed using different base registers; P1 is
> a bit tricky to work with in comparison to P0.
Well, I always thought that it was counter intuitive for the human
but was designed to be simple for the machine. I think the idea
was to use the same arithmetic for both regions. From memory, the P1
length register indicated how much is _not_ mapped.
Boyd Roberts boyd@prl.dec.com
``When the going gets wierd, the weird turn pro...''
next prev parent reply other threads:[~1992-07-26 21:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-07-26 5:50 VAX question dwagoner
1992-07-26 21:19 ` Boyd Roberts [this message]
1992-07-26 22:39 ` VAX question (P0/P1 space) Eliot Moss
1992-07-27 21:24 ` Paul Dormitzer
1992-07-28 15:51 ` Paul Dormitzer
1992-08-05 10:28 ` reading E-net address on DecStation 3100 Delamper Lukas
1992-08-05 17:03 ` Gary A. Gaudet
1992-08-07 12:31 ` E.C. Loyd
1992-08-10 5:23 ` Peter Kaiser
1992-07-27 13:40 ` VAX question Dileep Bhandarkar
1992-07-27 16:44 ` CP/M lives!
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox