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
2b6cf10a
Commit
2b6cf10a
authored
Mar 12, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: add large page bit, use lwsync instead of eieio for spinlock
release.
parent
3c0d49b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/asm-ppc64/mmu.h
include/asm-ppc64/mmu.h
+1
-1
include/asm-ppc64/spinlock.h
include/asm-ppc64/spinlock.h
+3
-3
No files found.
include/asm-ppc64/mmu.h
View file @
2b6cf10a
...
...
@@ -108,7 +108,7 @@ typedef struct {
unsigned
long
:
2
;
/* Software use */
unsigned
long
bolted
:
1
;
/* HPTE is "bolted" */
unsigned
long
:
1
;
/* Software use */
unsigned
long
:
1
;
/* Reserved
*/
unsigned
long
l
:
1
;
/* Virtual page is large (L=1) or 4 KB (L=0)
*/
unsigned
long
h
:
1
;
/* Hash function identifier */
unsigned
long
v
:
1
;
/* Valid (v=1) or invalid (v=0) */
}
Hpte_dword0
;
...
...
include/asm-ppc64/spinlock.h
View file @
2b6cf10a
...
...
@@ -67,7 +67,7 @@ static __inline__ void _raw_spin_lock(spinlock_t *lock)
static
__inline__
void
_raw_spin_unlock
(
spinlock_t
*
lock
)
{
__asm__
__volatile__
(
"
eieio
# spin_unlock"
:
:
:
"memory"
);
__asm__
__volatile__
(
"
lwsync
# spin_unlock"
:
:
:
"memory"
);
lock
->
lock
=
0
;
}
...
...
@@ -137,7 +137,7 @@ static __inline__ void _raw_read_unlock(rwlock_t *rw)
unsigned
int
tmp
;
__asm__
__volatile__
(
"
eieio
# read_unlock
\n
\
"
lwsync
# read_unlock
\n
\
1: lwarx %0,0,%1
\n
\
addic %0,%0,-1
\n
\
stwcx. %0,0,%1
\n
\
...
...
@@ -192,7 +192,7 @@ static __inline__ void _raw_write_lock(rwlock_t *rw)
static
__inline__
void
_raw_write_unlock
(
rwlock_t
*
rw
)
{
__asm__
__volatile__
(
"
eieio
# write_unlock"
:
:
:
"memory"
);
__asm__
__volatile__
(
"
lwsync
# write_unlock"
:
:
:
"memory"
);
rw
->
lock
=
0
;
}
...
...
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