old-trainOS/include/cpustate.h
Felix Queissner ddbfb0e1aa some stuff.
2015-08-13 14:56:50 +02:00

32 lines
481 B
C

#pragma once
#include "inttypes.h"
#if defined(__cplusplus)
extern "C" {
#endif
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;
} CpuState;
#if defined(__cplusplus)
}
#endif