Changeset 0871296 in mainline for kernel/arch/ppc32/src/exception.S
- Timestamp:
- 2014-08-28T13:59:43Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3fde837
- Parents:
- beb16cfa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/exception.S
rbeb16cfa r0871296 31 31 #include <arch/mm/page.h> 32 32 #include <arch/istate_struct.h> 33 #include <arch/stack.h> 33 34 #include <align.h> 34 #include <arch/stack.h>35 35 36 36 .section K_UNMAPPED_TEXT_START, "ax" … … 45 45 mtsprg2 sp 46 46 47 # check whether SP is in kernel 48 49 andis. sp, sp, 0x8000 47 # check whether the previous mode was user or kernel 48 49 mfsrr1 sp # use sp as a temporary register to hold SRR1 50 andi. sp, sp, MSR_PR 50 51 bne 1f 51 52 # stack is in user-space 53 54 mfsprg0 sp 55 56 b 2f 57 58 1: 59 60 # stack is in kernel 52 # previous mode was kernel 61 53 62 54 mfsprg2 sp 63 55 subis sp, sp, 0x8000 64 56 b 2f 57 58 1: 59 # previous mode was user 60 61 mfsprg0 sp 65 62 2: 66 63 … … 266 263 267 264 mfsrr1 r5 265 266 andi. r5, r5, MSR_PR 267 268 268 andi. r5, r5, MSR_FP 269 269 mfmsr r12
Note:
See TracChangeset
for help on using the changeset viewer.