2007-07-11 21:18:38 +02:00
|
|
|
/*
|
|
|
|
* code16gcc.h
|
|
|
|
*
|
|
|
|
* This file is -include'd when compiling 16-bit C code.
|
2007-07-26 19:10:35 +02:00
|
|
|
* Note: this asm() needs to be emitted before gcc emits any code.
|
2007-07-11 21:18:38 +02:00
|
|
|
* Depending on gcc version, this requires -fno-unit-at-a-time or
|
|
|
|
* -fno-toplevel-reorder.
|
|
|
|
*
|
|
|
|
* Hopefully gcc will eventually have a real -m16 option so we can
|
|
|
|
* drop this hack long term.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
asm(".code16gcc");
|
|
|
|
#endif
|