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
nexedi
linux
Commits
18a58b8b
Commit
18a58b8b
authored
Oct 11, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Fix for copy_tofrom_user from Paul Mackerras
parent
d51167f4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
arch/ppc64/kernel/entry.S
arch/ppc64/kernel/entry.S
+4
-4
arch/ppc64/kernel/pci.c
arch/ppc64/kernel/pci.c
+1
-0
arch/ppc64/kernel/xics.c
arch/ppc64/kernel/xics.c
+1
-0
arch/ppc64/lib/copyuser.S
arch/ppc64/lib/copyuser.S
+5
-3
No files found.
arch/ppc64/kernel/entry.S
View file @
18a58b8b
...
...
@@ -124,7 +124,7 @@ _GLOBAL(DoSyscall)
addi
r9
,
r1
,
STACK_FRAME_OVERHEAD
blrl
/*
Call
handler
*/
_GLOBAL
(
ret_from_syscall_1
)
20
:
std
r3
,
RESULT
(
r1
)
/*
Save
result
*/
std
r3
,
RESULT
(
r1
)
/*
Save
result
*/
#ifdef SHOW_SYSCALLS
#ifdef SHOW_SYSCALLS_TASK
ld
r10
,
PACACURRENT
(
13
)
...
...
@@ -195,7 +195,7 @@ _GLOBAL(ret_from_syscall_1)
addi
r9
,
r1
,
STACK_FRAME_OVERHEAD
blrl
/*
Call
handler
*/
_GLOBAL
(
ret_from_syscall_2
)
58
:
std
r3
,
RESULT
(
r1
)
/*
Save
result
*/
std
r3
,
RESULT
(
r1
)
/*
Save
result
*/
std
r3
,
GPR0
(
r1
)
/*
temporary
gross
hack
to
make
strace
work
*/
li
r10
,-
_LAST_ERRNO
cmpl
0
,
r3
,
r10
...
...
@@ -240,9 +240,9 @@ _GLOBAL(ppc64_rt_sigreturn)
bne
-
81
f
cmpi
0
,
r3
,
0
bge
.
ret_from_except
b
20
b
b
.
ret_from_syscall_1
81
:
cmpi
0
,
r3
,
0
blt
58
b
blt
.
ret_from_syscall_2
bl
.
do_syscall_trace
b
.
ret_from_except
...
...
arch/ppc64/kernel/pci.c
View file @
18a58b8b
...
...
@@ -434,6 +434,7 @@ pcibios_init(void)
PPCDBG
(
PPCDBG_BUSWALK
,
"PCI: Probing PCI hardware done.
\n
"
);
//ppc64_boot_msg(0x41, "PCI Done");
return
0
;
}
subsys_initcall
(
pcibios_init
);
...
...
arch/ppc64/kernel/xics.c
View file @
18a58b8b
...
...
@@ -23,6 +23,7 @@
#include "i8259.h"
#include "xics.h"
#include <asm/ppcdebug.h>
#include <asm/machdep.h>
void
xics_enable_irq
(
u_int
irq
);
void
xics_disable_irq
(
u_int
irq
);
...
...
arch/ppc64/lib/copyuser.S
View file @
18a58b8b
...
...
@@ -253,14 +253,16 @@ _GLOBAL(__copy_tofrom_user)
addi
r4
,
r4
,
1
bne
1
b
blr
3
:
srdi
r9
,
r5
,
3
3
:
cmpldi
cr1
,
r5
,
8
srdi
r9
,
r5
,
3
andi
.
r5
,
r5
,
7
blt
cr1
,
93
f
mtctr
r9
91
:
std
r0
,
0
(
r4
)
addi
r4
,
r4
,
8
bdnz
91
b
beqlr
mtctr
r5
93
:
beqlr
mtctr
r5
92
:
stb
r0
,
0
(
r4
)
addi
r4
,
r4
,
1
bdnz
92
b
...
...
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