POK(kernelpart)
|
Interfaces that BSP must provide. More...
Go to the source code of this file.
Functions | |
pok_ret_t | pok_bsp_init () |
pok_ret_t | pok_bsp_irq_acknowledge (uint8_t irq) |
pok_ret_t | pok_bsp_irq_register (uint8_t irq, void(*handler)(void)) |
void * | pok_bsp_mem_alloc (size_t size) |
pok_ret_t | pok_bsp_time_init () |
bool_t | pok_cons_write (const char *s, size_t length) |
pok_ret_t pok_bsp_init | ( | ) |
void* pok_bsp_mem_alloc | ( | size_t | size | ) |
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.
Allocate data. At this time, the pok_pm_sbrk function only increment size each time we allocate memory and was not designed to free previously allocated memory.
Definition at line 34 of file bsp.c.
pok_ret_t pok_bsp_time_init | ( | ) |
Initialize the timer, register the ISR and unmask the interrupt.
Init time. freq is the frequency of the oscillator.