GCC and 16-bit mode for x86 processor when writing boot code.

Jan Beulich jbeulich@novell.com
Tue Feb 27 08:15:00 GMT 2007


>>> "Smith, Stephen (SWCOE)" <Stephen.Smith@honeywell.com> 26.02.07 23:27 >>>
>I am writing some boot code for an x86 processor.  I know that binutils
>assumes 32-bit mode and doesn't have anything analogous to code16. 

It does: .code16

>What is the normal way of handling the 16bit mode until you've run
>enough code to switch to 32-bit flat mode?  Any document I can look at?

See Linux, Xen and perhaps many other sources for examples.

Jan



More information about the Binutils mailing list