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
511ffaa3
Commit
511ffaa3
authored
Sep 22, 2003
by
Tom Rini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Minor cleanups.
parent
d64f6036
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
25 additions
and
48 deletions
+25
-48
arch/ppc/boot/common/util.S
arch/ppc/boot/common/util.S
+1
-1
arch/ppc/kernel/entry.S
arch/ppc/kernel/entry.S
+1
-1
arch/ppc/kernel/head.S
arch/ppc/kernel/head.S
+1
-1
arch/ppc/kernel/head_44x.S
arch/ppc/kernel/head_44x.S
+1
-1
arch/ppc/kernel/head_4xx.S
arch/ppc/kernel/head_4xx.S
+1
-1
arch/ppc/kernel/idle_6xx.S
arch/ppc/kernel/idle_6xx.S
+9
-18
arch/ppc/kernel/l2cr.S
arch/ppc/kernel/l2cr.S
+2
-5
arch/ppc/lib/locks.c
arch/ppc/lib/locks.c
+3
-6
arch/ppc/mm/hashtable.S
arch/ppc/mm/hashtable.S
+6
-12
arch/ppc/platforms/gemini_prom.S
arch/ppc/platforms/gemini_prom.S
+0
-2
No files found.
arch/ppc/boot/common/util.S
View file @
511ffaa3
...
...
@@ -198,7 +198,7 @@ udelay:
*
timebase_period_ns
defaults
to
60
(
16
.6
MHz
)
*/
lis
r5
,
timebase_period_ns
@
ha
lwz
r5
,
timebase_period_ns
@
l
(
r5
)
add
i
r4
,
r4
,
r5
add
r4
,
r4
,
r5
addi
r4
,
r4
,-
1
divw
r4
,
r4
,
r5
/*
BUS
ticks
*/
1
:
mftbu
r5
...
...
arch/ppc/kernel/entry.S
View file @
511ffaa3
...
...
@@ -844,7 +844,7 @@ _GLOBAL(enter_rtas)
LOAD_MSR_KERNEL
(
r0
,
MSR_KERNEL
)
SYNC
/*
disable
interrupts
so
SRR0
/
1
*/
MTMSRD
(
r0
)
/*
don
't get trashed */
li
r9
,
MSR_
li
r9
,
MSR_
KERNEL
&
~
(
MSR_IR
|
MSR_DR
)
mtlr
r6
CLR_TOP32
(
r7
)
mtspr
SPRG2
,
r7
...
...
arch/ppc/kernel/head.S
View file @
511ffaa3
...
...
@@ -276,7 +276,7 @@ __secondary_hold:
stw
r1
,
GPR1
(
r11
)
; \
stw
r1
,
0
(
r11
)
; \
tovirt
(
r1
,
r11
)
; /* set new kernel sp */ \
li
r10
,
MSR_
; /* can now take exceptions again
*/ \
li
r10
,
MSR_
KERNEL
&
~
(
MSR_IR
|
MSR_DR
)
; /* can take exceptions
*/ \
MTMSRD
(
r10
)
; /* (except for mach check in rtas) */ \
stw
r0
,
GPR0
(
r11
)
; \
SAVE_4GPRS
(3,
r11
)
; \
...
...
arch/ppc/kernel/head_44x.S
View file @
511ffaa3
...
...
@@ -974,7 +974,7 @@ _GLOBAL(giveup_fpu)
*/
_GLOBAL
(
abort
)
mfspr
r13
,
SPRN_DBCR0
oris
r13
,
r13
,
DBCR
_RST
(
DBCR_RST_SYSTEM
)
@
h
oris
r13
,
r13
,
DBCR
0_RST_SYSTEM
@
h
mtspr
SPRN_DBCR0
,
r13
_GLOBAL
(
set_context
)
...
...
arch/ppc/kernel/head_4xx.S
View file @
511ffaa3
...
...
@@ -983,7 +983,7 @@ initial_mmu:
_GLOBAL
(
abort
)
mfspr
r13
,
SPRN_DBCR0
oris
r13
,
r13
,
DBCR
_RST
(
DBCR_RST_SYSTEM
)
@
h
oris
r13
,
r13
,
DBCR
0_RST_SYSTEM
@
h
mtspr
SPRN_DBCR0
,
r13
_GLOBAL
(
set_context
)
...
...
arch/ppc/kernel/idle_6xx.S
View file @
511ffaa3
...
...
@@ -32,8 +32,7 @@
*
values
for
some
CPU
specific
registers
.
Called
with
r24
*
containing
CPU
number
and
r3
reloc
offset
*/
.
globl
init_idle_6xx
init_idle_6xx
:
_GLOBAL
(
init_idle_6xx
)
BEGIN_FTR_SECTION
mfspr
r4
,
SPRN_HID0
rlwinm
r4
,
r4
,
0
,
10
,
8
/*
Clear
NAP
*/
...
...
@@ -61,8 +60,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_DUAL_PLL_750FX)
*
split
into
several
functions
&
changing
the
function
pointer
*
depending
on
the
various
features
.
*/
.
globl
ppc6xx_idle
ppc6xx_idle
:
_GLOBAL
(
ppc6xx_idle
)
/
*
Check
if
we
can
nap
or
doze
,
put
HID0
mask
in
r3
*/
lis
r3
,
0
...
...
@@ -173,8 +171,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
*
we
are
called
with
DR
/
IR
still
off
and
r2
containing
physical
*
address
of
current
.
*/
.
globl
power_save_6xx_restore
power_save_6xx_restore
:
_GLOBAL
(
power_save_6xx_restore
)
mfspr
r11
,
SPRN_HID0
rlwinm
.
r11
,
r11
,
0
,
10
,
8
/*
Clear
NAP
&
copy
NAP
bit
!
state
to
cr1
EQ
*/
cror
4
*
cr1
+
eq
,
4
*
cr0
+
eq
,
4
*
cr0
+
eq
...
...
@@ -217,26 +214,20 @@ END_FTR_SECTION_IFSET(CPU_FTR_DUAL_PLL_750FX)
.
data
.
globl
nap_save_msscr0
nap_save_msscr0
:
_GLOBAL
(
nap_save_msscr0
)
.
space
4
*
NR_CPUS
.
globl
nap_save_hid1
nap_save_hid1
:
_GLOBAL
(
nap_save_hid1
)
.
space
4
*
NR_CPUS
.
globl
powersave_nap
powersave_nap
:
_GLOBAL
(
powersave_nap
)
.
long
0
.
globl
powersave_lowspeed
powersave_lowspeed
:
_GLOBAL
(
powersave_lowspeed
)
.
long
0
#ifdef DEBUG
.
globl
nap_enter_count
nap_enter_count
:
_GLOBAL
(
nap_enter_count
)
.
space
4
.
globl
nap_return_count
nap_return_count
:
_GLOBAL
(
nap_return_count
)
.
space
4
#endif
arch/ppc/kernel/l2cr.S
View file @
511ffaa3
...
...
@@ -387,9 +387,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_L3CR)
*
clobbers
r0
,
r3
,
ctr
,
cr0
*
*/
.
globl
__flush_disable_L1
__flush_disable_L1
:
_GLOBAL
(
__flush_disable_L1
)
/
*
Stop
pending
alitvec
streams
and
memory
accesses
*/
BEGIN_FTR_SECTION
DSSALL
...
...
@@ -435,8 +433,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
*
*
clobbers
r3
*/
.
globl
__inval_enable_L1
__inval_enable_L1
:
_GLOBAL
(
__inval_enable_L1
)
/
*
Enable
and
then
Flash
inval
the
instruction
&
data
cache
*/
mfspr
r3
,
SPRN_HID0
ori
r3
,
r3
,
HID0_ICE|HID0_ICFI|HID0_DCE
|
HID0_DCI
...
...
arch/ppc/lib/locks.c
View file @
511ffaa3
...
...
@@ -4,14 +4,11 @@
* Written by Cort Dougan (cort@cs.nmt.edu)
*/
#include <linux/kernel.h>
#include <linux/config.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <asm/processor.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/ppc_asm.h>
#include <asm/smp.h>
#ifdef CONFIG_DEBUG_SPINLOCK
...
...
arch/ppc/mm/hashtable.S
View file @
511ffaa3
...
...
@@ -49,8 +49,7 @@
*
Uses
r0
,
r3
-
r8
,
ctr
,
lr
.
*/
.
text
.
globl
hash_page
hash_page
:
_GLOBAL
(
hash_page
)
#ifdef CONFIG_PPC64BRIDGE
mfmsr
r0
clrldi
r0
,
r0
,
1
/*
make
sure
it
's in 32-bit mode */
...
...
@@ -337,8 +336,7 @@ _GLOBAL(create_hpte)
SET_V
(
r5
)
/*
set
V
(
valid
)
bit
*/
/
*
Get
the
address
of
the
primary
PTE
group
in
the
hash
table
(
r3
)
*/
.
globl
hash_page_patch_A
hash_page_patch_A
:
_GLOBAL
(
hash_page_patch_A
)
addis
r0
,
r7
,
Hash_base
@
h
/*
base
address
of
hash
table
*/
rlwimi
r0
,
r3
,
LG_PTEG_SIZE
,
HASH_LEFT
,
HASH_RIGHT
/*
VSID
->
hash
*/
rlwinm
r3
,
r4
,
20
+
LG_PTEG_SIZE
,
HASH_LEFT
,
HASH_RIGHT
/*
PI
->
hash
*/
...
...
@@ -368,8 +366,7 @@ hash_page_patch_A:
/
*
Search
the
secondary
PTEG
for
a
matching
PTE
*/
ori
r5
,
r5
,
PTE_H
/*
set
H
(
secondary
hash
)
bit
*/
.
globl
hash_page_patch_B
hash_page_patch_B
:
_GLOBAL
(
hash_page_patch_B
)
xoris
r4
,
r3
,
Hash_msk
>>
16
/*
compute
secondary
hash
*/
xori
r4
,
r4
,(-
PTEG_SIZE
&
0xffff
)
addi
r4
,
r4
,-
PTE_SIZE
...
...
@@ -396,8 +393,7 @@ hash_page_patch_B:
/
*
Search
the
secondary
PTEG
for
an
empty
slot
*/
ori
r5
,
r5
,
PTE_H
/*
set
H
(
secondary
hash
)
bit
*/
.
globl
hash_page_patch_C
hash_page_patch_C
:
_GLOBAL
(
hash_page_patch_C
)
xoris
r4
,
r3
,
Hash_msk
>>
16
/*
compute
secondary
hash
*/
xori
r4
,
r4
,(-
PTEG_SIZE
&
0xffff
)
addi
r4
,
r4
,-
PTE_SIZE
...
...
@@ -562,8 +558,7 @@ _GLOBAL(flush_hash_pages)
bne
-
33
b
/
*
Get
the
address
of
the
primary
PTE
group
in
the
hash
table
(
r3
)
*/
.
globl
flush_hash_patch_A
flush_hash_patch_A
:
_GLOBAL
(
flush_hash_patch_A
)
addis
r8
,
r7
,
Hash_base
@
h
/*
base
address
of
hash
table
*/
rlwimi
r8
,
r3
,
LG_PTEG_SIZE
,
HASH_LEFT
,
HASH_RIGHT
/*
VSID
->
hash
*/
rlwinm
r0
,
r4
,
20
+
LG_PTEG_SIZE
,
HASH_LEFT
,
HASH_RIGHT
/*
PI
->
hash
*/
...
...
@@ -581,8 +576,7 @@ flush_hash_patch_A:
/
*
Search
the
secondary
PTEG
for
a
matching
PTE
*/
ori
r11
,
r11
,
PTE_H
/*
set
H
(
secondary
hash
)
bit
*/
li
r0
,
8
/*
PTEs
/
group
*/
.
globl
flush_hash_patch_B
flush_hash_patch_B
:
_GLOBAL
(
flush_hash_patch_B
)
xoris
r12
,
r8
,
Hash_msk
>>
16
/*
compute
secondary
hash
*/
xori
r12
,
r12
,(-
PTEG_SIZE
&
0xffff
)
addi
r12
,
r12
,-
PTE_SIZE
...
...
arch/ppc/platforms/gemini_prom.S
View file @
511ffaa3
...
...
@@ -14,8 +14,6 @@
#include <platforms/gemini.h>
#include <asm/ppc_asm.h>
#define HID0_ABE (1<<3)
/*
*
On
750
's the MMU is on when Linux is booted, so we need to clear out the
*
bootloader
's BAT settings, make sure we'
re
in
supervisor
state
(
gotcha
!),
...
...
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