Fixing merge conflict resolution

This commit is contained in:
2025-03-18 19:22:43 +02:00
parent d75dd85209
commit bf8c8f9dad
10 changed files with 123 additions and 27 deletions

28
src/memory.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef MEMORY_H_
#define MEMORY_H_
#include "str.h"
#include "types.h"
#include "array.h"
enum MemoryPermissions {
HI_MEMORY_READ = 1 << 0,
HI_MEMORY_WRITE = 1 << 1,
HI_MEMORY_EXECUTE = 1 << 2,
HI_MEMORY_SHARED = 1 << 3,
HI_MEMORY_PRIVATE = 1 << 4
};
typedef struct {
void *region_start;
void *redion_end;
u32 region_flags; // enum MemoryPermissions
u32 offset;
str pathname;
} MemoryRegion;
str read_memory_maps_self();
sc_array_def(MemoryRegion, memreg);
#endif // MEMORY_H_