Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6218
b: refs/heads/master
c: 9592032
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Aug 29, 2005
1 parent 4b183c2 commit 1c99fba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 145ec7d51ae507c7cc8889ad05e24af05bbd9147
refs/heads/master: 95920324f51b3a12603cf6d9bacbd831f34c5b60
9 changes: 7 additions & 2 deletions trunk/arch/ppc64/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,8 +950,13 @@ void __init unflatten_device_tree(void)
DBG(" size is %lx, allocating...\n", size);

/* Allocate memory for the expanded device tree */
mem = (unsigned long)abs_to_virt(lmb_alloc(size + 4,
__alignof__(struct device_node)));
mem = lmb_alloc(size + 4, __alignof__(struct device_node));
if (!mem) {
DBG("Couldn't allocate memory with lmb_alloc()!\n");
panic("Couldn't allocate memory with lmb_alloc()!\n");
}
mem = (unsigned long)abs_to_virt(mem);

((u32 *)mem)[size / 4] = 0xdeadbeef;

DBG(" unflattening...\n", mem);
Expand Down

0 comments on commit 1c99fba

Please sign in to comment.