Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223418
b: refs/heads/master
c: a2c606d
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Dec 17, 2010
1 parent 3ae54d6 commit 486c5a8
Show file tree
Hide file tree
Showing 3 changed files with 6 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: 4dc2287c1805e7fe8a7cb90bbcd44abee8cdb914
refs/heads/master: a2c606d53ab71dee6410f10ef0adf67321d60e06
3 changes: 3 additions & 0 deletions trunk/arch/x86/include/asm/e820.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ struct e820map {
#define BIOS_BEGIN 0x000a0000
#define BIOS_END 0x00100000

#define BIOS_ROM_BASE 0xffe00000
#define BIOS_ROM_END 0xffffffff

#ifdef __KERNEL__
/* see comment in arch/x86/kernel/e820.c */
extern struct e820map e820;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/x86/kernel/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ static void remove_e820_regions(struct resource *avail)

void arch_remove_reservations(struct resource *avail)
{
/* Trim out BIOS area (low 1MB) and E820 regions */
/* Trim out BIOS areas (low 1MB and high 2MB) and E820 regions */
if (avail->flags & IORESOURCE_MEM) {
if (avail->start < BIOS_END)
avail->start = BIOS_END;
resource_clip(avail, BIOS_ROM_BASE, BIOS_ROM_END);

remove_e820_regions(avail);
}
Expand Down

0 comments on commit 486c5a8

Please sign in to comment.