Changes in kernel/arch/sparc64/src/context.S [9d58539:b482287] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/context.S
r9d58539 rb482287 27 27 # 28 28 29 #include <arch/context_ offset.h>29 #include <arch/context_struct.h> 30 30 #include <arch/arch.h> 31 31 #include <arch/regdef.h> … … 47 47 flushw 48 48 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] 50 67 retl 51 68 mov 1, %o0 ! context_save_arch returns 1 … … 69 86 wrpr %l0, %pstate 70 87 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 72 106 retl 73 107 xor %o0, %o0, %o0 ! context_restore_arch returns 0
Note:
See TracChangeset
for help on using the changeset viewer.