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
6551182b
Commit
6551182b
authored
May 10, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: minor cosmetic changes, eliminate compile warnings
parent
f38e3c34
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
arch/ppc/mm/mmu_context.c
arch/ppc/mm/mmu_context.c
+5
-2
include/asm-ppc/cacheflush.h
include/asm-ppc/cacheflush.h
+2
-2
include/asm-ppc/tlbflush.h
include/asm-ppc/tlbflush.h
+3
-3
No files found.
arch/ppc/mm/mmu_context.c
View file @
6551182b
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include <linux/init.h>
#include <linux/init.h>
#include <asm/mmu_context.h>
#include <asm/mmu_context.h>
#include <asm/tlbflush.h>
mm_context_t
next_mmu_context
;
mm_context_t
next_mmu_context
;
unsigned
long
context_map
[
LAST_CONTEXT
/
BITS_PER_LONG
+
1
];
unsigned
long
context_map
[
LAST_CONTEXT
/
BITS_PER_LONG
+
1
];
...
@@ -46,7 +47,8 @@ void steal_context(void);
...
@@ -46,7 +47,8 @@ void steal_context(void);
/*
/*
* Initialize the context management stuff.
* Initialize the context management stuff.
*/
*/
void
__init
mmu_context_init
(
void
)
void
__init
mmu_context_init
(
void
)
{
{
/*
/*
* Some processors have too few contexts to reserve one for
* Some processors have too few contexts to reserve one for
...
@@ -74,7 +76,8 @@ void __init mmu_context_init(void)
...
@@ -74,7 +76,8 @@ void __init mmu_context_init(void)
* place to implement an LRU scheme if anyone was motivated to do it.
* place to implement an LRU scheme if anyone was motivated to do it.
* -- paulus
* -- paulus
*/
*/
void
steal_context
(
void
)
void
steal_context
(
void
)
{
{
struct
mm_struct
*
mm
;
struct
mm_struct
*
mm
;
...
...
include/asm-ppc/cacheflush.h
View file @
6551182b
...
@@ -37,5 +37,5 @@ extern void flush_icache_user_range(struct vm_area_struct *vma,
...
@@ -37,5 +37,5 @@ extern void flush_icache_user_range(struct vm_area_struct *vma,
extern
void
__flush_dcache_icache
(
void
*
page_va
);
extern
void
__flush_dcache_icache
(
void
*
page_va
);
extern
void
__flush_dcache_icache_phys
(
unsigned
long
physaddr
);
extern
void
__flush_dcache_icache_phys
(
unsigned
long
physaddr
);
#endif
_PPC_CACHEFLUSH_H
#endif
/* _PPC_CACHEFLUSH_H */
#endif
__KERNEL__
#endif
/* __KERNEL__ */
include/asm-ppc/tlbflush.h
View file @
6551182b
...
@@ -30,7 +30,7 @@ static inline void flush_tlb_mm(struct mm_struct *mm)
...
@@ -30,7 +30,7 @@ static inline void flush_tlb_mm(struct mm_struct *mm)
static
inline
void
flush_tlb_page
(
struct
vm_area_struct
*
vma
,
static
inline
void
flush_tlb_page
(
struct
vm_area_struct
*
vma
,
unsigned
long
vmaddr
)
unsigned
long
vmaddr
)
{
_tlbie
(
vmaddr
);
}
{
_tlbie
(
vmaddr
);
}
static
inline
void
flush_tlb_range
(
struct
mm_struct
*
mm
,
static
inline
void
flush_tlb_range
(
struct
vm_area_struct
*
vma
,
unsigned
long
start
,
unsigned
long
end
)
unsigned
long
start
,
unsigned
long
end
)
{
__tlbia
();
}
{
__tlbia
();
}
static
inline
void
flush_tlb_kernel_range
(
unsigned
long
start
,
static
inline
void
flush_tlb_kernel_range
(
unsigned
long
start
,
...
@@ -86,5 +86,5 @@ static inline void flush_tlb_pgtables(struct mm_struct *mm,
...
@@ -86,5 +86,5 @@ static inline void flush_tlb_pgtables(struct mm_struct *mm,
{
{
}
}
#endif
_PPC_TLBFLUSH_H
#endif
/* _PPC_TLBFLUSH_H */
#endif
__KERNEL__
#endif
/*__KERNEL__ */
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