Changeset 74813216 in mainline for arch/sparc64/src
- Timestamp:
- 2005-12-01T13:36:01Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 22e10ab
- Parents:
- ee69c49
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/src/context.S
ree69c49 r74813216 36 36 37 37 .macro CONTEXT_STORE r 38 stx %l0, [\r + OFFSET_L0]39 stx %l1, [\r + OFFSET_L1]40 stx %l2, [\r + OFFSET_L2]41 stx %l3, [\r + OFFSET_L3]42 stx %l4, [\r + OFFSET_L4]43 stx %l5, [\r + OFFSET_L5]44 stx %l6, [\r + OFFSET_L6]45 stx %l7, [\r + OFFSET_L7]46 38 stx %i1, [\r + OFFSET_I1] 47 39 stx %i2, [\r + OFFSET_I2] … … 49 41 stx %i4, [\r + OFFSET_I4] 50 42 stx %i5, [\r + OFFSET_I5] 51 stx % i6, [\r + OFFSET_SP]43 stx %fp, [\r + OFFSET_FP] 52 44 stx %i7, [\r + OFFSET_PC] 45 stx %sp, [\r + OFFSET_SP] 53 46 .endm 54 47 55 48 .macro CONTEXT_LOAD r 56 ldx [\r + OFFSET_L0], %l057 ldx [\r + OFFSET_L1], %l158 ldx [\r + OFFSET_L2], %l259 ldx [\r + OFFSET_L3], %l360 ldx [\r + OFFSET_L4], %l461 ldx [\r + OFFSET_L5], %l562 ldx [\r + OFFSET_L6], %l663 ldx [\r + OFFSET_L7], %l764 49 ldx [\r + OFFSET_I1], %i1 65 50 ldx [\r + OFFSET_I2], %i2 … … 67 52 ldx [\r + OFFSET_I4], %i4 68 53 ldx [\r + OFFSET_I5], %i5 69 ldx [\r + OFFSET_ SP], %i654 ldx [\r + OFFSET_FP], %fp 70 55 ldx [\r + OFFSET_PC], %i7 71 56 ldx [\r + OFFSET_SP], %sp … … 78 63 79 64 # context_save returns 1 80 mov 1, %i0 65 mov 1, %i0 81 66 ret 82 restore %sp, 128, %sp83 67 restore %sp, STACK_WINDOW_SAVE_AREA_SIZE, %sp 68 84 69 context_restore_arch: 85 70 save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp … … 87 72 88 73 # context_restore returns 0 89 xor %i0, %i0, %i0 74 xor %i0, %i0, %i0 90 75 ret 91 restore %sp, STACK_WINDOW_SAVE_AREA_SIZE, %sp 76 restore %sp, STACK_WINDOW_SAVE_AREA_SIZE, %sp
Note:
See TracChangeset
for help on using the changeset viewer.