Changes in kernel/arch/ia32/include/context.h [dc0b964:7397c73] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/context.h
rdc0b964 r7397c73 27 27 */ 28 28 29 /** @addtogroup ia32 29 /** @addtogroup ia32 30 30 * @{ 31 31 */ … … 37 37 38 38 #ifdef KERNEL 39 #include <arch/types.h> 39 40 40 #include <typedefs.h> 41 42 #define STACK_ITEM_SIZE 4 41 #define STACK_ITEM_SIZE 4 43 42 44 43 /* … … 48 47 * One item is put onto stack to support get_stack_base(). 49 48 */ 50 #define SP_DELTA (8 + STACK_ITEM_SIZE) 51 52 #define context_set(c, _pc, stack, size) \ 53 do { \ 54 (c)->pc = (uintptr_t) (_pc); \ 55 (c)->sp = ((uintptr_t) (stack)) + (size) - SP_DELTA; \ 56 (c)->ebp = 0; \ 57 } while (0) 49 #define SP_DELTA (8 + STACK_ITEM_SIZE) 58 50 59 51 #endif /* KERNEL */
Note:
See TracChangeset
for help on using the changeset viewer.