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
Kirill Smelkov
linux
Commits
4bf4564b
Commit
4bf4564b
authored
Feb 27, 2015
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: entry.S: comments cleanup
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
a8717d28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
26 deletions
+20
-26
arch/arc/kernel/entry.S
arch/arc/kernel/entry.S
+20
-26
No files found.
arch/arc/kernel/entry.S
View file @
4bf4564b
...
@@ -322,13 +322,8 @@ ENTRY(EV_TLBProtV)
...
@@ -322,13 +322,8 @@ ENTRY(EV_TLBProtV)
EXCEPTION_PROLOGUE
EXCEPTION_PROLOGUE
;---------(3) Save some more regs-----------------
; vineetg: Mar 6th: Random Seg Fault issue #1
; ecr and efa were not saved in case an Intr sneaks in
; after fake rtie
lr
r2
,
[
ecr
]
lr
r2
,
[
ecr
]
lr
r0
,
[
efa
]
; Faulting Data addr
ess
lr
r0
,
[
efa
]
; Faulting Data addr
(not part of pt_regs saved above)
; Exception auto-disables further Intr/exceptions.
; Exception auto-disables further Intr/exceptions.
; Re-enable them by pretending to return from exception
; Re-enable them by pretending to return from exception
...
@@ -336,7 +331,7 @@ ENTRY(EV_TLBProtV)
...
@@ -336,7 +331,7 @@ ENTRY(EV_TLBProtV)
FAKE_RET_FROM_EXCPN
FAKE_RET_FROM_EXCPN
mov
r1
,
sp
mov
r1
,
sp
; Handle to pt_regs
;------ (5) Type of Protection Violation? ----------
;------ (5) Type of Protection Violation? ----------
;
;
...
@@ -415,8 +410,11 @@ ENTRY(EV_Extension)
...
@@ -415,8 +410,11 @@ ENTRY(EV_Extension)
b
ret_from_exception
b
ret_from_exception
END
(
EV_Extension
)
END
(
EV_Extension
)
;################
######### System Call Tracing #######
##################
;################
Trap Handling (Syscall, Breakpoint)
##################
; ---------------------------------------------
; syscall Tracing
; ---------------------------------------------
tracesys
:
tracesys
:
; save EFA in case tracer wants the PC of traced task
; save EFA in case tracer wants the PC of traced task
; using ERET won't work since next-PC has already committed
; using ERET won't work since next-PC has already committed
...
@@ -459,10 +457,9 @@ tracesys_exit:
...
@@ -459,10 +457,9 @@ tracesys_exit:
b
ret_from_exception
; NOT ret_from_system_call at is saves r0 which
b
ret_from_exception
; NOT ret_from_system_call at is saves r0 which
; we'd done before calling post hook above
; we'd done before calling post hook above
;################### Break Point TRAP ##########################
; ---------------------------------------------
; Breakpoint TRAP
; ======= (5b) Trap is due to Break-Point =========
; ---------------------------------------------
trap_with_param
:
trap_with_param
:
; stop_pc info by gdb needs this info
; stop_pc info by gdb needs this info
...
@@ -490,36 +487,33 @@ trap_with_param:
...
@@ -490,36 +487,33 @@ trap_with_param:
b
ret_from_exception
b
ret_from_exception
;##################### Trap Handling ##############################
; ---------------------------------------------
;
; syscall TRAP
; EV_Trap caused by TRAP_S and TRAP0 instructions.
; ABI: (r0-r7) upto 8 args, (r8) syscall number
;------------------------------------------------------------------
; ---------------------------------------------
; (1) System Calls
; :parameters in r0-r7.
; :r8 has the system call number
; (2) Break Points
;------------------------------------------------------------------
ENTRY
(
EV_Trap
)
ENTRY
(
EV_Trap
)
EXCEPTION_PROLOGUE
EXCEPTION_PROLOGUE
;
------- (4) What caused the Trap --------------
;
============ TRAP 1 :breakpoints
lr
r10
,
[
ecr
]
lr
r10
,
[
ecr
]
bmsk.f
0
,
r10
,
7
bmsk.f
0
,
r10
,
7
bnz
trap_with_param
bnz
trap_with_param
;
======= (5a) Trap is due to System Call ========
;
============ TRAP (no param): syscall top level
; First return from Exception to pure K mode (Exception/IRQs renabled)
FAKE_RET_FROM_EXCPN
FAKE_RET_FROM_EXCPN
; If syscall tracing ongoing, invoke pre-pos-hooks
; If syscall tracing ongoing, invoke pre-pos
t
-hooks
GET_CURR_THR_INFO_FLAGS
r10
GET_CURR_THR_INFO_FLAGS
r10
btst
r10
,
TIF_SYSCALL_TRACE
btst
r10
,
TIF_SYSCALL_TRACE
bnz
tracesys
; this never comes back
bnz
tracesys
; this never comes back
;============ This is normal System Call case ==========
;============ Normal syscall case
; Sys-call num shd not exceed the total system calls avail
; syscall num shd not exceed the total system calls avail
cmp
r8
,
NR_syscalls
cmp
r8
,
NR_syscalls
mov.hi
r0
,
-
ENOSYS
mov.hi
r0
,
-
ENOSYS
bhi
ret_from_system_call
bhi
ret_from_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