Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53847
b: refs/heads/master
c: 82d1bb7
h: refs/heads/master
i:
  53845: c8ddd37
  53843: d3b57eb
  53839: 91023f6
v: v3
  • Loading branch information
James Puthukattukaran authored and Andi Kleen committed May 2, 2007
1 parent d89a7ce commit 686b11c
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 1c3d99c11c47c8a1a9ed6a46555dbf6520683c52
refs/heads/master: 82d1bb725e128c97b362a4b33fcbfff08fdaaa5a
5 changes: 2 additions & 3 deletions trunk/arch/x86_64/kernel/aperture.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ static void __init insert_aperture_resource(u32 aper_base, u32 aper_size)

static u32 __init allocate_aperture(void)
{
pg_data_t *nd0 = NODE_DATA(0);
u32 aper_size;
void *p;

Expand All @@ -65,12 +64,12 @@ static u32 __init allocate_aperture(void)
* Unfortunately we cannot move it up because that would make the
* IOMMU useless.
*/
p = __alloc_bootmem_node(nd0, aper_size, aper_size, 0);
p = __alloc_bootmem_nopanic(aper_size, aper_size, 0);
if (!p || __pa(p)+aper_size > 0xffffffff) {
printk("Cannot allocate aperture memory hole (%p,%uK)\n",
p, aper_size>>10);
if (p)
free_bootmem_node(nd0, __pa(p), aper_size);
free_bootmem(__pa(p), aper_size);
return 0;
}
printk("Mapping aperture over %d KB of RAM @ %lx\n",
Expand Down

0 comments on commit 686b11c

Please sign in to comment.