HelenOS sources
#ifndef KERN_ARCH_ISTATE_STRUCT_H_
#define KERN_ARCH_ISTATE_STRUCT_H_
#define ISTATE_OFFSET_A0 0x00
#define ISTATE_OFFSET_A1 0x04
#define ISTATE_OFFSET_A2 0x08
#define ISTATE_OFFSET_A3 0x0c
#define ISTATE_OFFSET_T0 0x10
#define ISTATE_OFFSET_T1 0x14
#define ISTATE_OFFSET_V0 0x18
#define ISTATE_OFFSET_V1 0x1c
#define ISTATE_OFFSET_AT 0x20
#define ISTATE_OFFSET_T2 0x24
#define ISTATE_OFFSET_T3 0x28
#define ISTATE_OFFSET_T4 0x2c
#define ISTATE_OFFSET_T5 0x30
#define ISTATE_OFFSET_T6 0x34
#define ISTATE_OFFSET_T7 0x38
#define ISTATE_OFFSET_S0 0x3c
#define ISTATE_OFFSET_S1 0x40
#define ISTATE_OFFSET_S2 0x44
#define ISTATE_OFFSET_S3 0x48
#define ISTATE_OFFSET_S4 0x4c
#define ISTATE_OFFSET_S5 0x50
#define ISTATE_OFFSET_S6 0x54
#define ISTATE_OFFSET_S7 0x58
#define ISTATE_OFFSET_T8 0x5c
#define ISTATE_OFFSET_T9 0x60
#define ISTATE_OFFSET_KT0 0x64
#define ISTATE_OFFSET_KT1 0x68
#define ISTATE_OFFSET_GP 0x6c
#define ISTATE_OFFSET_SP 0x70
#define ISTATE_OFFSET_S8 0x74
#define ISTATE_OFFSET_RA 0x78
#define ISTATE_OFFSET_LO 0x7c
#define ISTATE_OFFSET_HI 0x80
#define ISTATE_OFFSET_STATUS 0x84
#define ISTATE_OFFSET_EPC 0x88
#define ISTATE_OFFSET_ALIGNMENT 0x8c
#define ISTATE_SIZE 0x90
#ifndef __ASSEMBLER__
#include <stdint.h>
#ifdef KERNEL
#include <typedefs.h>
#else
#include <stddef.h>
#endif
typedef struct istate {
uint32_t a0;
uint32_t a1;
uint32_t a2;
uint32_t a3;
uint32_t t0;
uint32_t t1;
uint32_t v0;
uint32_t v1;
uint32_t at;
uint32_t t2;
uint32_t t3;
uint32_t t4;
uint32_t t5;
uint32_t t6;
uint32_t t7;
uint32_t s0;
uint32_t s1;
uint32_t s2;
uint32_t s3;
uint32_t s4;
uint32_t s5;
uint32_t s6;
uint32_t s7;
uint32_t t8;
uint32_t t9;
uint32_t kt0;
uint32_t kt1;
uint32_t gp;
uint32_t sp;
uint32_t s8;
uint32_t ra;
uint32_t lo;
uint32_t hi;
uint32_t status;
uint32_t epc;
uint32_t alignment;
} istate_t;
#endif
#endif
HelenOS homepage, sources at GitHub