suspend_32.h 613 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright 2001-2002 Pavel Machek <pavel@suse.cz>
  3. * Based on code
  4. * Copyright 2001 Patrick Mochel <mochel@osdl.org>
  5. */
  6. #ifndef _ASM_X86_SUSPEND_32_H
  7. #define _ASM_X86_SUSPEND_32_H
  8. #include <asm/desc.h>
  9. #include <asm/i387.h>
  10. static inline int arch_prepare_suspend(void) { return 0; }
  11. /* image of the saved processor state */
  12. struct saved_context {
  13. u16 es, fs, gs, ss;
  14. unsigned long cr0, cr2, cr3, cr4;
  15. struct desc_ptr gdt;
  16. struct desc_ptr idt;
  17. u16 ldt;
  18. u16 tss;
  19. unsigned long tr;
  20. unsigned long safety;
  21. unsigned long return_address;
  22. } __attribute__((packed));
  23. #endif /* _ASM_X86_SUSPEND_32_H */