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
84fd089a
Commit
84fd089a
authored
Feb 07, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete duplicate copy of fixrange_init.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
cc26b815
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
33 deletions
+10
-33
arch/mips/mm/init.c
arch/mips/mm/init.c
+2
-2
arch/mips/mm/pgtable-32.c
arch/mips/mm/pgtable-32.c
+1
-31
include/asm-mips/fixmap.h
include/asm-mips/fixmap.h
+7
-0
No files found.
arch/mips/mm/init.c
View file @
84fd089a
...
@@ -96,8 +96,8 @@ static void __init kmap_init(void)
...
@@ -96,8 +96,8 @@ static void __init kmap_init(void)
kmap_prot
=
PAGE_KERNEL
;
kmap_prot
=
PAGE_KERNEL
;
}
}
#ifdef CONFIG_
64
BIT
#ifdef CONFIG_
32
BIT
static
void
__init
fixrange_init
(
unsigned
long
start
,
unsigned
long
end
,
void
__init
fixrange_init
(
unsigned
long
start
,
unsigned
long
end
,
pgd_t
*
pgd_base
)
pgd_t
*
pgd_base
)
{
{
pgd_t
*
pgd
;
pgd_t
*
pgd
;
...
...
arch/mips/mm/pgtable-32.c
View file @
84fd089a
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/bootmem.h>
#include <linux/highmem.h>
#include <linux/highmem.h>
#include <asm/fixmap.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
void
pgd_init
(
unsigned
long
page
)
void
pgd_init
(
unsigned
long
page
)
...
@@ -29,37 +30,6 @@ void pgd_init(unsigned long page)
...
@@ -29,37 +30,6 @@ void pgd_init(unsigned long page)
}
}
}
}
#ifdef CONFIG_HIGHMEM
static
void
__init
fixrange_init
(
unsigned
long
start
,
unsigned
long
end
,
pgd_t
*
pgd_base
)
{
pgd_t
*
pgd
;
pmd_t
*
pmd
;
pte_t
*
pte
;
int
i
,
j
;
unsigned
long
vaddr
;
vaddr
=
start
;
i
=
__pgd_offset
(
vaddr
);
j
=
__pmd_offset
(
vaddr
);
pgd
=
pgd_base
+
i
;
for
(
;
(
i
<
PTRS_PER_PGD
)
&&
(
vaddr
!=
end
);
pgd
++
,
i
++
)
{
pmd
=
(
pmd_t
*
)
pgd
;
for
(;
(
j
<
PTRS_PER_PMD
)
&&
(
vaddr
!=
end
);
pmd
++
,
j
++
)
{
if
(
pmd_none
(
*
pmd
))
{
pte
=
(
pte_t
*
)
alloc_bootmem_low_pages
(
PAGE_SIZE
);
set_pmd
(
pmd
,
__pmd
((
unsigned
long
)
pte
));
if
(
pte
!=
pte_offset_kernel
(
pmd
,
0
))
BUG
();
}
vaddr
+=
PMD_SIZE
;
}
j
=
0
;
}
}
#endif
void
__init
pagetable_init
(
void
)
void
__init
pagetable_init
(
void
)
{
{
#ifdef CONFIG_HIGHMEM
#ifdef CONFIG_HIGHMEM
...
...
include/asm-mips/fixmap.h
View file @
84fd089a
...
@@ -107,4 +107,11 @@ static inline unsigned long virt_to_fix(const unsigned long vaddr)
...
@@ -107,4 +107,11 @@ static inline unsigned long virt_to_fix(const unsigned long vaddr)
return
__virt_to_fix
(
vaddr
);
return
__virt_to_fix
(
vaddr
);
}
}
/*
* Called from pgtable_init()
*/
extern
void
fixrange_init
(
unsigned
long
start
,
unsigned
long
end
,
pgd_t
*
pgd_base
);
#endif
#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