suspend_32.h 596 B

12345678910111213141516171819202122232425262728
  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. /* image of the saved processor state */
  11. struct saved_context {
  12. u16 es, fs, gs, ss;
  13. unsigned long cr0, cr2, cr3, cr4;
  14. u64 misc_enable;
  15. bool misc_enable_saved;
  16. struct desc_ptr gdt;
  17. struct desc_ptr idt;
  18. u16 ldt;
  19. u16 tss;
  20. unsigned long tr;
  21. unsigned long safety;
  22. unsigned long return_address;
  23. } __attribute__((packed));
  24. #endif /* _ASM_X86_SUSPEND_32_H */