Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86339
b: refs/heads/master
c: 829157b
h: refs/heads/master
i:
  86337: edd5bfc
  86335: 0008f7d
v: v3
  • Loading branch information
H. Peter Anvin authored and Ingo Molnar committed Feb 26, 2008
1 parent ba90bfd commit 47f275d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 4cd20952d74323df06e438c0c3273b5be89d6bfd
refs/heads/master: 829157be590af1c2555fb74c3c4db3327e3201fc
9 changes: 6 additions & 3 deletions trunk/arch/x86/boot/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ static int detect_memory_e820(void)
"=m" (*desc)
: "D" (desc), "d" (SMAP), "a" (0xe820));

/* BIOSes which terminate the chain with CF = 1 as opposed
to %ebx = 0 don't always report the SMAP signature on
the final, failing, probe. */
if (err)
break;

/* Some BIOSes stop returning SMAP in the middle of
the search loop. We don't know exactly how the BIOS
screwed up the map at that point, we might have a
Expand All @@ -47,9 +53,6 @@ static int detect_memory_e820(void)
break;
}

if (err)
break;

count++;
desc++;
} while (next && count < E820MAX);
Expand Down

0 comments on commit 47f275d

Please sign in to comment.