Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25323
b: refs/heads/master
c: eee5a9f
h: refs/heads/master
i:
  25321: 42737bd
  25319: 6e88434
v: v3
  • Loading branch information
Arjan van de Ven authored and Linus Torvalds committed Apr 9, 2006
1 parent 04b01a5 commit a6ee9db
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 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: a8062231d80239cf3405982858c02aea21a6066a
refs/heads/master: eee5a9fa63c97366cdea6ab3aa2ed9e3601812d0
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/aperture.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int __init aperture_valid(char *name, u64 aper_base, u32 aper_size)
printk("Aperture from %s beyond 4GB. Ignoring.\n",name);
return 0;
}
if (e820_mapped(aper_base, aper_base + aper_size, E820_RAM)) {
if (e820_any_mapped(aper_base, aper_base + aper_size, E820_RAM)) {
printk("Aperture from %s pointing to e820 RAM. Ignoring.\n",name);
return 0;
}
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/x86_64/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ static inline int bad_addr(unsigned long *addrp, unsigned long size)
return 0;
}

int __meminit e820_mapped(unsigned long start, unsigned long end, unsigned type)
int __meminit
e820_any_mapped(unsigned long start, unsigned long end, unsigned type)
{
int i;
for (i = 0; i < e820.nr_map; i++) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static void __meminit phys_pud_init(pud_t *pud, unsigned long address, unsigned
if (paddr >= end)
break;

if (!after_bootmem && !e820_mapped(paddr, paddr+PUD_SIZE, 0)) {
if (!after_bootmem && !e820_any_mapped(paddr, paddr+PUD_SIZE, 0)) {
set_pud(pud, __pud(0));
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-x86_64/e820.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ extern void contig_e820_setup(void);
extern unsigned long e820_end_of_ram(void);
extern void e820_reserve_resources(void);
extern void e820_print_map(char *who);
extern int e820_mapped(unsigned long start, unsigned long end, unsigned type);
extern int e820_any_mapped(unsigned long start, unsigned long end, unsigned type);

extern void e820_bootmem_free(pg_data_t *pgdat, unsigned long start,unsigned long end);
extern void e820_setup_gap(void);
Expand Down

0 comments on commit a6ee9db

Please sign in to comment.