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
c7fb9c90
Commit
c7fb9c90
authored
Jul 25, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up more x86 MM init details after splitup
parent
edcc875f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
arch/i386/mm/init.c
arch/i386/mm/init.c
+1
-1
arch/i386/mm/pgtable.c
arch/i386/mm/pgtable.c
+4
-4
No files found.
arch/i386/mm/init.c
View file @
c7fb9c90
...
@@ -249,9 +249,9 @@ static void __init pagetable_init (void)
...
@@ -249,9 +249,9 @@ static void __init pagetable_init (void)
{
{
unsigned
long
vaddr
;
unsigned
long
vaddr
;
pgd_t
*
pgd_base
=
swapper_pg_dir
;
pgd_t
*
pgd_base
=
swapper_pg_dir
;
int
i
;
#if CONFIG_X86_PAE
#if CONFIG_X86_PAE
int
i
;
/* Init entries of the first-level page table to the zero page */
/* Init entries of the first-level page table to the zero page */
for
(
i
=
0
;
i
<
PTRS_PER_PGD
;
i
++
)
for
(
i
=
0
;
i
<
PTRS_PER_PGD
;
i
++
)
set_pgd
(
pgd_base
+
i
,
__pgd
(
__pa
(
empty_zero_page
)
|
_PAGE_PRESENT
));
set_pgd
(
pgd_base
+
i
,
__pgd
(
__pa
(
empty_zero_page
)
|
_PAGE_PRESENT
));
...
...
arch/i386/mm/pgtable.c
View file @
c7fb9c90
...
@@ -52,7 +52,7 @@ void show_mem(void)
...
@@ -52,7 +52,7 @@ void show_mem(void)
* Associate a virtual page frame with a given physical page frame
* Associate a virtual page frame with a given physical page frame
* and protection flags for that frame.
* and protection flags for that frame.
*/
*/
static
void
set_pte_p
hys
(
unsigned
long
vaddr
,
unsigned
long
phys
,
pgprot_t
flags
)
static
void
set_pte_p
fn
(
unsigned
long
vaddr
,
unsigned
long
pfn
,
pgprot_t
flags
)
{
{
pgd_t
*
pgd
;
pgd_t
*
pgd
;
pmd_t
*
pmd
;
pmd_t
*
pmd
;
...
@@ -69,8 +69,8 @@ static void set_pte_phys (unsigned long vaddr, unsigned long phys, pgprot_t flag
...
@@ -69,8 +69,8 @@ static void set_pte_phys (unsigned long vaddr, unsigned long phys, pgprot_t flag
return
;
return
;
}
}
pte
=
pte_offset_kernel
(
pmd
,
vaddr
);
pte
=
pte_offset_kernel
(
pmd
,
vaddr
);
/* <p
hys
,flags> stored as-is, to permit clearing entries */
/* <p
fn
,flags> stored as-is, to permit clearing entries */
set_pte
(
pte
,
pfn_pte
(
p
hys
>>
PAGE_SHIFT
,
flags
));
set_pte
(
pte
,
pfn_pte
(
p
fn
,
flags
));
/*
/*
* It's enough to flush this one mapping.
* It's enough to flush this one mapping.
...
@@ -87,7 +87,7 @@ void __set_fixmap (enum fixed_addresses idx, unsigned long phys, pgprot_t flags)
...
@@ -87,7 +87,7 @@ void __set_fixmap (enum fixed_addresses idx, unsigned long phys, pgprot_t flags)
BUG
();
BUG
();
return
;
return
;
}
}
set_pte_p
hys
(
address
,
phys
,
flags
);
set_pte_p
fn
(
address
,
phys
>>
PAGE_SHIFT
,
flags
);
}
}
pte_t
*
pte_alloc_one_kernel
(
struct
mm_struct
*
mm
,
unsigned
long
address
)
pte_t
*
pte_alloc_one_kernel
(
struct
mm_struct
*
mm
,
unsigned
long
address
)
...
...
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