Re: Linux Post codes during runtime, possibly OT

Richard B. Johnson
2001-01-26T13:58:39Z

On Thu, 25 Jan 2001, H. Peter Anvin wrote:

> "Richard B. Johnson" wrote:
> >
> > On Thu, 25 Jan 2001, H. Peter Anvin wrote:
> >
> > > Matthew Dharm wrote:
> > > >
> > > > It occurs to me that it might be a good idea to pick a different port for
> > > > these things. I know a lot of people who want to use port 80h for
> > > > debugging data, especially in embedded x86 systems.
> > > >
> > >
> > > Find a safe port, make sure it is tested the hell out of, and we'll
> > > consider it.
> > >
> > > -hpa
> > >
> >
> > You could use the DMA scratch register at 0x19. I'm sure Linux doesn't
> > "save" stuff there when setting up the DMA controller.
> >
>
> Does that break the BIOS in any way, shape, or form? Again, someone gets
> to make a patch and then test the hell out of it... and find the random
> Olivetti which hooks the screen up to the A20M# signal and other weird
> crap.
>
> -hpa
>

I will change the port on my machines and run them for a week. I
don't have any DEC Rainbows or other such. Yes, I know Linux will
not run on a '286.

Since 0x19 is a hardware register in a DMA controller, specifically
called a "scratch" register, it is unlikely to hurt anything. Note
that the BIOS saves stuff in CMOS. It never expects hardware registers
to survive a "warm boot". It even checks in CMOS to see if it should
preserve RAM.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.0 on an i686 machine (799.53 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.