mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-12-17 04:14:37 +03:00
lesson 23, initial commit
This commit is contained in:
12
23-fixes/libc/mem.h
Normal file
12
23-fixes/libc/mem.h
Normal 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
|
||||
Reference in New Issue
Block a user