Changeset 32e8cd1 in mainline for kernel/arch/sparc32/src/context.S
- Timestamp:
- 2013-12-28T17:16:44Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1023bcb
- Parents:
- f6f22cdb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc32/src/context.S
rf6f22cdb r32e8cd1 45 45 # them there even if e.g. the thread is migrated to another processor. 46 46 # 47 #flushw 48 mov 7, %g1 49 1: subcc %g1, 1, %g1 50 bg 1b 51 save %sp, -64, %sp 52 47 48 ## flushw 53 49 mov 7, %g1 54 1: subcc %g1, 1, %g1 55 bg 1b 56 restore 57 50 1: 51 subcc %g1, 1, %g1 52 bg 1b 53 54 save %sp, -64, %sp 55 56 mov 7, %g1 57 1: 58 subcc %g1, 1, %g1 59 bg 1b 60 61 restore 62 58 63 CONTEXT_SAVE_ARCH_CORE %o0 59 64 retl … … 70 75 # spills. 71 76 # 72 #rdpr %pstate, %l0 73 #andn %l0, PSTATE_IE_BIT, %l1 74 #wrpr %l1, %pstate 75 #wrpr %g0, 0, %canrestore 76 #wrpr %g0, 0, %otherwin 77 #wrpr %g0, NWINDOWS - 2, %cansave 78 #wrpr %l0, %pstate 77 78 ## rdpr %pstate, %l0 79 ## andn %l0, PSTATE_IE_BIT, %l1 80 ## wrpr %l1, %pstate 81 ## wrpr %g0, 0, %canrestore 82 ## wrpr %g0, 0, %otherwin 83 ## wrpr %g0, NWINDOWS - 2, %cansave 84 ## wrpr %l0, %pstate 85 79 86 mov 7, %g1 80 1: subcc %g1, 1, %g1 81 bg 1b 82 save %sp, -64, %sp 83 87 1: 88 subcc %g1, 1, %g1 89 bg 1b 90 91 save %sp, -64, %sp 92 84 93 mov 7, %g1 85 1: subcc %g1, 1, %g1 86 bg 1b 87 restore 88 94 1: 95 subcc %g1, 1, %g1 96 bg 1b 97 98 restore 99 89 100 CONTEXT_RESTORE_ARCH_CORE %o0 90 101 retl
Note:
See TracChangeset
for help on using the changeset viewer.