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
nexedi
linux
Commits
4f26a691
Commit
4f26a691
authored
Apr 06, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass the next task 'mm' struct to the CPU mm switching code (so
we can access data in mm->context.)
parent
76695841
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
include/asm-arm/cpu-multi26.h
include/asm-arm/cpu-multi26.h
+1
-1
include/asm-arm/cpu-multi32.h
include/asm-arm/cpu-multi32.h
+4
-5
include/asm-arm/cpu-single.h
include/asm-arm/cpu-single.h
+3
-4
include/asm-arm/mmu_context.h
include/asm-arm/mmu_context.h
+1
-1
No files found.
include/asm-arm/cpu-multi26.h
View file @
4f26a691
...
...
@@ -40,7 +40,7 @@ extern const struct processor arm3_processor_functions;
#define cpu_proc_init() processor._proc_init()
#define cpu_proc_fin() processor._proc_fin()
#define cpu_do_idle() do { } while (0)
#define cpu_switch_mm(pgd,
tsk
) processor._set_pgd(pgd)
#define cpu_switch_mm(pgd,
mm
) processor._set_pgd(pgd)
#define cpu_xchg_1(x,ptr) processor._xchg_1(x,ptr)
#define cpu_xchg_4(x,ptr) processor._xchg_4(x,ptr)
...
...
include/asm-arm/cpu-multi32.h
View file @
4f26a691
...
...
@@ -12,8 +12,7 @@
#include <asm/memory.h>
#include <asm/page.h>
/* forward-declare task_struct */
struct
task_struct
;
struct
mm_struct
;
/*
* Don't change this structure - ASM code
...
...
@@ -93,7 +92,7 @@ extern struct processor {
/*
* Set the page table
*/
void
(
*
set_pgd
)(
unsigned
long
pgd_phys
);
void
(
*
set_pgd
)(
unsigned
long
pgd_phys
,
struct
mm_struct
*
mm
);
/*
* Set a PMD (handling IMP bit 4)
*/
...
...
@@ -126,11 +125,11 @@ extern const struct processor sa110_processor_functions;
#define cpu_icache_invalidate_range(s,e) processor.icache.invalidate_range(s,e)
#define cpu_icache_invalidate_page(vp) processor.icache.invalidate_page(vp)
#define cpu_set_pgd(pgd
) processor.pgtable.set_pgd(pgd
)
#define cpu_set_pgd(pgd
,mm) processor.pgtable.set_pgd(pgd,mm
)
#define cpu_set_pmd(pmdp, pmd) processor.pgtable.set_pmd(pmdp, pmd)
#define cpu_set_pte(ptep, pte) processor.pgtable.set_pte(ptep, pte)
#define cpu_switch_mm(pgd,
tsk) cpu_set_pgd(__virt_to_phys((unsigned long)(pgd))
)
#define cpu_switch_mm(pgd,
mm) cpu_set_pgd(__virt_to_phys((unsigned long)(pgd)),mm
)
#define cpu_get_pgd() \
({ \
...
...
include/asm-arm/cpu-single.h
View file @
4f26a691
...
...
@@ -44,8 +44,7 @@
#include <asm/memory.h>
#include <asm/page.h>
/* forward declare task_struct */
struct
task_struct
;
struct
mm_struct
;
/* declare all the functions as extern */
extern
void
cpu_data_abort
(
unsigned
long
pc
);
...
...
@@ -65,13 +64,13 @@ extern void cpu_dcache_clean_entry(unsigned long address);
extern
void
cpu_icache_invalidate_range
(
unsigned
long
start
,
unsigned
long
end
);
extern
void
cpu_icache_invalidate_page
(
void
*
virt_page
);
extern
void
cpu_set_pgd
(
unsigned
long
pgd_phys
);
extern
void
cpu_set_pgd
(
unsigned
long
pgd_phys
,
struct
mm_struct
*
mm
);
extern
void
cpu_set_pmd
(
pmd_t
*
pmdp
,
pmd_t
pmd
);
extern
void
cpu_set_pte
(
pte_t
*
ptep
,
pte_t
pte
);
extern
volatile
void
cpu_reset
(
unsigned
long
addr
);
#define cpu_switch_mm(pgd,
tsk) cpu_set_pgd(__virt_to_phys((unsigned long)(pgd))
)
#define cpu_switch_mm(pgd,
mm) cpu_set_pgd(__virt_to_phys((unsigned long)(pgd)),mm
)
#define cpu_get_pgd() \
({ \
...
...
include/asm-arm/mmu_context.h
View file @
4f26a691
...
...
@@ -43,7 +43,7 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
struct
task_struct
*
tsk
,
unsigned
int
cpu
)
{
if
(
prev
!=
next
)
cpu_switch_mm
(
next
->
pgd
,
tsk
);
cpu_switch_mm
(
next
->
pgd
,
next
);
}
#define activate_mm(prev, next) \
...
...
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