lesson 23, initial commit

This commit is contained in:
Carlos
2015-08-17 18:41:38 +02:00
parent d271f5bd6f
commit 0134c5625c
31 changed files with 1554 additions and 0 deletions

12
23-fixes/libc/mem.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef MEM_H
#define MEM_H
#include "../cpu/type.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