Serial ports for OS debugging

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
chase
Site Admin
Posts: 710
Joined: Wed Oct 20, 2004 10:46 pm
Libera.chat IRC: chase_osdev
Location: Texas
Discord: chase/matt.heimer
Contact:

Serial ports for OS debugging

Post by chase »

I recently came across a pdf that one of the developers of the KOS project wrote about testing and debugging their OS. The pdf can be found at http://kos.enix.org/~d2/snapshots/kos_c ... tingen.pdf. I've always used writes to 0xb8000 for debugging but that leads to a certain about of frustration when your code is triple faulting. In the pdf they talk about using the serial port for debugging. The best thing is that this seems to work well under virtual machines and real computers.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Post by earlz »

*gazes
wow I just found a nifty FREE serial port emulator!
it has a horrible front end(well there isn't one except for regedit)
http://com0com.sourceforge.net/
its may be a bit confusing for non-power-users to setup but it does its job well

to get it working in VPC you will have to follow their instructions on how to change the port names to COMx where x is an unused number
Post Reply