aboutsummaryrefslogtreecommitdiff
path: root/src/bregs.h
AgeCommit message (Collapse)AuthorFilesLines
2014-04-05Minor - fix some typos in comments.Kevin O'Connor1-1/+1
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2013-09-18Move definition of struct segoff_s from farptr.h to types.h.Kevin O'Connor1-1/+0
The segoff_s definition is used by a number of header files that would not otherwise need farptr.h, so move it to a more central location. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2013-09-18Split x86 specific functions out of util.c/h to new files x86.c/h.Kevin O'Connor1-19/+3
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2012-02-01Detect CPUID instruction before using it.Kevin O'Connor1-0/+1
Enable SeaBIOS to work on 386/486 machines that don't have CPUID instruction. Based on patch by Rudolf Marek. Signed-off-by: Rudolf Marek <r.marek@assembler.cz> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-05-07Fix struct bregs - it shouldn't have multiple members with the same name.Kevin O'Connor1-3/+3
This fixes a compile error on gcc 4.6.
2010-02-14Introduce standard warnings for allocation failures and timeouts.Kevin O'Connor1-23/+0
There is no need for custom warnings for many common failures. Introduce a common warning which is consistent and more visible.
2009-12-13Distinguish between debug reports for unimplemented vs invalid calls.Kevin O'Connor1-8/+22
Don't use "fail" in the debug output - as this confuses users. When reporting on an invalid parameter - use the word "invalid". When reporting on an unimplemented call - state it is unimplemented. Add separate debug levels for unimplemented vs invalid calls. Also, increase the debug level of several entry points.
2009-09-09Replace common segment/offset pairs with struct segoff_s.Kevin O'Connor1-2/+3
Introduce 'struct segoff_s' to more places.
2009-05-16Support %ebp register in 'struct bregs'.Kevin O'Connor1-0/+1
Save/restore %ebp on irq entry. Support saving and restoring %ebp on call16. Enable display of %ebp in register dumps.
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-7/+8
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-11-16Define bit definitions for cr0 register.Kevin O'Connor1-5/+15
Define and consistently use names for the bits in the cr0 register.
2008-07-19Misc fixes and updates.Kevin O'Connor1-0/+2
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-5/+5
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-0/+90