Changeset 15d0046 in mainline for kernel/arch/sparc64/src/context.S


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/context.S

    r8db09e4 r15d0046  
    2727#
    2828
    29 #include <arch/context_offset.h>
     29#include <arch/context_struct.h>
    3030#include <arch/arch.h>
    3131#include <arch/regdef.h>
     
    4747        flushw
    4848
    49         CONTEXT_SAVE_ARCH_CORE %o0
     49        stx %sp, [%o0 + CONTEXT_OFFSET_SP]
     50        stx %o7, [%o0 + CONTEXT_OFFSET_PC]
     51        stx %i0, [%o0 + CONTEXT_OFFSET_I0]
     52        stx %i1, [%o0 + CONTEXT_OFFSET_I1]
     53        stx %i2, [%o0 + CONTEXT_OFFSET_I2]
     54        stx %i3, [%o0 + CONTEXT_OFFSET_I3]
     55        stx %i4, [%o0 + CONTEXT_OFFSET_I4]
     56        stx %i5, [%o0 + CONTEXT_OFFSET_I5]
     57        stx %fp, [%o0 + CONTEXT_OFFSET_FP]
     58        stx %i7, [%o0 + CONTEXT_OFFSET_I7]
     59        stx %l0, [%o0 + CONTEXT_OFFSET_L0]
     60        stx %l1, [%o0 + CONTEXT_OFFSET_L1]
     61        stx %l2, [%o0 + CONTEXT_OFFSET_L2]
     62        stx %l3, [%o0 + CONTEXT_OFFSET_L3]
     63        stx %l4, [%o0 + CONTEXT_OFFSET_L4]
     64        stx %l5, [%o0 + CONTEXT_OFFSET_L5]
     65        stx %l6, [%o0 + CONTEXT_OFFSET_L6]
     66        stx %l7, [%o0 + CONTEXT_OFFSET_L7]
    5067        retl
    5168        mov 1, %o0              ! context_save_arch returns 1
     
    6986        wrpr %l0, %pstate
    7087
    71         CONTEXT_RESTORE_ARCH_CORE %o0
     88        ldx [%o0 + CONTEXT_OFFSET_SP], %sp
     89        ldx [%o0 + CONTEXT_OFFSET_PC], %o7
     90        ldx [%o0 + CONTEXT_OFFSET_I0], %i0
     91        ldx [%o0 + CONTEXT_OFFSET_I1], %i1
     92        ldx [%o0 + CONTEXT_OFFSET_I2], %i2
     93        ldx [%o0 + CONTEXT_OFFSET_I3], %i3
     94        ldx [%o0 + CONTEXT_OFFSET_I4], %i4
     95        ldx [%o0 + CONTEXT_OFFSET_I5], %i5
     96        ldx [%o0 + CONTEXT_OFFSET_FP], %fp
     97        ldx [%o0 + CONTEXT_OFFSET_I7], %i7
     98        ldx [%o0 + CONTEXT_OFFSET_L0], %l0
     99        ldx [%o0 + CONTEXT_OFFSET_L1], %l1
     100        ldx [%o0 + CONTEXT_OFFSET_L2], %l2
     101        ldx [%o0 + CONTEXT_OFFSET_L3], %l3
     102        ldx [%o0 + CONTEXT_OFFSET_L4], %l4
     103        ldx [%o0 + CONTEXT_OFFSET_L5], %l5
     104        ldx [%o0 + CONTEXT_OFFSET_L6], %l6
     105        ldx [%o0 + CONTEXT_OFFSET_L7], %l7
    72106        retl
    73107        xor %o0, %o0, %o0       ! context_restore_arch returns 0
Note: See TracChangeset for help on using the changeset viewer.