Changeset 414f59c in mainline for arch/sparc64/include/context.h


Ignore:
Timestamp:
2005-12-01T20:27:22Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8ac5fe7
Parents:
22e10ab
Message:

sparc64 work.
The context_save/context_restore needed two other improvements.
First, storing of %fp because of window_fills.
Second, flushing all active windows before CONTEXT_LOAD to make CWP - 1 the overlap window.

File:
1 edited

Legend:

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

    r22e10ab r414f59c  
    4848#endif
    4949
    50 #define context_set(c, _pc, stack, size)                                                                \
    51         (c)->pc = ((__address) _pc) - 8;                                                                \
    52         (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA)
     50#define context_set(c, _pc, stack, size)                                                                \
     51        (c)->pc = ((__address) _pc) - 8;                                                                \
     52        (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA);       \
     53        (c)->fp = -STACK_BIAS
     54       
    5355
    5456/*
     
    6567        __address sp;           /* %o6 */
    6668        __address pc;           /* %o7 */
     69        __address fp;
    6770        ipl_t ipl;
    6871};
Note: See TracChangeset for help on using the changeset viewer.