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
10f650db
Commit
10f650db
authored
May 25, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
64-bit fixes for Alchemy code ;)
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
ffd099bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/cpu-probe.c
+5
-6
No files found.
arch/mips/kernel/cpu-probe.c
View file @
10f650db
...
@@ -53,14 +53,13 @@ static void r4k_wait(void)
...
@@ -53,14 +53,13 @@ static void r4k_wait(void)
/* The Au1xxx wait is available only if using 32khz counter or
/* The Au1xxx wait is available only if using 32khz counter or
* external timer source, but specifically not CP0 Counter. */
* external timer source, but specifically not CP0 Counter. */
int
allow_au1k_wait
;
int
allow_au1k_wait
;
static
void
au1k_wait
(
void
)
static
void
au1k_wait
(
void
)
{
{
unsigned
long
addr
=
0
;
/* using the wait instruction makes CP0 counter unusable */
/* using the wait instruction makes CP0 counter unusable */
__asm__
(
"la %0,au1k_wait
\n\t
"
__asm__
(
".set mips3
\n\t
"
".set mips3
\n\t
"
"cache 0x14, 0(%0)
\n\t
"
"cache 0x14,0(%0)
\n\t
"
"cache 0x14, 32(%0)
\n\t
"
"cache 0x14,32(%0)
\n\t
"
"sync
\n\t
"
"sync
\n\t
"
"nop
\n\t
"
"nop
\n\t
"
"wait
\n\t
"
"wait
\n\t
"
...
@@ -69,7 +68,7 @@ static void au1k_wait(void)
...
@@ -69,7 +68,7 @@ static void au1k_wait(void)
"nop
\n\t
"
"nop
\n\t
"
"nop
\n\t
"
"nop
\n\t
"
".set mips0
\n\t
"
".set mips0
\n\t
"
:
:
"r"
(
a
ddr
));
:
:
"r"
(
a
u1k_wait
));
}
}
static
inline
void
check_wait
(
void
)
static
inline
void
check_wait
(
void
)
...
...
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