/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright 2001-2003 Pavel Machek <[email protected]> * Based on code * Copyright 2001 Patrick Mochel <[email protected]> */ #ifndef _ASM_X86_SUSPEND_64_H #define _ASM_X86_SUSPEND_64_H #include <asm/desc.h> #include <asm/fpu/api.h> /* * Image of the saved processor state, used by the low level ACPI suspend to * RAM code and by the low level hibernation code. * * If you modify it, check how it is used in arch/x86/kernel/acpi/wakeup_64.S * and make sure that __save/__restore_processor_state(), defined in * arch/x86/power/cpu.c, still work as required. * * Because the structure is packed, make sure to avoid unaligned members. For * optimisation purposes but also because tools like kmemleak only search for * pointers that are aligned. */ struct saved_context { … } __attribute__((packed)); #define loaddebug(thread,register) … /* routines for saving/restoring kernel state */ extern char core_restore_code[]; extern char restore_registers[]; #endif /* _ASM_X86_SUSPEND_64_H */