Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1898a959
Commit
1898a959
authored
May 28, 2013
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: Entry Handler tweaks: Avoid hardcoded LIMMS for ECR values
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
3ebedbb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
arch/arc/include/asm/arcregs.h
arch/arc/include/asm/arcregs.h
+5
-0
arch/arc/kernel/entry.S
arch/arc/kernel/entry.S
+9
-6
No files found.
arch/arc/include/asm/arcregs.h
View file @
1898a959
...
...
@@ -68,6 +68,11 @@
#define ECR_C_PROTV_XCHG 0x03
#define ECR_C_PROTV_MISALIG_DATA 0x04
#define ECR_C_BIT_PROTV_MISALIG_DATA 10
/* Machine Check Cause Code Values */
#define ECR_C_MCHK_DUP_TLB 0x01
/* DTLB Miss Exception Cause Code Values */
#define ECR_C_BIT_DTLB_LD_MISS 8
#define ECR_C_BIT_DTLB_ST_MISS 9
...
...
arch/arc/kernel/entry.S
View file @
1898a959
...
...
@@ -321,7 +321,10 @@ ARC_ENTRY EV_MachineCheck
lr
r1
,
[
efa
]
mov
r2
,
sp
brne
r0
,
0x200100
,
1
f
lsr
r3
,
r0
,
8
bmsk
r3
,
r3
,
7
brne
r3
,
ECR_C_MCHK_DUP_TLB
,
1
f
bl
do_tlb_overlap_fault
b
ret_from_exception
...
...
@@ -368,11 +371,11 @@ ARC_ENTRY EV_TLBProtV
;------ (5) Type of Protection Violation? ----------
;
; ProtV Hardware Exception is triggered for Access Faults of 2 types
; -Access Violaton (WRITE to READ ONLY Page) - for linux COW
; -Unaligned Access (READ/WRITE on odd boundary)
; -Access Violaton : 00_23_(00|01|02|03)_00
; x r w r+w
; -Unaligned Access : 00_23_04_00
;
cmp
r2
,
0x230400
; Misaligned data access ?
beq
4
f
bbit1
r2
,
ECR_C_BIT_PROTV_MISALIG_DATA
,
4
f
;========= (6a) Access Violation Processing ========
mov
r0
,
sp
; pt_regs
...
...
@@ -542,7 +545,7 @@ ARC_ENTRY EV_Trap
;------- (4) What caused the Trap --------------
lr
r12
,
[
ecr
]
and.f
0
,
r12
,
ECR_PARAM_MASK
bmsk.f
0
,
r12
,
7
bnz
trap_with_param
; ======= (5a) Trap is due to System Call ========
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment