Changeset 32573ff in mainline for kernel/arch/sparc64/src/sun4u/asm.S
- Timestamp:
- 2016-05-02T20:58:16Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7c4b26c
- Parents:
- 6adb775f (diff), 5035ba05 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/sun4u/asm.S
r6adb775f r32573ff 27 27 # 28 28 29 #include <abi/asmtool.h> 29 30 #include <arch/arch.h> 30 31 #include <arch/stack.h> … … 55 56 .endm 56 57 57 .global write_to_ag_g6 58 write_to_ag_g6: 58 FUNCTION_BEGIN(write_to_ag_g6) 59 59 WRITE_ALTERNATE_REGISTER %g6, PSTATE_AG_BIT 60 FUNCTION_END(write_to_ag_g6) 60 61 61 .global write_to_ag_g7 62 write_to_ag_g7: 62 FUNCTION_BEGIN(write_to_ag_g7) 63 63 WRITE_ALTERNATE_REGISTER %g7, PSTATE_AG_BIT 64 FUNCTION_END(write_to_ag_g7) 64 65 65 .global write_to_ig_g6 66 write_to_ig_g6: 66 FUNCTION_BEGIN(write_to_ig_g6) 67 67 WRITE_ALTERNATE_REGISTER %g6, PSTATE_IG_BIT 68 FUNCTION_END(write_to_ig_g6) 68 69 69 .global read_from_ag_g6 70 read_from_ag_g6: 70 FUNCTION_BEGIN(read_from_ag_g6) 71 71 READ_ALTERNATE_REGISTER %g6, PSTATE_AG_BIT 72 FUNCTION_END(read_from_ag_g6) 72 73 73 .global read_from_ag_g7 74 read_from_ag_g7: 74 FUNCTION_BEGIN(read_from_ag_g7) 75 75 READ_ALTERNATE_REGISTER %g7, PSTATE_AG_BIT 76 FUNCTION_END(read_from_ag_g7) 76 77 77 78 /** Switch to userspace. … … 81 82 * %o2 Userspace address of uarg structure. 82 83 */ 83 .global switch_to_userspace 84 switch_to_userspace: 84 FUNCTION_BEGIN(switch_to_userspace) 85 85 save %o1, -(STACK_WINDOW_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE), %sp 86 86 flushw … … 119 119 120 120 done ! jump to userspace 121 FUNCTION_END(switch_to_userspace) 121 122
Note:
See TracChangeset
for help on using the changeset viewer.