old-trainOS/include/cpustate.h

33 lines
481 B
C
Raw Permalink Normal View History

2015-08-09 00:42:56 +00:00
#pragma once
#include "inttypes.h"
2015-08-13 12:56:50 +00:00
#if defined(__cplusplus)
extern "C" {
#endif
2015-08-09 00:42:56 +00:00
typedef struct
{
// Saved by interrupt routine
uint32_t eax;
uint32_t ebx;
uint32_t ecx;
uint32_t edx;
uint32_t esi;
uint32_t edi;
uint32_t ebp;
uint32_t intr;
uint32_t error;
// Saved by CPU
uint32_t eip;
uint32_t cs;
uint32_t eflags;
uint32_t esp;
uint32_t ss;
2015-08-13 12:56:50 +00:00
} CpuState;
#if defined(__cplusplus)
}
#endif