* 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:
Stefan Reinauer 2007-04-06 14:05:26 +00:00
commit bea6044faa
18 changed files with 183 additions and 149 deletions

View file

@ -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 */