freemint icon indicating copy to clipboard operation
freemint copied to clipboard

Serial device detection

Open th-otto opened this issue 6 years ago • 4 comments

Currently, additional serial devices like modem2, serial1 etc are only added according to machine cookie. Instead of using such an untrustable source, they should be auto-detected instead. It's really a shame that it is handled like this, EmuTOS already does a better job on this ;)

Also i sometimes wonder wether that code is needed in the kernel at all, there are separate drivers for most of them?

th-otto avatar Aug 23 '18 01:08 th-otto

It's a nice exercise but in practice, what would you gain? It's not like FreeMiNT is being ported every week to a new platform (unlike EmuTOS ;-)).

About the kernel presence: isn't that mostly because of FreeMiNT's debug ability to serial port?

mikrosk avatar Aug 23 '18 07:08 mikrosk

It's a nice exercise but in practice, what would you gain?

For example it would work in Hatari, where that chips are still not emulated ;) And it is IMHO real a regression, even TOS 2.x probes for this.

About the kernel presence: isn't that mostly because of FreeMiNT's debug ability to serial port?

Isn't the first port (AUX) always used for that? At least i think that would be sufficient for debugging purposes. For normal usage, i think the serial devices are rarely used at all. Especially since the slip driver does not work anymore.

th-otto avatar Aug 23 '18 07:08 th-otto

About the kernel presence: isn't that mostly because of FreeMiNT's debug ability to serial port?

I was thinking the same, some serial support is needed to output kernel debug messages through the serial port until the xdd serial modules are loaded. But I've always thought that the ROM TOS functions were used for that.

DavidGZ avatar Aug 23 '18 07:08 DavidGZ

But I've always thought that the ROM TOS functions were used for that.

Partly. But CD detection is done by direct access to the port, and brk handling also (just grep for ControlRegB)

th-otto avatar Aug 23 '18 07:08 th-otto