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
764f0138
Commit
764f0138
authored
Aug 26, 2010
by
Jeremy Fitzhardinge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xen: allocate level1_ident_pgt
Signed-off-by:
Jeremy Fitzhardinge
<
jeremy.fitzhardinge@citrix.com
>
parent
f0991802
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
arch/x86/xen/mmu.c
arch/x86/xen/mmu.c
+6
-2
No files found.
arch/x86/xen/mmu.c
View file @
764f0138
...
...
@@ -138,7 +138,8 @@ static inline void check_zero(void)
* large enough to allocate page table pages to allocate the rest.
* Each page can map 2MB.
*/
static
pte_t
level1_ident_pgt
[
PTRS_PER_PTE
*
4
]
__page_aligned_bss
;
#define LEVEL1_IDENT_ENTRIES (PTRS_PER_PTE * 4)
static
RESERVE_BRK_ARRAY
(
pte_t
,
level1_ident_pgt
,
LEVEL1_IDENT_ENTRIES
);
#ifdef CONFIG_X86_64
/* l3 pud for userspace vsyscall mapping */
...
...
@@ -1718,6 +1719,9 @@ static __init void xen_map_identity_early(pmd_t *pmd, unsigned long max_pfn)
unsigned
ident_pte
;
unsigned
long
pfn
;
level1_ident_pgt
=
extend_brk
(
sizeof
(
pte_t
)
*
LEVEL1_IDENT_ENTRIES
,
PAGE_SIZE
);
ident_pte
=
0
;
pfn
=
0
;
for
(
pmdidx
=
0
;
pmdidx
<
PTRS_PER_PMD
&&
pfn
<
max_pfn
;
pmdidx
++
)
{
...
...
@@ -1728,7 +1732,7 @@ static __init void xen_map_identity_early(pmd_t *pmd, unsigned long max_pfn)
pte_page
=
m2v
(
pmd
[
pmdidx
].
pmd
);
else
{
/* Check for free pte pages */
if
(
ident_pte
==
ARRAY_SIZE
(
level1_ident_pgt
)
)
if
(
ident_pte
==
LEVEL1_IDENT_ENTRIES
)
break
;
pte_page
=
&
level1_ident_pgt
[
ident_pte
];
...
...
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