The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: John Cowan <cowan@ccil.org>
To: Ron Natalie <ron@ronnatalie.com>
Cc: TUHS main list <tuhs@minnie.tuhs.org>
Subject: Re: [TUHS] First Unix-like OSes not derived from AT&T code?
Date: Thu, 12 May 2022 08:43:32 -0400	[thread overview]
Message-ID: <CAD2gp_Qm4ceJqqyP91CLyDGQRPyr9N0QsPVm876=9qshzMX=wg@mail.gmail.com> (raw)
In-Reply-To: <emf1ba8cf8-984b-40de-b833-c7f709dd4854@9be1ebce.com>

[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]

On Thu, May 12, 2022 at 8:07 AM Ron Natalie <ron@ronnatalie.com> wrote:


> UNIX uses trap as a system call, RSTS (like most DEC OS's for some odd
> reason) uses EMT.
>

That's pretty much what the processor documentation says (in various
wordings depending on what manual you look at).  EMT is for the "system",
TRAP is for the "user".  The intention, I think, was that a user-mode
program could use TRAP for its own purposes, and the supervisor would keep
track of the TRAP vector in low memory associated with a process.  Since
Unix was a "user program", even though it ran in supervisor mode, the
decision was made to use TRAP.

Each DEC OS used EMT in a different way.  Consequently, when the RSTS/E
pseudo-hypervisor (it didn't provide full emulation) was written,
hypervisor calls were performed with EMT 377 immediately followed by
another EMT.  This was unlikely to occur in any user program (at minimum
you'd have to set up the registers for the second call).  An EMT was acted
on by the hypervisor only if it met these conditions (the second EMT was
simply examined, not executed), otherwise it was vectored to the guest OS.
Similarly, RSX/11-M used only EMT 376 and EMT 377, neither of which were
used by RT-11 user programs, making it possible to run a thin RT-11
emulator as a user program that EMTed into RSX to do its work.

[-- Attachment #2: Type: text/html, Size: 2132 bytes --]

  reply	other threads:[~2022-05-12 12:44 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-01  9:30 Andrew Warkentin
2022-05-01 11:43 ` Ron Natalie
2022-05-01 11:56   ` Rob Pike
2022-05-01 14:03     ` Kenneth Goodwin
2022-05-03  4:37       ` Jim Carpenter
2022-05-01 14:09   ` Kenneth Goodwin
2022-05-01 18:08     ` ron minnich
2022-05-01 18:22       ` Charles H Sauer (he/him)
2022-05-01 19:49         ` Dan Stromberg
2022-05-01 20:37           ` Charles H Sauer (he/him)
2022-05-02  2:08       ` Kenneth Goodwin
2022-05-02  9:21         ` Dr Iain Maoileoin
2022-05-02 20:19           ` Rich Morin
2022-05-02 21:30             ` Clem Cole
2022-05-02 21:36             ` Dan Cross
2022-05-10 15:28         ` Mary Ann Horton
2022-05-10 16:08           ` Warner Losh
2022-05-10 16:40             ` Heinz Lycklama
2022-05-10 16:42             ` James Frew
2022-05-14  2:56             ` Mary Ann Horton
2022-05-10 16:59           ` Clem Cole
2022-05-10 17:18             ` Clem Cole
2022-05-10 18:05               ` Charles H Sauer (he/him)
2022-05-10 19:27                 ` Lars Brinkhoff
2022-05-10 19:08               ` Henry Bent
2022-05-10 19:33                 ` Richard Salz
2022-05-10 20:18                   ` Ronald Natalie
2022-05-11 16:20                     ` James Frew
2022-05-11 16:51                       ` Paul Winalski
2022-05-10 20:28                   ` Henry Bent
2022-05-10 20:43                   ` Warner Losh
2022-05-10 20:46                   ` Clem Cole
2022-05-11 16:44                     ` Paul Winalski
2022-05-11 17:09                       ` Clem Cole
2022-05-11 17:35                       ` Larry McVoy
2022-05-12  0:16                         ` George Michaelson
2022-05-13  2:46                         ` Adam Thornton
2022-05-15  0:48                           ` Larry McVoy
2022-05-15  5:36                             ` Adam Thornton
2022-05-15 13:37                               ` Larry McVoy
2022-05-12  5:22                       ` Warner Losh
2022-05-12 12:06                         ` Ron Natalie
2022-05-12 12:43                           ` John Cowan [this message]
2022-05-15  2:00         ` Stuart Remphrey
2022-05-02  2:42       ` Phil Budne
2022-05-02  6:46         ` Ron Natalie
2022-05-02 13:50           ` Clem Cole
2022-05-02 14:46             ` tytso
2022-05-02 15:38               ` Clem Cole
2022-05-02 20:31                 ` Warner Losh
2022-05-03  5:01                   ` tytso
2022-05-03 11:35                     ` Richard Salz
2022-05-02 23:30           ` Gregg Levine
     [not found]           ` <CAK7dMtD08weh+97mx+ncrq0cxprKgke42C0vFYNPnBkd8Fx9Sg@mail.gmail.com>
2022-05-03  7:28             ` Ronald Natalie
2022-05-02 12:59         ` Kenneth Goodwin
2022-05-02 14:13           ` Richard Salz
2022-05-02 13:14         ` tytso
2022-05-02 13:32           ` Larry McVoy
2022-05-02 13:16         ` Dan Cross
2022-05-02 14:14           ` Miod Vallat
2022-05-02 14:50             ` ron minnich
2022-05-02 16:13             ` Al Kossow
2022-05-02 18:46               ` Miod Vallat
2022-05-02 19:54               ` Chet Ramey
2022-05-02 21:17             ` Dan Cross
2022-05-02 23:49               ` George Michaelson
2022-05-03  7:22                 ` Ronald Natalie
2022-05-03  7:40               ` Miod Vallat
2022-05-03  8:03                 ` Ron Natalie
     [not found]               ` <CAEoi9W4eD8AF=FwjMT-KPRfyYgD+qgVvE1u3sBwiovm4=1WWLg@mail.g mail.com>
2022-05-03 12:14                 ` John Foust via TUHS
2022-05-01 20:55 ` Michael Huff
2022-05-03  4:55   ` Jim Carpenter
2022-05-02 15:43 ` Clem Cole
2022-05-02 16:16   ` Bakul Shah
2022-05-02 16:19     ` Bakul Shah
2022-05-02 17:14       ` Clem Cole
2022-05-02 16:29     ` Larry McVoy
2022-05-02 17:42     ` Clem Cole
2022-05-02 17:59       ` Bakul Shah

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='CAD2gp_Qm4ceJqqyP91CLyDGQRPyr9N0QsPVm876=9qshzMX=wg@mail.gmail.com' \
    --to=cowan@ccil.org \
    --cc=ron@ronnatalie.com \
    --cc=tuhs@minnie.tuhs.org \
    /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).