aboutsummaryrefslogtreecommitdiffstats
path: root/src/pic.c
Commit message (Collapse)AuthorAgeFilesLines
* Add int1589 support.Kevin O'Connor2010-01-041-4/+10
| | | | | Int1589 switches into protected mode for the caller. Also, consistently use BUILD_BIOS_ADDR/SIZE in GDT macros.
* Be sure to add "void" to all function prototypes that take no args.Kevin O'Connor2010-01-031-1/+1
| | | | Omitting "void" leads to a K&R style declaration which was not intended.
* Don't mask irqs in default hardware irq handler.Kevin O'Connor2009-02-051-9/+2
| | | | | | The latest PCI spec requires option roms to call default bios handler. So, the bios must not mask irqs. Also, make the default hw irq handlers less verbose.
* 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).
* Rework default hwirq handler so there is no confusion on which pic to eoi.Kevin O'Connor2008-12-201-19/+16
| | | | | | Introduce two default handlers (hwpic1 and hwpic2) and register them accordingly. This ensures the proper pic always gets an eoi. Also, use DEBUG_ISR_hwpic1/2 to determine debugging level.
* Enable a default hw irq handler.Kevin O'Connor2008-11-261-1/+1
| | | | | | | | | | | Also, only route hw irqs to their handlers when they are enabled. (This ensures that if a subsystem is disabled that the default hwirq handler will be used.) Add helper macros to declare the extern asm handlers. Always enable the RTC hwirq at startup (as opposed to when it is first used). Fix bug in default handler - wrong bit was used for checking the cascaded irq.
* Misc fixes and updates.Kevin O'Connor2008-07-191-1/+1
| | | | | | | | 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.
* Extract 'struct bregs' out of biosvar.h; clean up header includes.Kevin O'Connor2008-07-041-1/+3
|
* Add code (currently disabled) to mask run away irqs.Kevin O'Connor2008-06-211-0/+54
Add handler that can react to any unknown hardware irq by masking that irq. This can be useful for finding/fixing run away irq issues. Don't currently register these hardware irq handlers Also, sort and improve default debug levels for bios handlers.