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
3682d115
Commit
3682d115
authored
Jun 14, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: updates for 2.5.21
parent
fbc17786
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
arch/ppc64/kernel/Makefile
arch/ppc64/kernel/Makefile
+5
-0
arch/ppc64/kernel/head.S
arch/ppc64/kernel/head.S
+2
-0
arch/ppc64/kernel/htab.c
arch/ppc64/kernel/htab.c
+6
-5
include/asm-ppc64/cache.h
include/asm-ppc64/cache.h
+2
-1
No files found.
arch/ppc64/kernel/Makefile
View file @
3682d115
...
...
@@ -45,6 +45,11 @@ include $(TOPDIR)/Rules.make
#
head.o
:
head.S ppc_defs.h
misc.o
:
misc.S ppc_defs.h
entry.o
:
entry.S ppc_defs.h
hvCall.o
:
hvCall.S ppc_defs.h
pSeries_hvCall.o
:
pSeries_hvCall.S ppc_defs.h
sys32.o
:
sys32.S ppc_defs.h
ppc_defs.h
:
mk_defs.c ppc_defs.head
\
$(TOPDIR)/include/asm/mmu.h
\
...
...
arch/ppc64/kernel/head.S
View file @
3682d115
...
...
@@ -853,11 +853,13 @@ _GLOBAL(do_stab_bolted)
ld
r22
,
8
(
r21
)
/*
get
SRR1
*/
andi
.
r22
,
r22
,
MSR_PR
/*
check
if
from
user
*/
bne
+
stab_bolted_user_return
/*
from
user
,
send
the
error
on
up
*/
#if 0
li
r3
,
0
#ifdef CONFIG_XMON
bl
.
xmon
#endif
1
:
b
1
b
#endif
2
:
/
*
(((
ea
>>
28
)
&
0x1fff
)
<<
15
)
|
(
ea
>>
60
)
*/
mfspr
r21
,
DAR
...
...
arch/ppc64/kernel/htab.c
View file @
3682d115
...
...
@@ -210,7 +210,7 @@ int __hash_page(unsigned long ea, unsigned long access, unsigned long vsid,
* If no pte found or not present, send the problem up to
* do_page_fault
*/
if
(
!
ptep
||
!
pte_present
(
*
ptep
))
if
(
unlikely
(
!
ptep
||
!
pte_present
(
*
ptep
)
))
return
1
;
/*
...
...
@@ -218,7 +218,7 @@ int __hash_page(unsigned long ea, unsigned long access, unsigned long vsid,
* prevented then send the problem up to do_page_fault.
*/
access
|=
_PAGE_PRESENT
;
if
(
access
&
~
(
pte_val
(
*
ptep
)))
if
(
unlikely
(
access
&
~
(
pte_val
(
*
ptep
)
)))
return
1
;
/*
...
...
@@ -246,7 +246,8 @@ int __hash_page(unsigned long ea, unsigned long access, unsigned long vsid,
#define PPC64_HWNOEXEC (1 << 2)
/* We do lazy icache flushing on POWER4 */
if
(
__is_processor
(
PV_POWER4
)
&&
pfn_valid
(
pte_pfn
(
new_pte
)))
{
if
(
unlikely
(
__is_processor
(
PV_POWER4
)
&&
pfn_valid
(
pte_pfn
(
new_pte
))))
{
struct
page
*
page
=
pte_page
(
new_pte
);
/* page is dirty */
...
...
@@ -262,7 +263,7 @@ int __hash_page(unsigned long ea, unsigned long access, unsigned long vsid,
}
/* Check if pte already has an hpte (case 2) */
if
(
pte_val
(
old_pte
)
&
_PAGE_HASHPTE
)
{
if
(
unlikely
(
pte_val
(
old_pte
)
&
_PAGE_HASHPTE
)
)
{
/* There MIGHT be an HPTE for this pte */
unsigned
long
hash
,
slot
,
secondary
;
...
...
@@ -282,7 +283,7 @@ int __hash_page(unsigned long ea, unsigned long access, unsigned long vsid,
*
ptep
=
new_pte
;
}
if
(
!
(
pte_val
(
old_pte
)
&
_PAGE_HASHPTE
))
{
if
(
likely
(
!
(
pte_val
(
old_pte
)
&
_PAGE_HASHPTE
)
))
{
/* XXX fix large pte flag */
unsigned
long
hash
=
hpt_hash
(
vpn
,
0
);
unsigned
long
hpte_group
;
...
...
include/asm-ppc64/cache.h
View file @
3682d115
...
...
@@ -8,6 +8,7 @@
#define __ARCH_PPC64_CACHE_H
/* bytes per L1 cache line */
#define L1_CACHE_BYTES 128
#define L1_CACHE_SHIFT 7
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#endif
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