aboutsummaryrefslogtreecommitdiffstats
path: root/src/bregs.h
Commit message (Collapse)AuthorAgeFilesLines
* Minor - fix some typos in comments.Kevin O'Connor2014-04-051-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Move definition of struct segoff_s from farptr.h to types.h.Kevin O'Connor2013-09-181-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>
* Split x86 specific functions out of util.c/h to new files x86.c/h.Kevin O'Connor2013-09-181-19/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Detect CPUID instruction before using it.Kevin O'Connor2012-02-011-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>
* Fix struct bregs - it shouldn't have multiple members with the same name.Kevin O'Connor2011-05-071-3/+3
| | | | This fixes a compile error on gcc 4.6.
* Introduce standard warnings for allocation failures and timeouts.Kevin O'Connor2010-02-141-23/+0
| | | | | There is no need for custom warnings for many common failures. Introduce a common warning which is consistent and more visible.
* Distinguish between debug reports for unimplemented vs invalid calls.Kevin O'Connor2009-12-131-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.
* Replace common segment/offset pairs with struct segoff_s.Kevin O'Connor2009-09-091-2/+3
| | | | Introduce 'struct segoff_s' to more places.
* Support %ebp register in 'struct bregs'.Kevin O'Connor2009-05-161-0/+1
| | | | | | Save/restore %ebp on irq entry. Support saving and restoring %ebp on call16. Enable display of %ebp in register dumps.
* Change license from GPLv3 to LGPLv3.Kevin O'Connor2009-01-151-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).
* Improve set_code_fail/floppy_ret/disk_ret code generation.Kevin O'Connor2009-01-021-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.
* Define bit definitions for cr0 register.Kevin O'Connor2008-11-161-5/+15
| | | | Define and consistently use names for the bits in the cr0 register.
* Misc fixes and updates.Kevin O'Connor2008-07-191-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.
* Improve debugging output.Kevin O'Connor2008-07-071-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.
* Extract 'struct bregs' out of biosvar.h; clean up header includes.Kevin O'Connor2008-07-041-0/+90