2025-10-04 20:57:45 +00:00
|
|
|
#ifndef MEM_MAN_H
|
|
|
|
|
#define MEM_MAN_H
|
|
|
|
|
|
|
|
|
|
uint8_t *allocate_executable_memory(uint32_t num_bytes);
|
|
|
|
|
uint8_t *allocate_data_memory(uint32_t num_bytes);
|
|
|
|
|
uint8_t *allocate_buffer_memory(uint32_t num_bytes);
|
|
|
|
|
int mark_mem_executable(uint8_t *memory, uint32_t memory_len);
|
|
|
|
|
void deallocate_memory(uint8_t *memory, uint32_t memory_len);
|
|
|
|
|
|
2026-03-19 14:59:27 +00:00
|
|
|
#ifdef DATA_MEMORY_ADDR
|
|
|
|
|
void memcpy(void *dest, const void *src, size_t n);
|
|
|
|
|
#else
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2025-10-04 20:57:45 +00:00
|
|
|
#endif /* MEM_MAN_H */
|