The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: ron@ronnatalie.com (Ronald Natalie)
Subject: [TUHS] user struct on SYSIII / V7
Date: Fri, 13 Nov 2015 15:16:34 -0500	[thread overview]
Message-ID: <4D2BAFF1-8A2C-42A4-9C42-102D2E6F109F@ronnatalie.com> (raw)
In-Reply-To: <20151113202754.Horde.0UIcoCQhpuBwcwWI3juWh_9@avocado.salatschuessel.net>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]

I can’t say how the Z8000 wants to implement it.   On the PDP11, the _u variable is set to the absolute 140000.   This isn’t really an “allocation.”  It’s just the base of one of the kernel address segments.   The kernel maps the per process data area (essentially the user structure and the kernel stack) there.    It’s just allocated as a hunk of usize memory (usize is in 64 byte chunks on the PDP).   The code one is “not expected to understand” handles this context switch.   In fact, the user structure is only ever “initialized” for the first process (init).   After that fork just copies it from the parent to the child and then all the other system calls, etc… change it as required.

Gosh it’s been a long time since I was this deep into a UNIX kernel (especially on a primitive machine).   
Hope this helps.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2284 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20151113/6b045248/attachment.bin>


  reply	other threads:[~2015-11-13 20:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-13 18:48 Oliver Lehmann
2015-11-13 18:51 ` Ronald Natalie
2015-11-13 18:53   ` Ronald Natalie
2015-11-13 19:12   ` Oliver Lehmann
2015-11-13 19:15     ` Ronald Natalie
2015-11-13 19:27       ` Oliver Lehmann
2015-11-13 20:16         ` Ronald Natalie [this message]
2015-11-13 19:33 ` Oliver Lehmann
     [not found]   ` <CE36BEBC-DA9F-4E95-B238-1D5C303700B9@icloud.com>
2015-11-13 19:42     ` Brantley Coile
2015-11-13 20:07   ` Oliver Lehmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D2BAFF1-8A2C-42A4-9C42-102D2E6F109F@ronnatalie.com \
    --to=ron@ronnatalie.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).