Espresso 0.0.2a
This commit is contained in:
16
kernel/vars.c
Normal file
16
kernel/vars.c
Normal file
@ -0,0 +1,16 @@
|
||||
#include <types.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <kernel/vars.h>
|
||||
|
||||
|
||||
static uint8_t* vars_start = NULL;
|
||||
|
||||
static int num_bytes_used = 0;
|
||||
|
||||
void init_vars(void)
|
||||
{
|
||||
vars_start = (uint8_t*) malloc(8 * 1024); /* 1 KiB */
|
||||
memclr(vars_start, (size_t) 1024);
|
||||
}
|
||||
Reference in New Issue
Block a user