The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: cowan@mercury.ccil.org (John Cowan)
Subject: [TUHS] speaking of early C compilers
Date: Tue, 28 Oct 2014 18:02:50 -0400	[thread overview]
Message-ID: <20141028220250.GC3885@mercury.ccil.org> (raw)
In-Reply-To: <2A352307-DB5B-4434-B5E3-C6747CD71AD4@ronnatalie.com>

Ronald Natalie scripsit:

> Amusingly, if you read the DEC processor handbook, it says the TRAP
> instruction is designed to invoke system calls.    UNIX did this
> of course.   Amuslingly, the DEC operating systems, including RSTS,
> used EMT to invoke system calls.   The book says this was put there
> to allow emulating other OSs.    Well this made it relatively easy.

Unless I have utterly forgotten, EMT was to be used by DEC and TRAP
by users.  Since Bell Labs was a user, they used TRAP (I asked ken --
I think it was ken, definitely not Ken -- about this).  Of course,
DEC didn't anticipate that any user would write an operating system!

On RSTS/E as opposed to RSTS, both EMT and TRAP went to the user
executive.  To reach the kernel, you did EMT 377 followed by another
EMT, but EMT 377; EMT 377 was vectored back to the user as an EMT 377.
That's what allowed RSTS/E to host other OSes that used EMT.

-- 
John Cowan          http://www.ccil.org/~cowan        cowan at ccil.org
Nobody expects the RESTifarian Inquisition!  Our chief weapon is
surprise ... surprise and tedium  ... tedium and surprise ....
Our two weapons are tedium and surprise ... and ruthless disregard
for unpleasant facts....  Our three weapons are tedium, surprise, and
ruthless disregard ... and an almost fanatical devotion to Roy Fielding....



  reply	other threads:[~2014-10-28 22:02 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-27 10:32 Jason Stevens
2014-10-27 13:03 ` Brantley Coile
2014-10-27 13:34   ` Ronald Natalie
2014-10-27 13:40     ` random832
2014-10-27 14:04       ` Clem Cole
2014-10-27 15:04       ` Dave Horsfall
2014-10-27 17:09 ` scj
2014-10-27 20:35   ` Ronald Natalie
2014-10-27 21:34     ` Clem Cole
2014-10-28  1:09       ` Dave Horsfall
2014-10-28  2:06         ` Clem Cole
2014-10-28 12:22           ` Ronald Natalie
2014-10-28 12:42             ` Clem Cole
2014-10-28 13:03               ` Ronald Natalie
2014-10-28 22:02                 ` John Cowan [this message]
2014-10-27 13:46 Noel Chiappa
2014-10-27 13:54 Jason Stevens
2014-10-27 14:48 Noel Chiappa
2014-10-27 15:09 ` Ronald Natalie
2014-10-27 15:13 ` Dave Horsfall
2014-10-27 16:52 ` Dan Cross
2014-10-27 15:48 Noel Chiappa
2014-10-27 16:25 ` Dave Horsfall
2014-10-28  0:16   ` John Cowan
2014-10-27 16:50 Norman Wilson
2014-10-27 18:16 Nelson H. F. Beebe
2014-10-28  1:55 Jason Stevens
2014-10-28 12:52 ` Ronald Natalie

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=20141028220250.GC3885@mercury.ccil.org \
    --to=cowan@mercury.ccil.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).