Changeset f0f05ad in mainline


Ignore:
Timestamp:
2006-11-11T14:41:23Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
282f2c9c
Parents:
3869e9c5
Message:

sparc64 context does not have to include the CLEANWIN register.

Location:
kernel/arch/sparc64
Files:
3 edited

Legend:

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

    r3869e9c5 rf0f05ad  
    4949        (c)->pc = ((uintptr_t) _pc) - 8;                                                                \
    5050        (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA);    \
    51         (c)->fp = -STACK_BIAS;                                                                          \
    52         (c)->cleanwin = 0
     51        (c)->fp = -STACK_BIAS
    5352       
    5453
     
    7776        uint64_t l7;
    7877        ipl_t ipl;
    79         uint64_t cleanwin;
    8078};
    8179
  • kernel/arch/sparc64/include/context_offset.h

    r3869e9c5 rf0f05ad  
    4848#define OFFSET_L6       0x80
    4949#define OFFSET_L7       0x88
    50 #define OFFSET_CLEANWIN 0x98
    5150
    5251#endif
  • kernel/arch/sparc64/src/context.S

    r3869e9c5 rf0f05ad  
    6161        stx %l6, [\r + OFFSET_L6]
    6262        stx %l7, [\r + OFFSET_L7]
    63         rdpr %cleanwin, %g1
    64         stx %g1, [\r + OFFSET_CLEANWIN]
    6563.endm
    6664
     
    8482        ldx [\r + OFFSET_L6], %l6
    8583        ldx [\r + OFFSET_L7], %l7
    86         ldx [\r + OFFSET_CLEANWIN], %g1
    87         wrpr %g1, %g0, %cleanwin
    8884.endm
    8985
Note: See TracChangeset for help on using the changeset viewer.