POK(kernelpart)
bsp.c File Reference
#include <errno.h>
#include <arch.h>
#include <core/debug.h>
#include "cons.h"
#include "sparc_conf.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 []

Detailed Description

Author:
Fabien Chouteau

Definition in file bsp.c.


Function Documentation

int pok_bsp_init ( void  )

Definition at line 32 of file bsp.c.

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

Used for partition allocation. For SPARC support, all partitions are aligned on page size and all partition sizes have to be less than page size.

See also:
SPARC_PAGE_SIZE

Definition at line 44 of file bsp.c.

{
char *res;
/* Aligned on page size */
res = (char *)(((uint32_t)heap_end + SPARC_PAGE_SIZE) & ~ (SPARC_PAGE_SIZE - 1));
heap_end = res + sz;
return res;
}

Variable Documentation

char _end[]