Add tool to check stack usage of 16bit code.
This tool analyzes the assembler and can approximate the stack usage
of the various entry points.
diff --git a/TODO b/TODO
index 71f7bb3..54751a4 100644
@@ -3,10 +3,9 @@
Review changes committed to coreboot, virtualbox, qemu, kvm, and bochs
-Alter ISRs so that they do not enable irqs. Only call out to other
-bios functions after minimizing stack usage.
-Try to write a script to analyze stack usage of 16bit code.
+Look into ways to reduce stack usage. Alter ISRs so that they do not
+enable irqs. Only call out to other bios functions after minimizing
Audit all sti/cli calls. Audit all call16 calls to make sure flags is
setup properly with respect to irqs.
@@ -14,8 +13,6 @@
Audit statements where a 32bit intermediary changes meaning of a 16bit
-Look into ways to reduce stack usage.
Code assumes ebda segment is static - it doesn't read 0x40e.
The __call16 code does a long jump to the interrupt trampolines - this