POK(kernelpart)
|
#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 [] |
Definition in file bsp.c.
int pok_bsp_init | ( | void | ) |
Definition at line 32 of file bsp.c.
{ pok_cons_init (); 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.
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; }
char _end[] |