aboutsummaryrefslogtreecommitdiff
path: root/src/output.c
AgeCommit message (Collapse)AuthorFilesLines
2009-05-27In register dump, show %esp - not address of regs.Kevin O'Connor1-2/+2
The address of the callers stack can be inferred from the address of 'regs' - do the math in the dump function.
2009-05-16Support %ebp register in 'struct bregs'.Kevin O'Connor1-4/+5
Save/restore %ebp on irq entry. Support saving and restoring %ebp on call16. Enable display of %ebp in register dumps.
2009-05-15Flush debugging serial output after every line.Kevin O'Connor1-6/+22
Wait for the serial port to be ready after every debug function. This fixes an issue with serial port detection.
2009-05-12Improve serial port detection.Kevin O'Connor1-7/+7
Add port names for serial port registers. When detecting serial port, ignore top two bits of IIR register.
2009-05-05Add support for field width argument to %x (eg, %08x).Kevin O'Connor1-15/+38
Patch from Stefan Reinauer; modified by Kevin O'Connor.
2009-02-17Add hexdump() output helper function.Kevin O'Connor1-0/+20
2009-02-08Minor - rename BX_PANIC to panic.Kevin O'Connor1-1/+1
2009-01-15Change license from GPLv3 to LGPLv3.Kevin O'Connor1-1/+1
Change license of contributions from Kevin O'Connor from GPLv3 to LGPLv3 (or later). Since the work as a whole is based on Kevin's contributions and the "bochs bios" which has a license of LGPL (v2 or later), this effectively makes the work as a whole available under LGPLv3 (or later).
2009-01-02Improve set_code_fail/floppy_ret/disk_ret code generation.Kevin O'Connor1-4/+13
Encode lineno and return code into one u32 parameter. This reduces the number of functions arguments to 3 - which gcc does a better job of scheduling. Also, consistently place *regs parameter in the first arg.
2008-12-13Implement GET/SET_GLOBAL(...) instead of using GET/SET_VAR(CS, ...)Kevin O'Connor1-5/+6
2008-08-29Fix bug in dprintf - isdigit had sign overflow problem.Kevin O'Connor1-1/+1
2008-07-21Shrink size of bx_panic when CONFIG_DEBUG_LEVEL is off.Kevin O'Connor1-4/+6
When CONFIG_DEBUG_LEVEL the debug message wont be shown, so don't bother calling bvprintf.
2008-07-19Misc fixes and updates.Kevin O'Connor1-7/+12
Minor code cleanups. Fix parenthesis imbalance in keyboard led test. The printf() call is only used in 32bit mode - make this explicit to the compiler - it improves the code generation. Clear the screen after initializing the vga option rom.
2008-07-07Improve debugging output.Kevin O'Connor1-10/+21
Return the line number of the debug_fail() / debug_stub() call site on each call. Show the return status on set_code_fail() calls. Also, the floppy_1305() code should not clear AL.
2008-07-04Extract 'struct bregs' out of biosvar.h; clean up header includes.Kevin O'Connor1-1/+2
2008-06-21Convert '\n' to '\r\n' on debug serial output.Kevin O'Connor1-1/+4
2008-06-21Init serial port before using it for debug - also reinit after option rom.Kevin O'Connor1-0/+19
Apparently, some VGA option roms will enable serial irqs - this could cause problems with spurious irqs from debug messages. Also, improve debugging of option roms that fail the checksum check.
2008-06-07Serial debugging code must not access BDA.Kevin O'Connor1-3/+17
Regular serial writing code uses the system timer to timeout failed writes - however, serial debugging can't rely on access to the BDA segment or the hardware timer. Therefore, implement a simple debug only serial writing function and separate it from the regular serial output code. Also include change to dump_regs - don't call __dprintf if debugging not on.
2008-05-24Improve control of debug messages.Kevin O'Connor1-10/+12
Rename BX_INFO() to dprintf() and add a "severity level" parameter. Add CONFIG_DEBUG_LEVEL compile option to control debug verbosity. Add more debug info to init steps of post.c.
2008-05-07Add support for sending debug messages to a serial port.Kevin O'Connor1-1/+8
Enable by turning on CONFIG_DEBUG_SERIAL option.
2008-05-06Minor cleanups.Kevin O'Connor1-4/+1
Several minor comment improvements. Rearrange some definitions to make them more clear.
2008-04-05Forward port new boot menu features from bochs bios.Kevin O'Connor1-0/+8
Support boot menu during last stage of post. Improve description of option roms. Support printf of "%.s" to force printing strings on stack. Enhance memcpy so that it also works in real-mode.
2008-04-05Make several functions non-inline.Kevin O'Connor1-8/+37
2008-03-30Minor cleanup of GET_VAR usage in output.c.Kevin O'Connor1-4/+4
Don't cast to a u8 - instead, cast the pointer to a u8*.
2008-03-29Minor debugging improvements.Kevin O'Connor1-3/+3
Support '%p' format in bprintf. Display pointer of register in debug output (useful for calculating start stack).
2008-03-15Minor cleanups.Kevin O'Connor1-1/+1
Remove some redundant code from Makefile. Improve a couple of comments.
2008-03-11Don't pass in ebp/esp to irq handlers.Kevin O'Connor1-2/+2
The C code won't clobber these registers, so backing them up isn't needed. Removing them saves a few bytes on the stack.
2008-03-11Reduce stack usage for ISRs; minor fixes.Kevin O'Connor1-1/+1
Don't back up all registers on isr handlers - they don't read/modify them. This saves stack space. extended_bios_data_area_s must be packed to match ebda spec. Enable irqs on int 08 - follows old bochs bios code. Fix bug in int 76 -- should clear disk_interrupt_flag not floppy_harddisk_info. Make sure we alert in disk_ret on failure case. int 18/19 entry points need to setup cld/%ds too. asm in handle_1587 clobbers flags - note that in clobber list.
2008-03-09Replace debug_exit calls with debug info while setting a failure.Kevin O'Connor1-4/+2
Calling debug_exit at the end of a call doesn't help much - several of the registers are already clobbered at this point. It also increases stack usage because it prevents call tail optimization in many places.
2008-03-08Minor hack - allow formats with 'l' to be shown in printf.Kevin O'Connor1-0/+5
2008-03-04Ignore precision specifiers in printf code.Kevin O'Connor1-1/+12
This at least allows the variable to be printed.
2008-03-02Bug fixes; get mouse working.Kevin O'Connor1-0/+7
Fix bug in post causing PIC2 to not be initialized properly. Only run ata_detect if CONFIG_ATA enabled. Improve debugging aids - introduce debug_isr(); move DEBUGF to each file. Enable mouse by default. Fix bug in floppy causing extra test of PORT_FD_STATUS on recalibrate. Always disable/enable kbd in handle_09 event.
2008-03-01Minor update to bprintf.Kevin O'Connor1-1/+4
Support '%c'. Fix bug causing junk to be printed on unrecognized % code.
2008-02-29Enable extra debugging.Kevin O'Connor1-0/+7
Route BX_INFO to debug port. Add a new debug_stub() function.
2008-02-25Version 0.1.2rel-0.1.2Kevin O'Connor1-9/+29
2008-02-25Version 0.1.1rel-0.1.1Kevin O'Connor1-4/+3
2008-02-25Initial checkin.rel-0.1.0Kevin O'Connor1-0/+161