genode/repos/base/include/x86_32/cpu/cpu_state.h

42 lines
891 B
C
Raw Normal View History

2011-12-22 15:19:25 +00:00
/*
* \brief CPU state
* \author Christian Prochaska
* \date 2011-04-15
*
* This file contains the x86_32-specific part of the CPU state.
*/
/*
2013-01-10 20:44:47 +00:00
* Copyright (C) 2011-2013 Genode Labs GmbH
2011-12-22 15:19:25 +00:00
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef _INCLUDE__X86_32__CPU__CPU_STATE_H_
#define _INCLUDE__X86_32__CPU__CPU_STATE_H_
#include <base/stdint.h>
namespace Genode { struct Cpu_state; }
2011-12-22 15:19:25 +00:00
struct Genode::Cpu_state
{
addr_t ip = 0; /* instruction pointer */
addr_t sp = 0; /* stack pointer */
addr_t edi = 0;
addr_t esi = 0;
addr_t ebp = 0;
addr_t ebx = 0;
addr_t edx = 0;
addr_t ecx = 0;
addr_t eax = 0;
addr_t gs = 0;
addr_t fs = 0;
addr_t eflags = 0;
addr_t trapno = 0;
};
2011-12-22 15:19:25 +00:00
#endif /* _INCLUDE__X86_32__CPU__CPU_STATE_H_ */