Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
4bf4564b
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4bf4564b
编写于
2月 27, 2015
作者:
V
Vineet Gupta
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARC: entry.S: comments cleanup
Signed-off-by:
N
Vineet Gupta
<
vgupta@synopsys.com
>
上级
a8717d28
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
26 deletion
+20
-26
arch/arc/kernel/entry.S
arch/arc/kernel/entry.S
+20
-26
未找到文件。
arch/arc/kernel/entry.S
浏览文件 @
4bf4564b
...
...
@@ -322,13 +322,8 @@ ENTRY(EV_TLBProtV)
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
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.
; Re-enable them by pretending to return from exception
...
...
@@ -336,7 +331,7 @@ ENTRY(EV_TLBProtV)
FAKE_RET_FROM_EXCPN
mov
r1
,
sp
mov
r1
,
sp
; Handle to pt_regs
;------ (5) Type of Protection Violation? ----------
;
...
...
@@ -415,8 +410,11 @@ ENTRY(EV_Extension)
b
ret_from_exception
END
(
EV_Extension
)
;################
######### System Call Tracing #######
##################
;################
Trap Handling (Syscall, Breakpoint)
##################
; ---------------------------------------------
; syscall Tracing
; ---------------------------------------------
tracesys
:
; save EFA in case tracer wants the PC of traced task
; using ERET won't work since next-PC has already committed
...
...
@@ -459,10 +457,9 @@ tracesys_exit:
b
ret_from_exception
; NOT ret_from_system_call at is saves r0 which
; we'd done before calling post hook above
;################### Break Point TRAP ##########################
; ======= (5b) Trap is due to Break-Point =========
; ---------------------------------------------
; Breakpoint TRAP
; ---------------------------------------------
trap_with_param
:
; stop_pc info by gdb needs this info
...
...
@@ -490,36 +487,33 @@ trap_with_param:
b
ret_from_exception
;##################### Trap Handling ##############################
;
; EV_Trap caused by TRAP_S and TRAP0 instructions.
;------------------------------------------------------------------
; (1) System Calls
; :parameters in r0-r7.
; :r8 has the system call number
; (2) Break Points
;------------------------------------------------------------------
; ---------------------------------------------
; syscall TRAP
; ABI: (r0-r7) upto 8 args, (r8) syscall number
; ---------------------------------------------
ENTRY
(
EV_Trap
)
EXCEPTION_PROLOGUE
;
------- (4) What caused the Trap --------------
;
============ TRAP 1 :breakpoints
lr
r10
,
[
ecr
]
bmsk.f
0
,
r10
,
7
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
; If syscall tracing ongoing, invoke pre-pos-hooks
; If syscall tracing ongoing, invoke pre-pos
t
-hooks
GET_CURR_THR_INFO_FLAGS
r10
btst
r10
,
TIF_SYSCALL_TRACE
bnz
tracesys
; this never comes back
;============ This is normal System Call case ==========
; Sys-call num shd not exceed the total system calls avail
;============ Normal syscall case
; syscall num shd not exceed the total system calls avail
cmp
r8
,
NR_syscalls
mov.hi
r0
,
-
ENOSYS
bhi
ret_from_system_call
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录