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
ab843583
Commit
ab843583
authored
May 31, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: __volatile --> __volatile__
parent
4b3eb953
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
arch/sparc64/kernel/process.c
arch/sparc64/kernel/process.c
+18
-18
include/asm-sparc64/uaccess.h
include/asm-sparc64/uaccess.h
+1
-1
No files found.
arch/sparc64/kernel/process.c
View file @
ab843583
...
@@ -694,24 +694,24 @@ pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
...
@@ -694,24 +694,24 @@ pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
* So we stash 'fn' and 'arg' into global registers which
* So we stash 'fn' and 'arg' into global registers which
* will not be modified by the parent.
* will not be modified by the parent.
*/
*/
__asm__
__volatile
(
"mov %4, %%g2
\n\t
"
/* Save FN into global */
__asm__
__volatile
__
(
"mov %4, %%g2
\n\t
"
/* Save FN into global */
"mov %5, %%g3
\n\t
"
/* Save ARG into global */
"mov %5, %%g3
\n\t
"
/* Save ARG into global */
"mov %1, %%g1
\n\t
"
/* Clone syscall nr. */
"mov %1, %%g1
\n\t
"
/* Clone syscall nr. */
"mov %2, %%o0
\n\t
"
/* Clone flags. */
"mov %2, %%o0
\n\t
"
/* Clone flags. */
"mov 0, %%o1
\n\t
"
/* usp arg == 0 */
"mov 0, %%o1
\n\t
"
/* usp arg == 0 */
"t 0x6d
\n\t
"
/* Linux/Sparc clone(). */
"t 0x6d
\n\t
"
/* Linux/Sparc clone(). */
"brz,a,pn %%o1, 1f
\n\t
"
/* Parent, just return. */
"brz,a,pn %%o1, 1f
\n\t
"
/* Parent, just return. */
" mov %%o0, %0
\n\t
"
" mov %%o0, %0
\n\t
"
"jmpl %%g2, %%o7
\n\t
"
/* Call the function. */
"jmpl %%g2, %%o7
\n\t
"
/* Call the function. */
" mov %%g3, %%o0
\n\t
"
/* Set arg in delay. */
" mov %%g3, %%o0
\n\t
"
/* Set arg in delay. */
"mov %3, %%g1
\n\t
"
"mov %3, %%g1
\n\t
"
"t 0x6d
\n\t
"
/* Linux/Sparc exit(). */
"t 0x6d
\n\t
"
/* Linux/Sparc exit(). */
/* Notreached by child. */
/* Notreached by child. */
"1:"
:
"1:"
:
"=r"
(
retval
)
:
"=r"
(
retval
)
:
"i"
(
__NR_clone
),
"r"
(
flags
|
CLONE_VM
|
CLONE_UNTRACED
),
"i"
(
__NR_clone
),
"r"
(
flags
|
CLONE_VM
|
CLONE_UNTRACED
),
"i"
(
__NR_exit
),
"r"
(
fn
),
"r"
(
arg
)
:
"i"
(
__NR_exit
),
"r"
(
fn
),
"r"
(
arg
)
:
"g1"
,
"g2"
,
"g3"
,
"o0"
,
"o1"
,
"memory"
,
"cc"
);
"g1"
,
"g2"
,
"g3"
,
"o0"
,
"o1"
,
"memory"
,
"cc"
);
return
retval
;
return
retval
;
}
}
...
...
include/asm-sparc64/uaccess.h
View file @
ab843583
...
@@ -163,7 +163,7 @@ __asm__ __volatile__( \
...
@@ -163,7 +163,7 @@ __asm__ __volatile__( \
".previous\n\n\t" \
".previous\n\n\t" \
: "=r" (foo) : "r" (x), "r" (__m(addr))); \
: "=r" (foo) : "r" (x), "r" (__m(addr))); \
else \
else \
__asm__ __volatile( \
__asm__ __volatile
__
( \
"
/* Put user asm ret, inline. */
\n" \
"
/* Put user asm ret, inline. */
\n" \
"1:\t" "st"#size "a %1, [%2] %%asi\n\n\t" \
"1:\t" "st"#size "a %1, [%2] %%asi\n\n\t" \
".section .fixup,#alloc,#execinstr\n\t" \
".section .fixup,#alloc,#execinstr\n\t" \
...
...
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