Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144734
b: refs/heads/master
c: 6143876
h: refs/heads/master
v: v3
  • Loading branch information
Jan Beulich authored and H. Peter Anvin committed May 8, 2009
1 parent 62474c5 commit 62660fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: e0e5ea3268db428d19e1c5fa00e6f583861cbdbd
refs/heads/master: 61438766514a2d7f191ce1b3cf6812eabbef4ef7
11 changes: 6 additions & 5 deletions trunk/arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,12 +1074,13 @@ u64 __init early_reserve_e820(u64 startt, u64 sizet, u64 align)
u64 addr;
u64 start;

start = startt;
while (size < sizet && (start + 1))
for (start = startt; ; start += size) {
start = find_e820_area_size(start, &size, align);

if (size < sizet)
return 0;
if (!(start + 1))
return 0;
if (size >= sizet)
break;
}

#ifdef CONFIG_X86_32
if (start >= MAXMEM)
Expand Down

0 comments on commit 62660fe

Please sign in to comment.