lesson 22, malloc

This commit is contained in:
Carlos
2015-04-01 15:08:17 +02:00
parent f98a02f6cc
commit 293f556a7e
12 changed files with 158 additions and 0 deletions

12
22-malloc/libc/mem.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef MEM_H
#define MEM_H
#include "../cpu/types.h"
void memory_copy(u8 *source, u8 *dest, int nbytes);
void memory_set(u8 *dest, u8 val, u32 len);
/* At this stage there is no 'free' implemented. */
u32 kmalloc(u32 size, int align, u32 *phys_addr);
#endif