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
f0991802
Commit
f0991802
authored
Aug 26, 2010
by
Jeremy Fitzhardinge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xen: use early_brk for level2_kernel_pgt
Signed-off-by:
Jeremy Fitzhardinge
<
jeremy.fitzhardinge@citrix.com
>
parent
a2e87529
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
arch/x86/xen/mmu.c
arch/x86/xen/mmu.c
+3
-1
No files found.
arch/x86/xen/mmu.c
View file @
f0991802
...
@@ -1843,13 +1843,15 @@ __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd,
...
@@ -1843,13 +1843,15 @@ __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd,
return
pgd
;
return
pgd
;
}
}
#else
/* !CONFIG_X86_64 */
#else
/* !CONFIG_X86_64 */
static
pmd_t
level2_kernel_pgt
[
PTRS_PER_PMD
]
__page_aligned_bss
;
static
RESERVE_BRK_ARRAY
(
pmd_t
,
level2_kernel_pgt
,
PTRS_PER_PMD
)
;
__init
pgd_t
*
xen_setup_kernel_pagetable
(
pgd_t
*
pgd
,
__init
pgd_t
*
xen_setup_kernel_pagetable
(
pgd_t
*
pgd
,
unsigned
long
max_pfn
)
unsigned
long
max_pfn
)
{
{
pmd_t
*
kernel_pmd
;
pmd_t
*
kernel_pmd
;
level2_kernel_pgt
=
extend_brk
(
sizeof
(
pmd_t
*
)
*
PTRS_PER_PMD
,
PAGE_SIZE
);
max_pfn_mapped
=
PFN_DOWN
(
__pa
(
xen_start_info
->
pt_base
)
+
max_pfn_mapped
=
PFN_DOWN
(
__pa
(
xen_start_info
->
pt_base
)
+
xen_start_info
->
nr_pt_frames
*
PAGE_SIZE
+
xen_start_info
->
nr_pt_frames
*
PAGE_SIZE
+
512
*
1024
);
512
*
1024
);
...
...
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