fix a stupid bug in malloc.
add debug printks. make dtc put 'root' as the first_node, instead of making the last node be the first node .... much happier in linuxbios. sprintf is broken ... dammit. I hope someone will fix it. I've got about another week of full-time I can spend on this and then I go back to part time. So I'm going to need some help soon. other fixups, and also, make the dts conform to the needs of the device tree. So we have a domain0 and a device (0,0) that is the north. Mostly things are working, but we're STILL not getting any memory in the LB tables from the north. The device tree is a bitch. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@175 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
21ac13289a
commit
53283b1e36
9 changed files with 91 additions and 18 deletions
|
|
@ -59,7 +59,7 @@ void *malloc(size_t size)
|
|||
die("OUT OF MEMORY\n");
|
||||
}
|
||||
|
||||
size = (size + 3) & 3; /* Align */
|
||||
size = (size + 3) & (~3); /* Align */
|
||||
|
||||
p = free_mem_ptr;
|
||||
free_mem_ptr += size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue