aboutsummaryrefslogtreecommitdiff
path: root/arch/i386/boot/code16gcc.h
blob: 3bd848093b9d72b2cc4459c50017f24dd02e06d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * code16gcc.h
 *
 * This file is -include'd when compiling 16-bit C code.
 * Note: this asm() needs to be emitted before gcc omits any code.
 * 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