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.75.170 with SMTP id d10mr1330486pbw.6.1327148745482; Sat, 21 Jan 2012 04:25:45 -0800 (PST) Path: lh20ni207280pbb.0!nntp.google.com!news2.google.com!eweka.nl!feeder.eweka.nl!62.179.104.142.MISMATCH!amsnews11.chello.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail From: paramucho@hotmail.com (paramucho) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Sat, 21 Jan 2012 12:25:36 GMT Organization: Aioe.org NNTP Server Message-ID: <4f1aabbd.20887894@nntp.aioe.org> 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> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: yPe0Vz9rK3epnEf2vEo6yg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 1.5/32.451 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Fri, 20 Jan 2012 17:48:57 +0100, Johnny Billquist wrote: >>> 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. I was confused because you asked how I detected emulation or a programmable clock "this way", which sounded like you were asking how I detected them using a timer loop. I posted the code for the emulation detection earlier in this thread. My strategy, from memory, is to write some values into MMU SR0 and then look at the results. It's not a particularly great test for a couple of reasons. (1) it only works if the emulated CPU has memory management. That doesn't worry me too much because there's no reason to run any RUST system without the default memory management setting. (2) E11 doesn't really implement SR0 at the moment, so I'll be screwed if it ever does so. That doesn't worry me too much because there's no real reason for JW to add the code. (3) I don't perform the test if there's a bootstrap module at I/O pagte 173000. Neither SimH or E11 emulate the device, or at least, not by default. I don't know why I implemented that restriction. O/S's are just conservative by nature. The programmable clock is detected just like all the other system registers: you look to see if the I/O address of the relevant CSR answers. There's nothing particularly fancy going on. I managed to put together some reasonably well-tested detection code back in the 80s and I still rely on it these days. The good thing about having customers was that you got a lot of testing done... RUST/XM has pages and pages of detection routines. It does all the usual things, as I've stated, but I'd like it to do more in terms of recognising the available devices. At present I handle device detection with special routines in each driver. RUST/XM begins with a general environment scan. The code is semi-independent and can be compiled as a separate ENV utility. We sometimes gave potential clients ENV so that could check in advance if their computer setup was a suitable machine. ENV attempts to do as many of the checks as possible without accessing the I/O page or using kernel-only instructions. One of the ways it does this is by testing for lots of the processor differences listed at the back of the PDP-11 processor handbooks. It also tests for VAX compatibility mode. There are other peculiarities... >> 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. > >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... See my detailed reponse in my other reply. >> 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? Yes, demand paging. There for the taking. Has any system ever used it? I sometimes think about giving it a shot. >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. Yes. >> 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? See the other detailed response. >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. Well, there's *only one* other known standard line clock frequency, and we see that in the systems and the emulators. Non-standard hardware is always treated differently but I always attempt to fail in some non-critical manner with work-arounds. If there are problems beyond that then it's time to debug and redesign. >> 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 don't take it as an attack at all. I enjoy talking details and don't mind being hammered for inaccuracies. It keeps the PDP-11 area of my brain a little sharper. However, I do find there's an excess of repetition and overstatement at times. It means that responding becomes a longer, more verbose process. I seem to be retyping the same things over and over. >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. Of course all new code can fail. But somethings are worth putting out there. You win some, you lose some, and you patch the rest. My company always tried to extend the ease-of-use of systems and that involved taking calculated risks, but those risks were tempered by providing overrides and workarounds etc. Back in the eighties I had commercial, competitive goals and full compatibility with RT-11 was the primary goal. These days I don't have those pressures and I like to try more innovation. It's not like I have a thousand customers to deal with. I know that there's a regular stream of people going to to my download page, but whether anyone is actually using the systems these days, I have no idea, beyond one or two. >> 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? :-) We definitely need a bigger bone. Ian