Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232530
b: refs/heads/master
c: 7cb31b7
h: refs/heads/master
v: v3
  • Loading branch information
Stefano Stabellini authored and Konrad Rzeszutek Wilk committed Jan 27, 2011
1 parent 8530464 commit 333fe18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: cf04d120d9413de581437cf9a29f138ec1178f65
refs/heads/master: 7cb31b752c71e0bd405c1139e1907c3335877dff
7 changes: 6 additions & 1 deletion trunk/arch/x86/xen/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,13 @@ char * __init xen_memory_setup(void)
e820.nr_map = 0;
xen_extra_mem_start = mem_end;
for (i = 0; i < memmap.nr_entries; i++) {
unsigned long long end = map[i].addr + map[i].size;
unsigned long long end;

/* Guard against non-page aligned E820 entries. */
if (map[i].type == E820_RAM)
map[i].size -= (map[i].size + map[i].addr) % PAGE_SIZE;

end = map[i].addr + map[i].size;
if (map[i].type == E820_RAM && end > mem_end) {
/* RAM off the end - may be partially included */
u64 delta = min(map[i].size, end - mem_end);
Expand Down

0 comments on commit 333fe18

Please sign in to comment.