11 printf (
"Before allocation:\n" );
18 printf (
"After allocation:\n" );
24 printf (
"After freeing:\n" );
void get_memmap(struct memory_map *memmap)
Get memory map.
int printf(const char *fmt,...)
Write a formatted string to the console.
Access to external ("user") memory.
uint32_t userptr_t
A pointer to a user buffer.
userptr_t urealloc(userptr_t userptr, size_t new_size)
Reallocate external memory.
static __always_inline void ufree(userptr_t userptr)
Free external memory.
static __always_inline userptr_t umalloc(size_t size)
Allocate external memory.