hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/suspend_32.h
....@@ -21,7 +21,6 @@
2121 #endif
2222 unsigned long cr0, cr2, cr3, cr4;
2323 u64 misc_enable;
24
- bool misc_enable_saved;
2524 struct saved_msrs saved_msrs;
2625 struct desc_ptr gdt_desc;
2726 struct desc_ptr idt;
....@@ -30,6 +29,11 @@
3029 unsigned long tr;
3130 unsigned long safety;
3231 unsigned long return_address;
32
+ bool misc_enable_saved;
3333 } __attribute__((packed));
3434
35
+/* routines for saving/restoring kernel state */
36
+extern char core_restore_code[];
37
+extern char restore_registers[];
38
+
3539 #endif /* _ASM_X86_SUSPEND_32_H */