Of course. A single user system is a completely different world than a
multiuser, timesharing system, where you have to consider what any one
user/process can do that could impact others.
It's sortof complex in RSX and RSTS/E as well. It's just RT-11 that is
way simpler in this sense.
Johnny
> vlait/211bsd-csw> <
https://github.com/ <
https://github.com/>
> > vlait/211bsd-csw>
> >
> > forgot there is a later revision with some explanation of what's
> > under the hood for the "mem" driver
> >
> > -V
> >
> > On Tue, May 12, 2026 at 8:49 PM VilleLaitinen
> <
vlai...@gmail.com <mailto:
vlai...@gmail.com>>
> vlait/2.11BSD-swreg-ioctl> <https://
> >
github.com/vlait/2.11BSD-swreg-ioctl <
http://github.com/
> vlait/2.11BSD-swreg-ioctl>>
> >
> > -ioctl / fd access
> > -sysctl
> > -new syscalls (DigbyT posted these on the list years ago)
> >
> > Did not check if the patches can be applied to a current
> kernel
> > or not.. ymmv.
> > If someone wants to try them out but the patches cannot be
> > applied / you can't compile thekernel for some reason
> let me know
> > and i will try to help (or upload an pl499 with the mods
> applied)
> >
> > br,
> > -Ville
> >
> > ps. an idle loop that would inspect the memory location
> set by
> > the switches is a really nice debug idea :D
> >
> > On Tue, May 12, 2026 at 8:03 PM Johnny Billquist
> > <
b...@softjar.se <mailto:
b...@softjar.se>> wrote:
> >
> > Ah. I had a couple of more comments as well... :-)
> >
> > On 5/12/26 18:58,'John D. Bruner' via [PiDP-11] wrote:
> > > Yes, a C program could open /dev/kmem, seek to
> 0177570,
> > and write 2 bytesto the display register. However, init
> > changes the kernel security level to 1 when it goes
> multi-
> > user. This is a one-way change. Until the next reboot,
> > nothing can open /dev/mem or /dev/kmem for writing,
> so the C
> > program would only work in single-user mode.
> >
> > As mentioned - secure level can be kept at 0, if desired.
> >
> > > In some earlier versions of UNIX, the kernel read the
> > switch register on every line clock interrupt. It fetched
> > the word at that address (data space, using the low-order
> > bit to determine if it was kernel or user space) and
> wrote
> > it to the displayregister. Thus, you could put the
> address
> > of an interestingkernel variable into the switches and
> > watch its value change in real-time. So, although a C
> > program could write the display register, its value
> would be
> > clobbered by the kernel.
> >
> > So basically justcopying the switch register to the
> display
> > register?
> > Never seen that. But if that happens, yeah. You couldn't
> > play with it on
> > your own.
> >
> > > Another optionwould be to use the bus register,
> as the
> > kernel idle loop does: execute a loop that moves the
> desired
> > value to R0 and executes a WAIT instruction. The
> processor
> > will wait for thenext interrupt, displaying the last
> value
> > on the bus. The process will look to the kernel like
> it is
> > CPU-bound, but ifthere's nothing else happening then
> it'll
> > keep running. There's no way to get the C compiler to
> > generate a WAIT instruction, but it's pretty trivial to
> > implement a function that calls it in assembly.
> >
> > Indeed. However, a user level program can have a WAIT
> > instruction in
> > there, but it's aNOP. So you need to do that in
> kernel mode
> > then. Which
> > is what the kernel does itself, and is how you have the
> > rotating lights,
> > while at the sametime, if the system becomes loaded, you
> > see less of
> > that rotating light pattern...
> >
> > Johnny
> >
> > >
> > > --John
> > >
> > > On Tuesday, May 12th, 2026 at 09:02, Johnny Billquist
> > <
b...@softjar.se <mailto:
b...@softjar.se>> wrote:
> > >
> > >> Hi.
> > >>
> > >> On 5/12/26 16:57, Jon Lopez wrote:
> > >>> Hello,
> > >>>
> > >>> I've recently gotten a PiDP-11 and I've been
> having a
> > great time with
> > >>> it! I've mostly been playing around in 2.11BSD,
> writing
> > some simple C
> > >>> programs. I'm interested in possibly writing a
> program
> > to control the
> > >>> data LEDs, however I'm not too sure where to
> start or
> > if it's even
> > >>> possible from such a relatively high level language
> > running on a largely
> > >>> abstracted OS. Does anyone have any ideas? Thanks!
> > >>
> > >> In principle,this is fairly easy. But there are some
> > trickyness involved.
> > >>
> > >> First of all,if you look at it from the hardware
> point
> > of view, the
> > >> data LEDs on the front panel can show a few different
> > things, depending
> > >> on what you select with that rotary dial.
> > >>
> > >> What you wanthere is to display the display
> > >> But you couldlook around...
> > >>
> > >> I'm starting to think that maybe I should do a device
> > for it, with an
> > >> ioctl() to both read the switch register and set the
> > display register.
> > >> We'll see...
> > >>
> > >> Johnny
> > >>
> > >> --
> > >> You received this message because you are
> subscribed to
> > the Google Groups"[PiDP-11]" group.
> > >> To unsubscribe from this group and stop receiving
> emails
> > from it, send an email to
>
pidp-11+u...@googlegroups.com <mailto:
pidp-11%2Bu...@googlegroups.com>.
> > >> To view this discussion visit https://
>
groups.google.com/ <
https://groups.google.com/>
> > d/msgid/pidp-11/16b2ea71-81e5-42bc-
> > aa54-4671c1b75679%
40softjar.se <
http://40softjar.se>
> <
https://groups.google.com/d/ <
https://groups.google.com/d/>
> > msgid/pidp-11/16b2ea71-81e5-42bc-
> > aa54-4671c1b75679%
40softjar.se <
http://40softjar.se>>.
> > >>
> > >
> >
> > --
> > You received thismessage because you are subscribed
> to the
> > Google Groups "[PiDP-11]" group.
> > To unsubscribe from this group and stop receiving emails
> > from it, send an email to
>
pidp-11+u...@googlegroups.com <mailto:
pidp-11%2Bu...@googlegroups.com>.
> > To view this discussion visit https://
>
groups.google.com/d/ <
https://groups.google.com/d/>
> > msgid/pidp-11/64a2affc-2bdc-48da-9253-
> > d7a7aef4792d%
40softjar.se <
http://40softjar.se>
> <
https://groups.google.com/d/ <
https://groups.google.com/d/>
> > msgid/pidp-11/64a2affc-2bdc-48da-9253-
> > d7a7aef4792d%
40softjar.se <
http://40softjar.se>>.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "[PiDP-11]" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to
pidp-11+u...@googlegroups.com
> <mailto:
pidp-11%2Bunsu...@googlegroups.com>
> > <mailto:
pidp-11+u...@googlegroups.com
> <mailto:
pidp-11%2Bunsu...@googlegroups.com>>.
> <
https://groups.google.com/d/msgid/>
> > pidp-11/0a64edfb-8695-4dc0-8d81-620a34f4cd73n%
40googlegroups.com
> <
http://40googlegroups.com>
> > <
https://groups.google.com/d/msgid/ <
https://groups.google.com/d/
> msgid/>
> > pidp-11/0a64edfb-8695-4dc0-8d81-620a34f4cd73n%
40googlegroups.com
> <
http://40googlegroups.com>?
> > utm_medium=email&utm_source=footer>.
>
> --
> Johnny Billquist || "I'm on a bus
> || on a psychedelic trip
> email:
b...@softjar.se <mailto:
b...@softjar.se> ||
> Reading murder books
> pdp is alive! || tryin' to stay hip" - B. Idol
>
> --
> You received this message because you are subscribed to the Google
> Groups "[PiDP-11]" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
pidp-11+u...@googlegroups.com
> <mailto:
pidp-11%2Bunsu...@googlegroups.com>.
> pidp-11/8b8777cd-534f-41bb-88d0-94c29a0973eb%
40softjar.se <https://
>
groups.google.com/d/msgid/
> pidp-11/8b8777cd-534f-41bb-88d0-94c29a0973eb%
40softjar.se>.