POK(kernelpart)
/home/jaouen/pok_official/pok/trunk/kernel/arch/ppc/prep/bsp.c File Reference
#include <errno.h>
#include <arch.h>
#include "cons.h"

Go to the source code of this file.

Functions

int pok_bsp_init (void)
void * pok_bsp_mem_alloc (size_t sz)

Variables

char _end []

Function Documentation

int pok_bsp_init ( void  )

Definition at line 22 of file bsp.c.

{
   pok_cons_init ();

   return (POK_ERRNO_OK);
}
void* pok_bsp_mem_alloc ( size_t  sz)

Definition at line 34 of file bsp.c.

{
  char *res;

  res = (char *)(((unsigned int)heap_end + 4095) & ~4095);
  heap_end = res + sz;
  return res;
}

Variable Documentation

char _end[]