Changeset 361635c in mainline for arch/ia64/include/context.h


Ignore:
Timestamp:
2005-08-25T20:58:07Z (21 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fde6429
Parents:
cfd6efd2
Message:

Preparations for weaker preemption model.
Make all kernel stacks (i.e. startup, scheduler and thread) be STACK_SIZE bytes long.
Reincarnate "the" structure. This time, it is planned to be located at the base of each and every kernel stack.
On IA-32 and MIPS, implement get_stack_base() functions. On the rest of supported platforms, define it to be dummy.

File:
1 edited

Legend:

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

    rcfd6efd2 r361635c  
    4242#endif
    4343
    44 #define context_set(c, _pc, stack, size)        \
    45         (c)->pc = (__address) _pc;              \
    46         (c)->bsp = (__address) stack;           \
     44#define context_set(c, _pc, stack, size)                        \
     45        (c)->pc = (__address) _pc;                              \
     46        (c)->bsp = ((__address) stack) + (sizeof(the_t));       \
    4747        (c)->sp = ((__address) stack) + (size) - SP_DELTA;
    4848
Note: See TracChangeset for help on using the changeset viewer.