os/sysroot/usr/include/memory.h

16 lines
365 B
C
Raw Normal View History

2019-03-17 12:22:00 -05:00
#ifndef MEMORY_H
#define MEMORY_H
2020-07-23 11:50:23 -05:00
#include <stddef.h>
2019-03-17 12:22:00 -05:00
#define BLK_SZ 4096
2020-07-23 11:50:23 -05:00
void* alloc_memory(int num_pages);
void alloc_memory_virt(int num_pages,void* addr);
2019-05-05 13:14:14 -05:00
void* new_address_space();
2020-07-23 11:50:23 -05:00
void copy_data(void* cr3, void* data,size_t size,void* virt_addr);
void* put_data(void* cr3, void* data,size_t size);
void* map_phys(void* phys_addr,size_t num_pages);
2019-03-17 12:22:00 -05:00
#endif