From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: ffc31,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidf4c4f7386e,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.74.201 with SMTP id w9mr5888549pbv.0.1327078138063; Fri, 20 Jan 2012 08:48:58 -0800 (PST) Path: lh20ni204230pbb.0!nntp.google.com!news2.google.com!eweka.nl!feeder.eweka.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Fri, 20 Jan 2012 17:48:57 +0100 Organization: Update Computer Club Message-ID: References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f175c07.15409279@nntp.aioe.org> <4f16e707.10168332@nntp.aioe.org> <4f181c7d.40278662@nntp.aioe.org> <4f1f1d51.30229405@nntp.aioe.org> NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1327078137 5094 178.83.31.172 (20 Jan 2012 16:48:57 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Fri, 20 Jan 2012 16:48:57 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: <4f1f1d51.30229405@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-01-20 14:29, paramucho wrote: > On Thu, 19 Jan 2012 17:42:37 +0100, Johnny Billquist > wrote: > >> On 2012-01-19 15.30, paramucho wrote: >>> On Wed, 18 Jan 2012 19:12:24 +0100, Johnny Billquist >>> wrote: >>> >>> >>> Of course, other conditions are detected, including emulators and the >>> presence of a DEC programmable clock. >> >> How do you detect emulation or a DEC programmable clock this way? > > The other conditions aren't detected with a timing loop...you seem to > be talking about general detection and timing-loop detection all at > the same time...or are we in alternate universes again... I was responding to your comment above, which I did include above my question. You said you detect other conditions, including emulators and the presence of a DEC programmable clock. So I just asked how you detected those ones. I thought that was a very straight forward question. >>>> Also, this might be messy if someone actually use a clock source with >>>> some other frequency... >>>> (800Hz seems to have been somewhat popular as well). >>> >>> It supports the standard DEC configurations. For non-standard hardware >>> it fails benignly and can be overridden with a bootstrap .INI file >>> entry or a startup command file. It's not messy at all. >> >> Well, any 11/73, 11/83, 11/84, 11/93 or 11/94 have in the setup menu the >> option to run the system clock at power line frequency, 50 Hz, 60 Hz or >> 800 Hz. Seems rather standard hardware to me. >> I have not checked if the 11/53 have the same option. For older >> machines, you need the programmable clock to select anything but line >> frequency. > > The 800hz option isn't present on the 11/73. It's not documented in > the CPU guide and I note that SimH only provides the "JCLK" option for > the 8x and 9x CPUs but not for the 73. At least some 11/73 machines use the same CPU as the 11/83, so it is present on some 11/73 machines. > In any case, since the option settings for 50/60/800 hz are visible in > a processor register (xx177520) I don't need to detect the setting in > a timing loop. It's just a matter of a CPU and CSR detect. Right. > At present CPU support for RUST systems hasn't advanced beyond the > 11/73. Later stuff is on the TODO list, but until someone who can also > test the code requests the functionality there are better ways to > waste my time. :-) >> And I'm maybe a little surprised that RT-11 don't use WAIT, but then >> again, it's a simple single-user system, so it might not be totally >> shocking that it don't use WAIT. > > According to SimH documentation the SET CPU IDLE code benefits RSX and > RSTS but not RT-11 or UNIX. Unix is not a single-user operating > system. I'm not sure about the many other operating systems written > for the PDP-11. You note elsewhere that a later version of BSD > supports WAIT, but Bob Supnik is probably talking about "Unix" Unix. Just checked Unix V7, it also uses WAIT. > RT-11 is definitely a multi-task/job system. Late versions of the > system support "system jobs" running just about any system program > (I've never actually used the feature though). So, if multi-process is > a reason for WAIT, then it applies equally to RT-11. > > In any case, it's more a question of single-CPU than it is single- > user. There's no particular benefit to using WAIT in a single-CPU > configuration. Up until 2006 the instruction was effectively ignored > by SimH and is still ignored out-of-the-box for SimH. Actually, there is not much of a point for WAIT even in multiprocessor systems. There is a reason why the VAX don't have a WAIT. WAIT is actually only really nice to have when you are emulating the CPU, since at a WAIT, you can stop processing until some external event happens. The biggest reason for using WAIT on a real PDP-11 is that when the WAIT is executing R0 is placed on the data bus, and thus you have a nice and convenient way of displaying something on the front panel of computers that have that, and yet have that bludder away as the CPU have more work to do. There is even one or two machines that have a display that can show values, but as far as I can remember, didn't work with a switch register CSR (the 11/60 being one, if I remember right). So actually writing to the switch register wasn't possible, but having idle loops on the system show some pattern on the front panels were rather popular... And I thought the RT-11 also did, but looking at the code, I'm unclear if RT-11 did, and if it did, then how... > It's not necessary for a system to use every feature provided by the > hardware architecture. For example, the original planned use of > interrupt vectors has essentially been ignored by RT-11 and RSX for > years which uniformly take interrupts at PR7 and then lower priority > to the device level rather than letting the vector do that job as > originally planned. Then there's the PDP-11 virtual memory feature, > not to forget MARK. The PDP-11 virtual memory is extensively used by most OSes on the PDP-11. Are you thinking of the potential on some machines to implement demand paging? And please lets forget the MARK. ;-) It is incompatible with I/D space... >> Do you know how the idle loop displays anything on the switch register >> in RT-11? Does it actually write to the switch register? Do you know >> where in the code it is? Trying to look a little at the RT-11 sources... > > A long, long time ago, when I was a young coder, I could more-or-less > recite the RT-11 monitor code from memory, and yes, the idle loop code > is still in the sources even though switch registers are long gone. I hope you understand my question better based on the discussion of the WAIT instruction above. > As discussed in our earlier threads, I usually don't waste my time > presenting details of RT-11 in our discussions since you generally > don't respond (beyond snipping), but since you ask I'll summarise my > fuller response to Glenn here. I usually have very little to contribute on RT-11 specific things. In this case I was wondering how RT-11 played with idle loop displays on the front panel, which is (on other systems) based on the behavior of the WAIT instruction. Since RT-11 appears to not use WAIT, this becomes a rather relevant question. But it is a small detail, and not bearing much relevance on RT-11 in a larger picture. I'm basically curious on how RT-11 does it, if it don't use WAIT. Do it write to the switch register (well, maybe it is called the display register, I can't remember and am too lazy to check that one up right now, I'm sure you know what I'm talking about), or does it have some other trick? > (I'm heartened to see that you're finally reading the RT-11 sources. > Welcome to the bright side of the road comrade :-) I've read through a bunch of RT-11 before. I don't remember if it was you or someone else I had a discussion with, where I needed to figure out how USR and file operations work, in the face of potentially multiple programs calling it. Bright side... I don't know. It's always nice to read PDP-11 code, and you can always learn a trick or two. But I definitely prefer the RSX code. :-) >> And even the line clock type can actually give you other frequencies, as >> I mentioned above, depending on which machines you have. > > You mentioned one other "line clock" frequency only (800hz), not > plural "frequencies", but it's not necessary to autodetect that > frequency since the information in that case is available in a > processor register. Caught me. :-) I don't know if there are other frequencies that you might hit or not. My point was that I *know* of at least one other frequency. Actually, since we're talking line frequency, it can be more or less anything. Just because Europe use 50 Hz, and the US 60 Hz don't mean we've covered the whole world on the questions of what line frequencies might exist. > Indeed, despite your vociferous objections and invented issues there > is *no* problem. For most machines the feature automatically detects > the line frequency. If not, it fails benignly. It doesn't apply to > virtual ports or dynamic runtime changes. It doesn't need to detect > 800hz. It can be overriden with a .INI file or the startup command > file. You might think I'm making up imaginary problems. I (obviously) disagree. This is not meant as an attack on you, and I hope you don't take it that way. I'm pointing out ways your code can fail, and you just say that in real life you haven't been bitten. Good for you. Does that mean it can't happen? I think it can. There are plenty of examples in the real world where designs in code have suddenly failed because of a scenario that was considered unlikely enough to be ignored when the code was written. > I know that my European and Australian 50hz customers would have loved > to have had the feature back in the 80s. I only came up with the > feature when I decided to rejuvinate my systems over the last decade > to introduce some of more beneficial recent operating systems ideas, > and one of those good ideas is that systems should figure out for > themselves what hardware they have without bugging users. > > Are we done yet? Can we find something else to chew? :-) I'm almost never done. Haven't you figured that out yet? :-) Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol