Skip to content

Commit

Permalink
Merge branch 'x86-setup-for-linus' of git://git.kernel.org/pub/scm/li…
Browse files Browse the repository at this point in the history
…nux/kernel/git/tip/linux-2.6-tip

* 'x86-setup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  x86, setup: guard against pre-ACPI 3 e820 code not updating %ecx
  • Loading branch information
Linus Torvalds committed Apr 1, 2009
2 parents 972dd43 + cd67059 commit ef5ddd3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/x86/boot/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ static int detect_memory_e820(void)
struct e820entry *desc = boot_params.e820_map;
static struct e820_ext_entry buf; /* static so it is zeroed */

/*
* Set this here so that if the BIOS doesn't change this field
* but still doesn't change %ecx, we're still okay...
*/
buf.ext_flags = 1;

do {
size = sizeof buf;

Expand Down

0 comments on commit ef5ddd3

Please sign in to comment.