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
8c85f5e8
Commit
8c85f5e8
authored
Apr 09, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: get rid of cacheable_memzero
parent
738ac52e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
50 deletions
+1
-50
arch/ppc64/kernel/htab.c
arch/ppc64/kernel/htab.c
+1
-1
arch/ppc64/lib/string.S
arch/ppc64/lib/string.S
+0
-48
include/asm-ppc64/system.h
include/asm-ppc64/system.h
+0
-1
No files found.
arch/ppc64/kernel/htab.c
View file @
8c85f5e8
...
...
@@ -130,7 +130,7 @@ htab_initialize(void)
RELOC
(
_SDR1
)
=
table
+
__ilog2
(
pteg_count
)
-
11
;
/* Initialize the HPT with no entries */
cacheable_memzero
((
void
*
)
table
,
htab_size_bytes
);
memset
((
void
*
)
table
,
0
,
htab_size_bytes
);
}
else
{
_htab_data
->
htab
=
NULL
;
RELOC
(
_SDR1
)
=
0
;
...
...
arch/ppc64/lib/string.S
View file @
8c85f5e8
...
...
@@ -120,54 +120,6 @@ _GLOBAL(strlen)
subf
r3
,
r3
,
r4
blr
/*
*
Use
dcbz
on
the
complete
cache
lines
in
the
destination
*
to
set
them
to
zero
.
This
requires
that
the
destination
*
area
is
cacheable
.
--
paulus
*/
_GLOBAL
(
cacheable_memzero
)
mr
r5
,
r4
li
r4
,
0
addi
r6
,
r3
,-
4
cmplwi
0
,
r5
,
4
blt
7
f
stwu
r4
,
4
(
r6
)
beqlr
andi
.
r0
,
r6
,
3
add
r5
,
r0
,
r5
subf
r6
,
r0
,
r6
clrlwi
r7
,
r6
,
32
-
LG_CACHELINE_BYTES
add
r8
,
r7
,
r5
srwi
r9
,
r8
,
LG_CACHELINE_BYTES
addic
.
r9
,
r9
,-
1
/*
total
number
of
complete
cachelines
*/
ble
2
f
xori
r0
,
r7
,
CACHELINE_MASK
&
~
3
srwi
.
r0
,
r0
,
2
beq
3
f
mtctr
r0
4
:
stwu
r4
,
4
(
r6
)
bdnz
4
b
3
:
mtctr
r9
li
r7
,
4
10
:
dcbz
r7
,
r6
addi
r6
,
r6
,
CACHELINE_BYTES
bdnz
10
b
clrlwi
r5
,
r8
,
32
-
LG_CACHELINE_BYTES
addi
r5
,
r5
,
4
2
:
srwi
r0
,
r5
,
2
mtctr
r0
bdz
6
f
1
:
stwu
r4
,
4
(
r6
)
bdnz
1
b
6
:
andi
.
r5
,
r5
,
3
7
:
cmpwi
0
,
r5
,
0
beqlr
mtctr
r5
addi
r6
,
r6
,
3
8
:
stbu
r4
,
1
(
r6
)
bdnz
8
b
blr
_GLOBAL
(
memset
)
rlwimi
r4
,
r4
,
8
,
16
,
23
rlwimi
r4
,
r4
,
16
,
0
,
15
...
...
include/asm-ppc64/system.h
View file @
8c85f5e8
...
...
@@ -78,7 +78,6 @@ extern void load_up_altivec(struct task_struct *);
extern
void
cvt_fd
(
float
*
from
,
double
*
to
,
unsigned
long
*
fpscr
);
extern
void
cvt_df
(
double
*
from
,
float
*
to
,
unsigned
long
*
fpscr
);
extern
int
abs
(
int
);
extern
void
cacheable_memzero
(
void
*
p
,
unsigned
int
nb
);
struct
device_node
;
...
...
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