Hello,
I'm a student and im asked to write a program that has to do rs232 communication with another computer.
In order to do so I have to program the UART registers manually. and not via a driver
The working environment is borland C running under dosbox.
This approach is used since dos running in real mode and not in protected mode.
The question is If I remove the serial_core driver will I be able to access the registers directly ?
Or that I still have to run the OS in real-mode(is it possible to run something like real-mode linux under some kind of virtual machine) ?
Thanks.
with the ioperm()
with the ioperm() systemcall, you can allow access to the uart from user space.
not so real
DOSBOX is an emulator. It only pretends to run in real mode. It calls upon the Linux kernel to perform all I/O.
Add this to your dosbox.conf file:
serial1=directserial realport:com1
and *do not* remove any serial drivers from the Linux kernel.