Subversion Repositories HelenOS-historic

Rev

Rev 82 | Rev 312 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 82 Rev 180
Line 29... Line 29...
29
#ifndef __ia32_CONTEXT_H__
29
#ifndef __ia32_CONTEXT_H__
30
#define __ia32_CONTEXT_H__
30
#define __ia32_CONTEXT_H__
31
 
31
 
32
#include <arch/types.h>
32
#include <arch/types.h>
33
 
33
 
-
 
34
#define STACK_ITEM_SIZE 4
-
 
35
 
34
/*
36
/*
35
 * Both context_save() and context_restore() eat two doublewords from the stack.
37
 * Both context_save() and context_restore() eat two doublewords from the stack.
36
 * First for pop of the saved register, second during ret instruction.
38
 * First for pop of the saved register, second during ret instruction.
-
 
39
 *
-
 
40
 * One item is put onto stack to support get_stack_base().
37
 */
41
 */
38
#define SP_DELTA    8
42
#define SP_DELTA    (8+STACK_ITEM_SIZE)
39
 
43
 
40
struct context {
44
struct context {
41
    __u32 sp;
45
    __u32 sp;
42
    __u32 pc;
46
    __u32 pc;
43
    __u32 ebx;
47
    __u32 ebx;