added int_stack_t type in hos_types.h for interrupt stack access
git-svn-id: svn://anubis/hos/trunk@65 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
parent
1105e6e203
commit
d352afd079
@ -43,7 +43,7 @@ isr_common:
|
|||||||
pop es
|
pop es
|
||||||
pop ds
|
pop ds
|
||||||
popa ; edi, esi, ebp, <null>, ebx, edx, ecx, eax
|
popa ; edi, esi, ebp, <null>, ebx, edx, ecx, eax
|
||||||
lea esp, [esp+4]
|
lea esp, [esp+4] ; bypass error code
|
||||||
|
|
||||||
iret
|
iret
|
||||||
|
|
||||||
|
@ -15,6 +15,31 @@ typedef signed int s32_t;
|
|||||||
typedef unsigned long long u64_t;
|
typedef unsigned long long u64_t;
|
||||||
typedef signed long long s64_t;
|
typedef signed long long s64_t;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
u32_t gs;
|
||||||
|
u32_t fs;
|
||||||
|
u32_t es;
|
||||||
|
u32_t ds;
|
||||||
|
|
||||||
|
u32_t edi;
|
||||||
|
u32_t esi;
|
||||||
|
u32_t ebp;
|
||||||
|
u32_t esp_junk; /* the esp value saved by 'pusha' */
|
||||||
|
u32_t ebx;
|
||||||
|
u32_t edx;
|
||||||
|
u32_t ecx;
|
||||||
|
u32_t eax;
|
||||||
|
|
||||||
|
u32_t error; /* valid on exceptions 8, 10-14 */
|
||||||
|
|
||||||
|
u32_t eip;
|
||||||
|
u32_t cs;
|
||||||
|
u32_t eflags;
|
||||||
|
u32_t esp; /* present if privilege transition */
|
||||||
|
u32_t ss;
|
||||||
|
} int_stack_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user