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