Changeset 5a42886 in mainline
- Timestamp:
- 2014-12-16T17:59:07Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f892ed3b
- Parents:
- 6d7d4f1
- Location:
- kernel/arch/ppc32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/arch/asm.h
r6d7d4f1 r5a42886 58 58 asm volatile ( 59 59 "mtmsr %[msr]\n" 60 "isync\n" 60 61 :: [msr] "r" (msr) 61 62 ); … … 66 67 asm volatile ( 67 68 "mtsrin %[value], %[sr]\n" 69 "sync\n" 70 "isync\n" 68 71 :: [value] "r" ((flags << 16) + (asid << 4) + sr), 69 72 [sr] "r" (sr << 28) -
kernel/arch/ppc32/src/asm.S
r6d7d4f1 r5a42886 55 55 rlwinm r31, r31, 0, 17, 15 56 56 mtmsr r31 57 isync 57 58 58 59 /* Set entry point */ … … 85 86 rlwinm r31, r31, 0, 17, 15 86 87 mtmsr r31 88 isync 87 89 88 90 lwz r0, ISTATE_OFFSET_R0(sp) … … 152 154 rlwinm r31, r31, 0, 17, 15 153 155 mtmsr r31 156 isync 154 157 155 158 lwz r0, ISTATE_OFFSET_R0(sp) -
kernel/arch/ppc32/src/fpu_context.S
r6d7d4f1 r5a42886 119 119 fpu_context_restore: 120 120 lfd fr0, FPU_CONTEXT_OFFSET_FPSCR(r3) 121 mtfsf 7, fr0122 121 mtfsf 0xff, fr0 122 123 123 FPU_CONTEXT_LOAD r3 124 124 … … 128 128 mfmsr r0 129 129 ori r0, r0, MSR_FP 130 130 131 131 # Disable FPU exceptions 132 132 li r3, MSR_FE0 | MSR_FE1 133 133 andc r0, r0, r3 134 134 135 135 mtmsr r0 136 isync 137 136 138 blr 137 139 … … 140 142 ori r0, r0, MSR_FP 141 143 mtmsr r0 144 isync 142 145 blr 143 146 … … 147 150 andc r0, r0, r3 148 151 mtmsr r0 152 isync 149 153 blr 150
Note:
See TracChangeset
for help on using the changeset viewer.