]> xenbits.xensource.com Git - seabios.git/commit
Run all hardware irq handlers on the extra stack.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 28 May 2012 18:25:15 +0000 (14:25 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 31 May 2012 01:04:52 +0000 (21:04 -0400)
commitecdc655a867480b938652d52a0880853595e2976
treebb05ef9488ce19343b805ef246ca95636a6f5fb2
parentbeeabd63df5ad76c74360626549b0be2f6bbad91
Run all hardware irq handlers on the extra stack.

Jump into the extra stack for all hardware irq handlers.  This reduces
the overall stack requirements of SeaBIOS.

Replace all users of call16_simpint with call16_int.  Only the
hardware irq handlers used the old call, and they need to use the new
call to ensure the extra stack is properly re-entrant.

Also, pass in a 'struct bregs' to the hardware irq handlers now.  It
was not done previously to save stack space.  Now that the extra stack
is used, that is no longer an issue.

Note that should an old OS invoke a hardware irq in 16bit protected
mode, then this patch could break that OS.  However, the chances of
this causing a regression seem small as several existing hardware irq
handlers already do not work in 16bit protected mode.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
13 files changed:
src/asm-offsets.c
src/clock.c
src/disk.c
src/floppy.c
src/kbd.c
src/misc.c
src/mouse.c
src/output.c
src/ps2port.c
src/romlayout.S
src/stacks.c
src/util.h
tools/checkstack.py