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
b6eba17c
Commit
b6eba17c
authored
May 25, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: two warning fixes from Rusty Russell, plus fix the PPC603
tlb miss handlers to expect a physical address in the pmds.
parent
94399c3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
arch/ppc/boot/chrp/start.c
arch/ppc/boot/chrp/start.c
+5
-5
arch/ppc/kernel/head.S
arch/ppc/kernel/head.S
+0
-3
include/asm-ppc/spinlock.h
include/asm-ppc/spinlock.h
+1
-1
No files found.
arch/ppc/boot/chrp/start.c
View file @
b6eba17c
/*
* BK Id:
SCCS/s.start.c 1.8 07/25/01 18:13:07 trini
* BK Id:
%F% %I% %G% %U% %#%
*/
/*
* Copyright (C) Paul Mackerras 1997.
...
...
@@ -11,7 +11,7 @@
*/
#include <stdarg.h>
int
(
*
prom
)();
int
(
*
prom
)(
void
*
args
);
void
*
chosen_handle
;
void
*
stdin
;
...
...
@@ -30,7 +30,7 @@ extern int strlen(const char *s);
void
start
(
int
a1
,
int
a2
,
void
*
promptr
)
{
prom
=
(
int
(
*
)())
promptr
;
prom
=
promptr
;
chosen_handle
=
finddevice
(
"/chosen"
);
if
(
chosen_handle
==
(
void
*
)
-
1
)
exit
();
...
...
@@ -65,7 +65,7 @@ write(void *handle, void *ptr, int nb)
args
.
addr
=
ptr
;
args
.
len
=
nb
;
args
.
actual
=
-
1
;
(
*
prom
)
(
&
args
);
prom
(
&
args
);
return
args
.
actual
;
}
...
...
@@ -211,7 +211,7 @@ fputs(char *str, void *f)
}
int
readchar
()
readchar
(
void
)
{
char
ch
;
...
...
arch/ppc/kernel/head.S
View file @
b6eba17c
...
...
@@ -507,7 +507,6 @@ InstructionTLBMiss:
lwz
r2
,
0
(
r2
)
/*
get
pmd
entry
*/
rlwinm
.
r2
,
r2
,
0
,
0
,
19
/*
extract
address
of
pte
page
*/
beq
-
InstructionAddressInvalid
/*
return
if
no
mapping
*/
tophys
(
r2
,
r2
)
rlwimi
r2
,
r3
,
22
,
20
,
29
/*
insert
next
10
bits
of
address
*/
lwz
r3
,
0
(
r2
)
/*
get
linux
-
style
pte
*/
andc
.
r1
,
r1
,
r3
/*
check
access
&
~
permission
*/
...
...
@@ -582,7 +581,6 @@ DataLoadTLBMiss:
lwz
r2
,
0
(
r2
)
/*
get
pmd
entry
*/
rlwinm
.
r2
,
r2
,
0
,
0
,
19
/*
extract
address
of
pte
page
*/
beq
-
DataAddressInvalid
/*
return
if
no
mapping
*/
tophys
(
r2
,
r2
)
rlwimi
r2
,
r3
,
22
,
20
,
29
/*
insert
next
10
bits
of
address
*/
lwz
r3
,
0
(
r2
)
/*
get
linux
-
style
pte
*/
andc
.
r1
,
r1
,
r3
/*
check
access
&
~
permission
*/
...
...
@@ -655,7 +653,6 @@ DataStoreTLBMiss:
lwz
r2
,
0
(
r2
)
/*
get
pmd
entry
*/
rlwinm
.
r2
,
r2
,
0
,
0
,
19
/*
extract
address
of
pte
page
*/
beq
-
DataAddressInvalid
/*
return
if
no
mapping
*/
tophys
(
r2
,
r2
)
rlwimi
r2
,
r3
,
22
,
20
,
29
/*
insert
next
10
bits
of
address
*/
lwz
r3
,
0
(
r2
)
/*
get
linux
-
style
pte
*/
andc
.
r1
,
r1
,
r3
/*
check
access
&
~
permission
*/
...
...
include/asm-ppc/spinlock.h
View file @
b6eba17c
...
...
@@ -65,7 +65,7 @@ static inline void _raw_spin_unlock(spinlock_t *lock)
lock
->
lock
=
0
;
}
#define _raw_spin_trylock(l
ock) (!test_and_set_bit(0,(lock)
))
#define _raw_spin_trylock(l
) (!test_and_set_bit(0,&(l)->lock
))
#else
...
...
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