/* * 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 { struct pt_regs regs;
/* * User CS and SS are saved in current_pt_regs(). The rest of the * segment selectors need to be saved and restored here.
*/
u16 ds, es, fs, gs;
/* * Usermode FSBASE and GSBASE may not match the fs and gs selectors, * so we save them separately. We save the kernelmode GSBASE to * restore percpu access after resume.
*/ unsignedlong kernelmode_gs_base, usermode_gs_base, fs_base;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.