Loading...
1/*
2 * code16gcc.h
3 *
4 * This file is -include'd when compiling 16-bit C code.
5 * Note: this asm() needs to be emitted before gcc emits any code.
6 * 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
1/* SPDX-License-Identifier: GPL-2.0 */
2#
3# code16gcc.h
4#
5# This file is added to the assembler via -Wa when compiling 16-bit C code.
6# This is done this way instead via asm() to make sure gcc does not reorder
7# things around us.
8#
9# gcc 4.9+ has a real -m16 option so we can drop this hack long term.
10#
11
12 .code16gcc