Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Johnny Billquist <bqt@softjar.se>
Subject: Re: PDP11 Values from MFPT
Date: Fri, 20 Jan 2012 17:48:57 +0100	[thread overview]
Message-ID: <jfc5tp$4v6$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <4f1f1d51.30229405@nntp.aioe.org>

On 2012-01-20 14:29, paramucho wrote:
> On Thu, 19 Jan 2012 17:42:37 +0100, Johnny Billquist<bqt@softjar.se>
> wrote:
>
>> On 2012-01-19 15.30, paramucho wrote:
>>> On Wed, 18 Jan 2012 19:12:24 +0100, Johnny Billquist<bqt@softjar.se>
>>> wrote:
>>>
>>> <snip>
>>> 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


  reply	other threads:[~2012-01-20 16:48 UTC|newest]

Thread overview: 222+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-15 14:37 PDP11 Values from MFPT Jerome H. Fine
2012-01-18  6:03 ` paramucho
2012-01-18 11:28   ` Johnny Billquist
2012-01-18 13:05     ` glen herrmannsfeldt
2012-01-18 13:26       ` Johnny Billquist
2012-01-26  3:24         ` Jerome H. Fine
2012-01-26 13:38           ` Johnny Billquist
2012-01-29  1:32             ` Jerome H. Fine
2012-01-29  1:43               ` Johnny Billquist
2012-01-26  3:23       ` Jerome H. Fine
2012-01-18 16:02     ` paramucho
2012-01-18 18:12       ` Johnny Billquist
2012-01-19 14:30         ` paramucho
2012-01-19 16:42           ` Johnny Billquist
2012-01-19 20:32             ` glen herrmannsfeldt
2012-01-20 13:32               ` paramucho
2012-01-20 13:29             ` paramucho
2012-01-20 16:48               ` Johnny Billquist [this message]
2012-01-21 12:25                 ` paramucho
2012-01-21 20:15                   ` Johnny Billquist
2012-01-26  3:25               ` Jerome H. Fine
2012-01-26  6:09                 ` paramucho
2012-01-26  6:30                   ` paramucho
2012-01-26 13:50                     ` Johnny Billquist
2012-01-29  1:52                       ` Jerome H. Fine
2012-01-29  2:08                         ` Johnny Billquist
2012-01-26 13:48                   ` Johnny Billquist
2012-01-26 13:46                 ` Johnny Billquist
2012-01-29  1:35                   ` Jerome H. Fine
2012-01-18 12:41   ` glen herrmannsfeldt
2012-01-18 13:18     ` Johnny Billquist
2012-01-18 14:28       ` glen herrmannsfeldt
2012-01-18 15:14         ` Johnny Billquist
2012-01-18 21:54           ` glen herrmannsfeldt
2012-01-18 22:32             ` Al Kossow
2012-01-19  0:22             ` Johnny Billquist
2012-01-19  1:30               ` glen herrmannsfeldt
2012-01-19 14:32             ` Bob Koehler
2012-01-19 16:45               ` Johnny Billquist
2012-01-20 17:55                 ` Bob Koehler
2012-01-20 18:38                   ` Bill Gunshannon
2012-01-18 16:25       ` paramucho
2012-01-18 18:00         ` Johnny Billquist
2012-01-19 14:25           ` paramucho
2012-01-19 16:50             ` Johnny Billquist
2012-01-20 13:32               ` paramucho
2012-01-20 16:54                 ` Johnny Billquist
2012-01-21 13:16                   ` paramucho
2012-01-21 13:58                     ` Bob Eager
2012-01-21 20:02                     ` Johnny Billquist
2012-01-22 11:59                     ` Johnny Billquist
2012-01-22 14:03                       ` paramucho
2012-01-22 16:15                         ` Johnny Billquist
2012-01-23  4:14                           ` paramucho
2012-01-18 13:20     ` Bob Eager
2012-01-19 14:29       ` Bob Koehler
2012-01-21 12:44   ` Tim Shoppa
2012-01-21 13:50     ` paramucho
2012-01-22 16:56       ` Tim Shoppa
2012-01-22 18:11         ` glen herrmannsfeldt
2012-01-23  3:52         ` paramucho
2012-01-21 14:25     ` glen herrmannsfeldt
2012-01-21 16:46       ` Bob Eager
2012-01-25 22:12       ` Tim Shoppa
2012-01-26  3:22   ` Jerome H. Fine
2012-01-26 13:46     ` paramucho
2012-01-29  1:34       ` Jerome H. Fine
2012-01-29 15:46         ` paramucho
2012-02-01  3:53           ` Jerome H. Fine
2012-02-01 11:22             ` paramucho
2012-02-01 11:48               ` Johnny Billquist
2012-02-01 13:48                 ` paramucho
2012-02-01 14:43                   ` stan
2012-02-01 16:37                     ` paramucho
2012-02-01 18:05                       ` stan
2012-02-02  2:24                       ` Jerome H. Fine
2012-02-02  0:14                   ` Johnny Billquist
2012-02-02  2:25                     ` Jerome H. Fine
2012-02-02  9:29                       ` Johnny Billquist
2012-02-02 18:52                         ` glen herrmannsfeldt
2012-02-03  0:12                           ` Johnny Billquist
2012-02-03  4:07                           ` Jerome H. Fine
2012-02-03 14:15                             ` Johnny Billquist
2012-02-03 15:00                         ` paramucho
2012-02-02 13:31                     ` paramucho
2012-02-02 19:07                       ` glen herrmannsfeldt
2012-02-03  0:16                         ` Johnny Billquist
2012-02-03  4:23                           ` glen herrmannsfeldt
2012-02-03 12:01                             ` Johnny Billquist
2012-02-03 15:36                           ` Joe Oswald
2012-02-07 10:46                             ` Johnny Billquist
2012-02-03  4:29                         ` Jerome H. Fine
2012-02-03 12:50                           ` Bill Gunshannon
2012-02-04  8:42                             ` Charles Richmond
2012-02-04 13:38                               ` paramucho
2012-02-04 16:03                                 ` Bill Gunshannon
2012-02-04 16:39                                   ` paramucho
2012-02-03 10:48                         ` paramucho
2012-02-03 11:24                       ` Johnny Billquist
2012-02-04 17:06                         ` paramucho
2012-02-04 18:22                           ` paramucho
2012-02-04 18:55                             ` Johnny Billquist
2012-02-04 19:13                               ` Bill Gunshannon
2012-02-05 13:28                                 ` Johnny Billquist
2012-02-05 18:15                                   ` glen herrmannsfeldt
2012-02-04 18:51                           ` Johnny Billquist
2012-02-04 23:09                             ` glen herrmannsfeldt
2012-02-05 14:01                               ` paramucho
2012-02-05 15:31                                 ` Johnny Billquist
2012-02-06 13:50                                   ` paramucho
2012-02-06 14:45                                     ` Johnny Billquist
2012-02-06 14:58                                       ` paramucho
2012-02-06 16:25                                         ` Johnny Billquist
2012-02-05 14:27                               ` Johnny Billquist
2012-02-05 13:57                             ` paramucho
2012-02-05 15:44                               ` Johnny Billquist
2012-02-06 13:51                                 ` paramucho
2012-02-06 14:56                                   ` Johnny Billquist
2012-02-06 16:40                                     ` Johnny Billquist
2012-02-07 14:50                                       ` paramucho
2012-02-07 16:20                                         ` Johnny Billquist
2012-02-08 13:34                                           ` paramucho
2012-02-08 16:03                                             ` Johnny Billquist
2012-02-08 16:58                                               ` paramucho
2012-02-08 22:29                                                 ` Johnny Billquist
2012-02-10 13:12                                                   ` paramucho
2012-02-10 19:20                                                     ` glen herrmannsfeldt
2012-02-11 13:12                                                       ` paramucho
2012-02-11 20:06                                                         ` glen herrmannsfeldt
2012-02-11 20:23                                                         ` Johnny Billquist
2012-02-10 19:29                                                     ` Johnny Billquist
2012-02-11 13:15                                                       ` paramucho
2012-02-11 21:09                                                         ` Johnny Billquist
2012-02-12 17:23                                                           ` paramucho
2012-02-12 18:35                                                             ` paramucho
2012-02-13 17:30                                                               ` paramucho
2012-02-14 13:14                                                               ` Johnny Billquist
2012-02-14 16:20                                                                 ` paramucho
2012-02-14 17:30                                                                   ` Johnny Billquist
2012-02-13 23:18                                                             ` Johnny Billquist
2012-02-14 16:20                                                               ` paramucho
2012-02-14 17:47                                                                 ` Johnny Billquist
2012-02-14 18:17                                                                   ` paramucho
2012-02-14 19:54                                                                     ` Johnny Billquist
2012-02-15 12:58                                                                       ` paramucho
2012-02-15 17:12                                                                         ` Johnny Billquist
2012-02-16 13:54                                                                           ` paramucho
2012-02-16 20:15                                                                             ` Johnny Billquist
2012-02-17 12:41                                                                               ` paramucho
2012-02-17 17:13                                                                                 ` Johnny Billquist
2012-02-18 11:24                                                                                   ` Johnny Billquist
2012-02-18 14:28                                                                                     ` paramucho
2012-02-18 20:07                                                                                       ` Johnny Billquist
2012-02-18 11:55                                                                                   ` paramucho
2012-02-18 20:58                                                                                     ` Johnny Billquist
2012-02-20  2:29                                                                                       ` Jerome H. Fine
2012-02-20  5:54                                                                                         ` paramucho
2012-02-20 17:14                                                                                           ` Jerome H. Fine
2012-02-20 18:05                                                                                             ` Johnny Billquist
2012-02-21  6:16                                                                                               ` paramucho
2012-02-21 17:38                                                                                               ` Jerome H. Fine
2012-02-21 19:31                                                                                                 ` Johnny Billquist
2012-02-20  5:53                                                                                       ` paramucho
2012-02-20 10:28                                                                                         ` Johnny Billquist
2012-02-21  3:33                                                                                           ` Jerome H. Fine
2012-02-21  6:17                                                                                           ` paramucho
2012-02-21 10:23                                                                                             ` Johnny Billquist
2012-02-21 11:37                                                                                               ` paramucho
2012-02-21 14:16                                                                                                 ` Johnny Billquist
2012-02-21 16:42                                                                                                   ` paramucho
2012-02-21 19:43                                                                                                     ` Johnny Billquist
2012-02-22 12:21                                                                                                       ` paramucho
2012-02-22 14:12                                                                                                         ` paramucho
2012-02-22 15:26                                                                                                         ` Johnny Billquist
2012-02-22 14:33                                                                                                       ` paramucho
2012-02-22 15:53                                                                                                         ` Johnny Billquist
2012-02-22 16:48                                                                                                           ` paramucho
2012-02-22 21:17                                                                                                             ` Johnny Billquist
2012-02-23 12:42                                                                                                               ` paramucho
2012-02-23 13:51                                                                                                                 ` paramucho
2012-02-23 15:17                                                                                                                 ` Johnny Billquist
2012-02-20  2:22                                                                                   ` Jerome H. Fine
2012-02-20  6:07                                                                                     ` paramucho
2012-02-21  3:29                                                                                       ` Jerome H. Fine
2012-02-21  8:06                                                                                         ` paramucho
2012-02-21 10:38                                                                                           ` Johnny Billquist
2012-02-21 11:54                                                                                             ` paramucho
2012-02-21 14:20                                                                                               ` Johnny Billquist
2012-02-21 15:13                                                                                                 ` paramucho
2012-02-21 15:20                                                                                                   ` Johnny Billquist
2012-02-22  2:51                                                                                           ` Jerome H. Fine
2012-02-22  6:37                                                                                             ` paramucho
2012-01-18 11:20 ` Johnny Billquist
2012-01-26  3:21   ` Jerome H. Fine
2012-01-26 14:12     ` Johnny Billquist
2012-01-26 15:26       ` paramucho
2012-01-29  1:41         ` Jerome H. Fine
2012-01-29  2:04           ` Johnny Billquist
2012-01-29  2:31             ` Johnny Billquist
2012-01-29  1:39       ` Jerome H. Fine
2012-01-29  1:45         ` Johnny Billquist
2012-01-30  2:21 ` Bob Supnik
2012-01-31  7:14   ` paramucho
2012-01-31  9:42     ` Johnny Billquist
2012-01-31 14:24       ` Bill Gunshannon
2012-01-31 20:17         ` Johnny Billquist
2012-01-31 21:39           ` Bill Gunshannon
2012-01-31 23:43             ` glen herrmannsfeldt
2012-02-01  3:56             ` Jerome H. Fine
2012-02-01 11:53               ` Johnny Billquist
2012-02-01 13:48                 ` paramucho
2012-02-02  0:20                   ` Johnny Billquist
2012-02-02  2:22                 ` Jerome H. Fine
2012-02-01 12:14             ` Johnny Billquist
2012-02-01 16:27               ` glen herrmannsfeldt
2012-02-01  5:28         ` Charles Richmond
2012-02-01 11:54           ` Johnny Billquist
2012-02-01  3:55       ` Jerome H. Fine
2012-02-01 11:22       ` paramucho
2012-02-01 12:03         ` Johnny Billquist
2012-02-01  3:54   ` Jerome H. Fine
2012-02-01 12:09     ` Johnny Billquist
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox