Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b3af11af
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b3af11af
编写于
11月 19, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
x86: get rid of pt_regs argument of iopl(2)
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
ea93a6e2
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
17 addition
and
24 deletion
+17
-24
arch/x86/ia32/ia32entry.S
arch/x86/ia32/ia32entry.S
+0
-1
arch/x86/include/asm/syscalls.h
arch/x86/include/asm/syscalls.h
+1
-1
arch/x86/kernel/entry_32.S
arch/x86/kernel/entry_32.S
+0
-1
arch/x86/kernel/entry_64.S
arch/x86/kernel/entry_64.S
+13
-18
arch/x86/kernel/ioport.c
arch/x86/kernel/ioport.c
+2
-1
arch/x86/syscalls/syscall_32.tbl
arch/x86/syscalls/syscall_32.tbl
+1
-1
arch/x86/um/sys_call_table_32.c
arch/x86/um/sys_call_table_32.c
+0
-1
未找到文件。
arch/x86/ia32/ia32entry.S
浏览文件 @
b3af11af
...
...
@@ -467,7 +467,6 @@ GLOBAL(\label)
PTREGSCALL
stub32_execve
,
compat_sys_execve
,
%
rcx
PTREGSCALL
stub32_fork
,
sys_fork
,
%
rdi
PTREGSCALL
stub32_vfork
,
sys_vfork
,
%
rdi
PTREGSCALL
stub32_iopl
,
sys_iopl
,
%
rsi
ALIGN
GLOBAL
(
stub32_clone
)
...
...
arch/x86/include/asm/syscalls.h
浏览文件 @
b3af11af
...
...
@@ -18,7 +18,7 @@
/* Common in X86_32 and X86_64 */
/* kernel/ioport.c */
asmlinkage
long
sys_ioperm
(
unsigned
long
,
unsigned
long
,
int
);
long
sys_iopl
(
unsigned
int
,
struct
pt_regs
*
);
asmlinkage
long
sys_iopl
(
unsigned
int
);
/* kernel/ldt.c */
asmlinkage
int
sys_modify_ldt
(
int
,
void
__user
*
,
unsigned
long
);
...
...
arch/x86/kernel/entry_32.S
浏览文件 @
b3af11af
...
...
@@ -738,7 +738,6 @@ ENTRY(ptregs_##name) ; \
CFI_ENDPROC
; \
ENDPROC
(
ptregs_
##
name
)
PTREGSCALL1
(
iopl
)
PTREGSCALL0
(
sigreturn
)
PTREGSCALL0
(
rt_sigreturn
)
PTREGSCALL2
(
vm86
)
...
...
arch/x86/kernel/entry_64.S
浏览文件 @
b3af11af
...
...
@@ -828,23 +828,6 @@ int_restore_rest:
CFI_ENDPROC
END
(
system_call
)
/*
*
Certain
special
system
calls
that
need
to
save
a
complete
full
stack
frame
.
*/
.
macro
PTREGSCALL
label
,
func
,
arg
ENTRY
(\
label
)
PARTIAL_FRAME
1
8
/*
offset
8
:
return
address
*/
subq
$REST_SKIP
,
%
rsp
CFI_ADJUST_CFA_OFFSET
REST_SKIP
call
save_rest
DEFAULT_FRAME
0
8
/*
offset
8
:
return
address
*/
leaq
8
(%
rsp
),
\
arg
/*
pt_regs
pointer
*/
call
\
func
jmp
ptregscall_common
CFI_ENDPROC
END
(\
label
)
.
endm
.
macro
FORK_LIKE
func
ENTRY
(
stub_
\
func
)
CFI_STARTPROC
...
...
@@ -861,10 +844,22 @@ ENTRY(stub_\func)
END
(
stub_
\
func
)
.
endm
.
macro
FIXED_FRAME
label
,
func
ENTRY
(\
label
)
CFI_STARTPROC
PARTIAL_FRAME
0
8
/*
offset
8
:
return
address
*/
FIXUP_TOP_OF_STACK
%
r11
,
8
-
ARGOFFSET
call
\
func
RESTORE_TOP_OF_STACK
%
r11
,
8
-
ARGOFFSET
ret
CFI_ENDPROC
END
(\
label
)
.
endm
FORK_LIKE
clone
FORK_LIKE
fork
FORK_LIKE
vfork
PTREGSCALL
stub_iopl
,
sys_iopl
,
%
rsi
FIXED_FRAME
stub_iopl
,
sys_iopl
ENTRY
(
ptregscall_common
)
DEFAULT_FRAME
1
8
/*
offset
8
:
return
address
*/
...
...
arch/x86/kernel/ioport.c
浏览文件 @
b3af11af
...
...
@@ -93,8 +93,9 @@ asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int turn_on)
* on system-call entry - see also fork() and the signal handling
* code.
*/
long
sys_iopl
(
unsigned
int
level
,
struct
pt_regs
*
regs
)
SYSCALL_DEFINE1
(
iopl
,
unsigned
int
,
level
)
{
struct
pt_regs
*
regs
=
current_pt_regs
();
unsigned
int
old
=
(
regs
->
flags
>>
12
)
&
3
;
struct
thread_struct
*
t
=
&
current
->
thread
;
...
...
arch/x86/syscalls/syscall_32.tbl
浏览文件 @
b3af11af
...
...
@@ -116,7 +116,7 @@
107 i386 lstat sys_newlstat compat_sys_newlstat
108 i386 fstat sys_newfstat compat_sys_newfstat
109 i386 olduname sys_uname
110 i386 iopl
ptregs_iopl stub32
_iopl
110 i386 iopl
sys
_iopl
111 i386 vhangup sys_vhangup
112 i386 idle
113 i386 vm86old ptregs_vm86old sys32_vm86_warning
...
...
arch/x86/um/sys_call_table_32.c
浏览文件 @
b3af11af
...
...
@@ -24,7 +24,6 @@
#define old_mmap sys_old_mmap
#define ptregs_iopl sys_iopl
#define ptregs_vm86old sys_vm86old
#define ptregs_vm86 sys_vm86
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录