Trivial:
* include cleanup. We don't provide stdint.h, so use arch/types.h instead. * drop some unused variables * fix comment style in some headers to match the template * Fix the loglevel of some debugging output. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@275 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
afa7c1d798
commit
bea6044faa
18 changed files with 183 additions and 149 deletions
|
|
@ -23,6 +23,7 @@
|
|||
* has had this at some time or other.
|
||||
*/
|
||||
|
||||
#include <arch/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <console/console.h>
|
||||
|
||||
|
|
@ -51,11 +52,11 @@ void *malloc(size_t size)
|
|||
{
|
||||
void *p;
|
||||
|
||||
MALLOCDBG("%s Enter, size %d, free_mem_ptr %p\n", __FUNCTION__, size,
|
||||
free_mem_ptr);
|
||||
MALLOCDBG("%s Enter, size %d, free_mem_ptr %p\n",
|
||||
__FUNCTION__, size, free_mem_ptr);
|
||||
|
||||
if (size > freebytes) {
|
||||
die("OUT OF MEMORY\n");
|
||||
die("Out of memory.\n");
|
||||
}
|
||||
|
||||
size = (size + 3) & (~3); /* Align */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue