Changeset 04803bf in mainline for kernel/arch/ia32/include/context.h


Ignore:
Timestamp:
2011-03-21T22:00:17Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
143932e3
Parents:
b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes (needs fixes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/context.h

    rb50b5af2 r04803bf  
    2727 */
    2828
    29 /** @addtogroup ia32   
     29/** @addtogroup ia32
    3030 * @{
    3131 */
     
    3737
    3838#ifdef KERNEL
    39 #include <arch/types.h>
    4039
    41 #define STACK_ITEM_SIZE 4
     40#include <typedefs.h>
     41
     42#define STACK_ITEM_SIZE  4
    4243
    4344/*
     
    4748 * One item is put onto stack to support get_stack_base().
    4849 */
    49 #define SP_DELTA        (8 + STACK_ITEM_SIZE)
     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)
    5058
    5159#endif /* KERNEL */
Note: See TracChangeset for help on using the changeset viewer.