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
2ebf51e3
Commit
2ebf51e3
authored
Jul 14, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://are.twiddle.net/axp-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
506a6f1c
32d19579
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
15 deletions
+23
-15
arch/alpha/kernel/entry.S
arch/alpha/kernel/entry.S
+18
-0
arch/alpha/kernel/process.c
arch/alpha/kernel/process.c
+3
-12
arch/alpha/kernel/signal.c
arch/alpha/kernel/signal.c
+2
-3
No files found.
arch/alpha/kernel/entry.S
View file @
2ebf51e3
...
@@ -924,6 +924,24 @@ sys_ptrace:
...
@@ -924,6 +924,24 @@ sys_ptrace:
jmp
$
31
,
do_sys_ptrace
jmp
$
31
,
do_sys_ptrace
.
end
sys_ptrace
.
end
sys_ptrace
.
align
4
.
globl
sys_execve
.
ent
sys_execve
sys_execve
:
.
prologue
0
mov
$sp
,
$
19
jmp
$
31
,
do_sys_execve
.
end
sys_execve
.
align
4
.
globl
osf_sigprocmask
.
ent
osf_sigprocmask
osf_sigprocmask
:
.
prologue
0
mov
$sp
,
$
18
jmp
$
31
,
do_osf_sigprocmask
.
end
osf_sigprocmask
.
align
4
.
align
4
.
globl
alpha_ni_syscall
.
globl
alpha_ni_syscall
.
ent
alpha_ni_syscall
.
ent
alpha_ni_syscall
...
...
arch/alpha/kernel/process.c
View file @
2ebf51e3
...
@@ -456,19 +456,10 @@ dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task)
...
@@ -456,19 +456,10 @@ dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task)
/*
/*
* sys_execve() executes a new program.
* sys_execve() executes a new program.
*
* This works due to the alpha calling sequence: the first 6 args
* are gotten from registers, while the rest is on the stack, so
* we get a0-a5 for free, and then magically find "struct pt_regs"
* on the stack for us..
*
* Don't do this at home.
*/
*/
asmlinkage
int
asmlinkage
int
sys_execve
(
char
__user
*
ufilename
,
char
__user
*
__user
*
argv
,
do_sys_execve
(
char
__user
*
ufilename
,
char
__user
*
__user
*
argv
,
char
__user
*
__user
*
envp
,
char
__user
*
__user
*
envp
,
struct
pt_regs
*
regs
)
unsigned
long
a3
,
unsigned
long
a4
,
unsigned
long
a5
,
struct
pt_regs
regs
)
{
{
int
error
;
int
error
;
char
*
filename
;
char
*
filename
;
...
@@ -477,7 +468,7 @@ sys_execve(char __user *ufilename, char __user * __user *argv,
...
@@ -477,7 +468,7 @@ sys_execve(char __user *ufilename, char __user * __user *argv,
error
=
PTR_ERR
(
filename
);
error
=
PTR_ERR
(
filename
);
if
(
IS_ERR
(
filename
))
if
(
IS_ERR
(
filename
))
goto
out
;
goto
out
;
error
=
do_execve
(
filename
,
argv
,
envp
,
&
regs
);
error
=
do_execve
(
filename
,
argv
,
envp
,
regs
);
putname
(
filename
);
putname
(
filename
);
out:
out:
return
error
;
return
error
;
...
...
arch/alpha/kernel/signal.c
View file @
2ebf51e3
...
@@ -53,8 +53,7 @@ static int do_signal(sigset_t *, struct pt_regs *, struct switch_stack *,
...
@@ -53,8 +53,7 @@ static int do_signal(sigset_t *, struct pt_regs *, struct switch_stack *,
* operation, as all of this is local to this thread.
* operation, as all of this is local to this thread.
*/
*/
asmlinkage
unsigned
long
asmlinkage
unsigned
long
osf_sigprocmask
(
int
how
,
unsigned
long
newmask
,
long
a2
,
long
a3
,
do_osf_sigprocmask
(
int
how
,
unsigned
long
newmask
,
struct
pt_regs
*
regs
)
long
a4
,
long
a5
,
struct
pt_regs
regs
)
{
{
unsigned
long
oldmask
=
-
EINVAL
;
unsigned
long
oldmask
=
-
EINVAL
;
...
@@ -78,7 +77,7 @@ osf_sigprocmask(int how, unsigned long newmask, long a2, long a3,
...
@@ -78,7 +77,7 @@ osf_sigprocmask(int how, unsigned long newmask, long a2, long a3,
recalc_sigpending
();
recalc_sigpending
();
spin_unlock_irq
(
&
current
->
sighand
->
siglock
);
spin_unlock_irq
(
&
current
->
sighand
->
siglock
);
(
&
regs
)
->
r0
=
0
;
/* special no error return */
regs
->
r0
=
0
;
/* special no error return */
}
}
return
oldmask
;
return
oldmask
;
}
}
...
...
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