Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
49cb25e9
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看板
提交
49cb25e9
编写于
11月 12, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
x86: get rid of pt_regs argument in vm86/vm86old
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
3fe26fa3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
32 deletion
+8
-32
arch/x86/include/asm/syscalls.h
arch/x86/include/asm/syscalls.h
+2
-2
arch/x86/kernel/entry_32.S
arch/x86/kernel/entry_32.S
+0
-21
arch/x86/kernel/vm86_32.c
arch/x86/kernel/vm86_32.c
+4
-4
arch/x86/syscalls/syscall_32.tbl
arch/x86/syscalls/syscall_32.tbl
+2
-2
arch/x86/um/sys_call_table_32.c
arch/x86/um/sys_call_table_32.c
+0
-3
未找到文件。
arch/x86/include/asm/syscalls.h
浏览文件 @
49cb25e9
...
...
@@ -40,8 +40,8 @@ asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
unsigned
long
sys_sigreturn
(
void
);
/* kernel/vm86_32.c */
int
sys_vm86old
(
struct
vm86_struct
__user
*
,
struct
pt_regs
*
);
int
sys_vm86
(
unsigned
long
,
unsigned
long
,
struct
pt_regs
*
);
int
sys_vm86old
(
struct
vm86_struct
__user
*
);
int
sys_vm86
(
unsigned
long
,
unsigned
long
);
#else
/* CONFIG_X86_32 */
...
...
arch/x86/kernel/entry_32.S
浏览文件 @
49cb25e9
...
...
@@ -699,27 +699,6 @@ END(syscall_badsys)
*/
.
popsection
/*
*
System
calls
that
need
a
pt_regs
pointer
.
*/
#define PTREGSCALL1(name) \
ENTRY
(
ptregs_
##
name
)
; \
leal
4
(%
esp
),%
edx
; \
movl
(
PT_EBX
+
4
)(%
esp
),%
eax
; \
jmp
sys_
##
name
; \
ENDPROC
(
ptregs_
##
name
)
#define PTREGSCALL2(name) \
ENTRY
(
ptregs_
##
name
)
; \
leal
4
(%
esp
),%
ecx
; \
movl
(
PT_ECX
+
4
)(%
esp
),%
edx
; \
movl
(
PT_EBX
+
4
)(%
esp
),%
eax
; \
jmp
sys_
##
name
; \
ENDPROC
(
ptregs_
##
name
)
PTREGSCALL2
(
vm86
)
PTREGSCALL1
(
vm86old
)
.
macro
FIXUP_ESPFIX_STACK
/*
*
Switch
back
for
ESPFIX
stack
to
the
normal
zerobased
stack
...
...
arch/x86/kernel/vm86_32.c
浏览文件 @
49cb25e9
...
...
@@ -202,7 +202,7 @@ static void mark_screen_rdonly(struct mm_struct *mm)
static
int
do_vm86_irq_handling
(
int
subfunction
,
int
irqnumber
);
static
void
do_sys_vm86
(
struct
kernel_vm86_struct
*
info
,
struct
task_struct
*
tsk
);
int
sys_vm86old
(
struct
vm86_struct
__user
*
v86
,
struct
pt_regs
*
regs
)
int
sys_vm86old
(
struct
vm86_struct
__user
*
v86
)
{
struct
kernel_vm86_struct
info
;
/* declare this _on top_,
* this avoids wasting of stack space.
...
...
@@ -222,7 +222,7 @@ int sys_vm86old(struct vm86_struct __user *v86, struct pt_regs *regs)
if
(
tmp
)
goto
out
;
memset
(
&
info
.
vm86plus
,
0
,
(
int
)
&
info
.
regs32
-
(
int
)
&
info
.
vm86plus
);
info
.
regs32
=
regs
;
info
.
regs32
=
current_pt_regs
()
;
tsk
->
thread
.
vm86_info
=
v86
;
do_sys_vm86
(
&
info
,
tsk
);
ret
=
0
;
/* we never return here */
...
...
@@ -231,7 +231,7 @@ int sys_vm86old(struct vm86_struct __user *v86, struct pt_regs *regs)
}
int
sys_vm86
(
unsigned
long
cmd
,
unsigned
long
arg
,
struct
pt_regs
*
regs
)
int
sys_vm86
(
unsigned
long
cmd
,
unsigned
long
arg
)
{
struct
kernel_vm86_struct
info
;
/* declare this _on top_,
* this avoids wasting of stack space.
...
...
@@ -272,7 +272,7 @@ int sys_vm86(unsigned long cmd, unsigned long arg, struct pt_regs *regs)
ret
=
-
EFAULT
;
if
(
tmp
)
goto
out
;
info
.
regs32
=
regs
;
info
.
regs32
=
current_pt_regs
()
;
info
.
vm86plus
.
is_vm86pus
=
1
;
tsk
->
thread
.
vm86_info
=
(
struct
vm86_struct
__user
*
)
v86
;
do_sys_vm86
(
&
info
,
tsk
);
...
...
arch/x86/syscalls/syscall_32.tbl
浏览文件 @
49cb25e9
...
...
@@ -119,7 +119,7 @@
110 i386 iopl sys_iopl
111 i386 vhangup sys_vhangup
112 i386 idle
113 i386 vm86old
ptreg
s_vm86old sys32_vm86_warning
113 i386 vm86old
sy
s_vm86old sys32_vm86_warning
114 i386 wait4 sys_wait4 compat_sys_wait4
115 i386 swapoff sys_swapoff
116 i386 sysinfo sys_sysinfo compat_sys_sysinfo
...
...
@@ -172,7 +172,7 @@
163 i386 mremap sys_mremap
164 i386 setresuid sys_setresuid16
165 i386 getresuid sys_getresuid16
166 i386 vm86
ptreg
s_vm86 sys32_vm86_warning
166 i386 vm86
sy
s_vm86 sys32_vm86_warning
167 i386 query_module
168 i386 poll sys_poll
169 i386 nfsservctl
...
...
arch/x86/um/sys_call_table_32.c
浏览文件 @
49cb25e9
...
...
@@ -24,9 +24,6 @@
#define old_mmap sys_old_mmap
#define ptregs_vm86old sys_vm86old
#define ptregs_vm86 sys_vm86
#define __SYSCALL_I386(nr, sym, compat) extern asmlinkage void sym(void) ;
#include <asm/syscalls_32.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录