akaros/kern/arch/x86/fixup.h
<<
>>
Prefs
   1/* Copyright (C) 1991-2016, the Linux Kernel authors
   2 *
   3 * This source code is licensed under the GNU General Public License
   4 * Version 2. See the file COPYING for more details.
   5 *
   6 * Part of this code originates from Linux kernel files:
   7 *
   8 * linux/arch/x86/include/asm/asm.h
   9 *
  10 * These files are missing copyright headers, but are supposed to be
  11 * governed by the overall Linux copyright.
  12 */
  13
  14#pragma once
  15
  16#define _ASM_EXTABLE(from, to)             \
  17    " .pushsection \"__ex_table\",\"a\"\n" \
  18    " .balign 16\n"                        \
  19    " .quad (" #from ") - .\n"             \
  20    " .quad (" #to ") - .\n"               \
  21    " .popsection\n"
  22
  23#define ASM_STAC
  24#define ASM_CLAC
  25