Changeset d5d2a3f in mainline for arch/ia64/include/context.h


Ignore:
Timestamp:
2005-05-25T12:29:18Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2998046
Parents:
c23fd6b1
Message:

Add context_set() macro to support extended behaviour for architectures with more than one stack (e.g. IA-64).
Now there is one generic context_set() defined in include/context.h and one IA-64 specific defined in arch/ia64/include/context.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/include/context.h

    rc23fd6b1 rd5d2a3f  
    3838#define SP_DELTA        0
    3939
     40#ifdef context_set
     41#undef context_set
     42#endif
     43
     44#define context_set(c, _pc, stack, size)        \
     45        (c)->pc = (__address) _pc;              \
     46        (c)->bsp = (__address) stack;           \
     47        (c)->sp = ((__address) stack) + (size) - SP_DELTA;
     48
    4049struct context {
    4150
     
    4756        __u64 ar_unat_callee;
    4857        __u64 ar_rsc;
    49         __u64 ar_bsp;
     58        __u64 bsp;      /* ar_bsp */
    5059        __u64 ar_rnat;
    5160        __u64 ar_lc;
Note: See TracChangeset for help on using the changeset viewer.