From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27656 invoked from network); 8 Oct 2020 23:50:52 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 8 Oct 2020 23:50:52 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 9DA869D006; Fri, 9 Oct 2020 09:50:48 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 1F9B29CF89; Fri, 9 Oct 2020 09:50:03 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id B4B8F9CF89; Fri, 9 Oct 2020 09:49:58 +1000 (AEST) Received: from mercury.lcs.mit.edu (mercury.lcs.mit.edu [18.26.0.122]) by minnie.tuhs.org (Postfix) with ESMTPS id 1CF109CF59 for ; Fri, 9 Oct 2020 09:49:58 +1000 (AEST) Received: by mercury.lcs.mit.edu (Postfix, from userid 11178) id 16CED18C09E; Thu, 8 Oct 2020 19:49:57 -0400 (EDT) To: tuhs@minnie.tuhs.org Message-Id: <20201008234957.16CED18C09E@mercury.lcs.mit.edu> Date: Thu, 8 Oct 2020 19:49:57 -0400 (EDT) From: jnc@mercury.lcs.mit.edu (Noel Chiappa) Subject: Re: [TUHS] Fwd: Choice of Unix for 11/03 and 11/23+ Systems X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jnc@mercury.lcs.mit.edu Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" > From: Paul Riley > Always darkest before the dawn. Well, we'll see. I found _that_ one; process 1 managed to exec() init, do a fork(), and then the child process exec()'d the shell - then that apparently died, and the code in init falls through into: termall(); execl(init, minus, 0); when the single-user shell exits, so then init restarted; rinse, repeat. So a _lot_ of the code in mch.s seemed to be working correctly; system calls (2 exec()'s, and a fork()) worked, processing switching worked, device interrupts (for the disk and console tty) seemed to be working.. Not sure what's left! So I looked at mch.s again, to see what else _was_ there, and I noticed a place where I used R0 as a temp - with the MFPS/MTPS thing to get to the PS, instructions like: BIS #340, PS need to change to: MFPS R0 BIS #340, R0 MTPS R0 and R0 was being used to hold an arg (in pword:), and was being bashed. So I fixed it, and now the shell starts OK, but attempting to do any command (e.g. "echo foo"), things hang (the shell doesn't fork). If I type the interrupt character, the shell exits, and init restarts. Oh well, hopefully this one won't be too painful to work out. The system's mostly working, which I think will really help. Noel