Find out why ubuntu compiles are failing. Find work around.
+Audit all sti/cli calls.
+
Code assumes ebda segment is static - it doesn't read 0x40e.
See if using an ld script for 16bit mode is a good idea.
Fix makefiles so that they rebuild the required files automatically.
-Make sure gdt/idt tables are properly aligned
-
Cleanup setting of ES on GET/SET_BDA
Make sure inline assembly isn't preventing inlining of calling