Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263864
b: refs/heads/master
c: e3b73c4
h: refs/heads/master
v: v3
  • Loading branch information
David Vrabel authored and Konrad Rzeszutek Wilk committed Sep 13, 2011
1 parent fbdcf16 commit fc58825
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f10cd522c5fbfec9ae3cc01967868c9c2401ed23
refs/heads/master: e3b73c4a25e9a5705b4ef28b91676caf01f9bc9f
10 changes: 6 additions & 4 deletions trunk/arch/x86/xen/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,12 @@ char * __init xen_memory_setup(void)
sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);

extra_limit = xen_get_max_pages();
if (extra_limit >= max_pfn)
extra_pages = extra_limit - max_pfn;
else
extra_pages = 0;
if (max_pfn + extra_pages > extra_limit) {
if (extra_limit > max_pfn)
extra_pages = extra_limit - max_pfn;
else
extra_pages = 0;
}

extra_pages += xen_return_unused_memory(xen_start_info->nr_pages, &e820);

Expand Down

0 comments on commit fc58825

Please sign in to comment.