blob: d93e48010b619e52006b13c068f7ffc82c5a96de [file] [log] [blame]
H. Peter Anvinf7f4a5f2007-07-11 12:18:38 -07001/*
2 * code16gcc.h
3 *
4 * This file is -include'd when compiling 16-bit C code.
Randy Dunlap8218d022007-07-26 10:10:35 -07005 * Note: this asm() needs to be emitted before gcc emits any code.
H. Peter Anvinf7f4a5f2007-07-11 12:18:38 -07006 * Depending on gcc version, this requires -fno-unit-at-a-time or
7 * -fno-toplevel-reorder.
8 *
9 * Hopefully gcc will eventually have a real -m16 option so we can
10 * drop this hack long term.
11 */
12
13#ifndef __ASSEMBLY__
14asm(".code16gcc");
15#endif