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
af1ef733
Commit
af1ef733
authored
Feb 24, 2003
by
Mark A. Greer
Committed by
Tom Rini
Feb 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Fix our L2 / L3 cache updates for the bootloader.
parent
f592eb03
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
8 deletions
+60
-8
arch/ppc/boot/common/util.S
arch/ppc/boot/common/util.S
+46
-5
arch/ppc/boot/simple/head.S
arch/ppc/boot/simple/head.S
+12
-1
include/asm-ppc/processor.h
include/asm-ppc/processor.h
+2
-2
No files found.
arch/ppc/boot/common/util.S
View file @
af1ef733
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*
trini
@
mvista
.
com
*
trini
@
mvista
.
com
*
Derived
from
arch
/
ppc
/
boot
/
prep
/
head
.
S
(
Cort
Dougan
,
many
others
)
.
*
Derived
from
arch
/
ppc
/
boot
/
prep
/
head
.
S
(
Cort
Dougan
,
many
others
)
.
*
*
*
2001
(
c
)
MontaVista
,
Software
,
Inc
.
This
file
is
licensed
under
*
2001
-
2003
(
c
)
MontaVista
,
Software
,
Inc
.
This
file
is
licensed
under
*
the
terms
of
the
GNU
General
Public
License
version
2
.
This
program
*
the
terms
of
the
GNU
General
Public
License
version
2
.
This
program
*
is
licensed
"as is"
without
any
warranty
of
any
kind
,
whether
express
*
is
licensed
"as is"
without
any
warranty
of
any
kind
,
whether
express
*
or
implied
.
*
or
implied
.
...
@@ -98,7 +98,7 @@ _setup_L2CR:
...
@@ -98,7 +98,7 @@ _setup_L2CR:
isync
isync
mfspr
r8
,
L2CR
mfspr
r8
,
L2CR
rlwinm
r8
,
r8
,
0
,
1
,
31
rlwinm
r8
,
r8
,
0
,
1
,
31
oris
r8
,
r8
,
0x0020
oris
r8
,
r8
,
L2CR_L2I
@
h
sync
sync
isync
isync
mtspr
L2CR
,
r8
mtspr
L2CR
,
r8
...
@@ -106,11 +106,25 @@ _setup_L2CR:
...
@@ -106,11 +106,25 @@ _setup_L2CR:
isync
isync
/
*
Wait
for
the
invalidation
to
complete
*/
/
*
Wait
for
the
invalidation
to
complete
*/
1
:
mfspr
r8
,
L2CR
mfspr
r8
,
PVR
rlwinm
.
r9
,
r8
,
0
,
31
,
31
srwi
r8
,
r8
,
16
cmpli
cr0
,
r8
,
0x8000
/*
7450
*/
cmpli
cr1
,
r8
,
0x8001
/*
7455
*/
cmpli
cr2
,
r8
,
0x8002
/*
7457
*/
cror
4
*
cr0
+
eq
,
4
*
cr0
+
eq
,
4
*
cr1
+
eq
/*
Now
test
if
any
are
true
.
*/
cror
4
*
cr0
+
eq
,
4
*
cr0
+
eq
,
4
*
cr2
+
eq
bne
2
f
1
:
mfspr
r8
,
L2CR
/*
On
745
x
,
poll
L2I
bit
(
bit
10
)
*/
rlwinm
.
r9
,
r8
,
0
,
10
,
10
bne
1
b
bne
1
b
b
3
f
2
:
mfspr
r8
,
L2CR
/*
On
75
x
&
74
[
01
]
0
,
poll
L2IP
bit
(
bit
31
)
*/
rlwinm
.
r9
,
r8
,
0
,
31
,
31
bne
2
b
rlwinm
r8
,
r8
,
0
,
11
,
9
/*
Turn
off
L2I
bit
*/
3
:
rlwinm
r8
,
r8
,
0
,
11
,
9
/*
Turn
off
L2I
bit
*/
sync
sync
isync
isync
mtspr
L2CR
,
r8
mtspr
L2CR
,
r8
...
@@ -118,6 +132,33 @@ _setup_L2CR:
...
@@ -118,6 +132,33 @@ _setup_L2CR:
isync
isync
blr
blr
.
globl
_setup_L3CR
_setup_L3CR
:
/
*
Invalidate
/
disable
L3
cache
*/
sync
isync
mfspr
r8
,
L3CR
rlwinm
r8
,
r8
,
0
,
1
,
31
ori
r8
,
r8
,
L3CR_L3I
@
l
sync
isync
mtspr
L3CR
,
r8
sync
isync
/
*
Wait
for
the
invalidation
to
complete
*/
1
:
mfspr
r8
,
L3CR
rlwinm
.
r9
,
r8
,
0
,
21
,
21
bne
1
b
rlwinm
r8
,
r8
,
0
,
22
,
20
/*
Turn
off
L3I
bit
*/
sync
isync
mtspr
L3CR
,
r8
sync
isync
blr
/*
/*
*
Delay
for
a
number
of
microseconds
*
Delay
for
a
number
of
microseconds
...
...
arch/ppc/boot/simple/head.S
View file @
af1ef733
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
trini
@
mvista
.
com
*
trini
@
mvista
.
com
*
Derived
from
arch
/
ppc
/
boot
/
prep
/
head
.
S
(
Cort
Dougan
,
many
others
)
.
*
Derived
from
arch
/
ppc
/
boot
/
prep
/
head
.
S
(
Cort
Dougan
,
many
others
)
.
*
*
*
2001
(
c
)
MontaVista
,
Software
,
Inc
.
This
file
is
licensed
under
*
2001
-
2003
(
c
)
MontaVista
,
Software
,
Inc
.
This
file
is
licensed
under
*
the
terms
of
the
GNU
General
Public
License
version
2
.
This
program
*
the
terms
of
the
GNU
General
Public
License
version
2
.
This
program
*
is
licensed
"as is"
without
any
warranty
of
any
kind
,
whether
express
*
is
licensed
"as is"
without
any
warranty
of
any
kind
,
whether
express
*
or
implied
.
*
or
implied
.
...
@@ -74,6 +74,17 @@ start_:
...
@@ -74,6 +74,17 @@ start_:
#if defined(CONFIG_FORCE) || defined(CONFIG_K2) \
#if defined(CONFIG_FORCE) || defined(CONFIG_K2) \
|
|
defined
(
CONFIG_EV64260
)
||
defined
(
CONFIG_PAL4
)
|
|
defined
(
CONFIG_EV64260
)
||
defined
(
CONFIG_PAL4
)
bl
_setup_L2CR
bl
_setup_L2CR
/
*
If
745
x
,
turn
off
L3CR
as
well
*/
mfspr
r8
,
PVR
srwi
r8
,
r8
,
16
cmpli
cr0
,
r8
,
0x8000
/*
7450
*/
cmpli
cr1
,
r8
,
0x8001
/*
7455
*/
cmpli
cr2
,
r8
,
0x8002
/*
7457
*/
cror
4
*
cr0
+
eq
,
4
*
cr0
+
eq
,
4
*
cr1
+
eq
/*
Now
test
if
any
are
true
.
*/
cror
4
*
cr0
+
eq
,
4
*
cr0
+
eq
,
4
*
cr2
+
eq
beql
_setup_L3CR
#endif
#endif
#endif
#endif
...
...
include/asm-ppc/processor.h
View file @
af1ef733
...
@@ -469,8 +469,8 @@
...
@@ -469,8 +469,8 @@
#define ICMP SPRN_ICMP
/* Instruction TLB Compare Register */
#define ICMP SPRN_ICMP
/* Instruction TLB Compare Register */
#define IMISS SPRN_IMISS
/* Instruction TLB Miss Register */
#define IMISS SPRN_IMISS
/* Instruction TLB Miss Register */
#define IMMR SPRN_IMMR
/* PPC 860/821 Internal Memory Map Register */
#define IMMR SPRN_IMMR
/* PPC 860/821 Internal Memory Map Register */
#define L2CR SPRN_L2CR
/*
PPC 750 L2
control register */
#define L2CR SPRN_L2CR
/*
Classic PPC L2 cache
control register */
#define L3CR SPRN_L3CR
/* PPC 7450 L3 C
ache control register */
#define L3CR SPRN_L3CR
/* PPC 745x L3 c
ache control register */
#define LR SPRN_LR
#define LR SPRN_LR
#define PVR SPRN_PVR
/* Processor Version */
#define PVR SPRN_PVR
/* Processor Version */
#define RPA SPRN_RPA
/* Required Physical Address Register */
#define RPA SPRN_RPA
/* Required Physical Address Register */
...
...
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