feat(modules): now it loads segments with correct rights, not RWX everywhere

This commit is contained in:
karina
2026-05-03 18:30:49 +04:00
parent bedb03fc37
commit fb55cb1b9a
6 changed files with 97 additions and 55 deletions
+15 -1
View File
@@ -27,13 +27,27 @@ typedef struct {
void* kernelAddress;
} BIKernelInfo;
#define BOOT_MODULE_MAX_SEGMENTS 8
#define PF_X 1
#define PF_W 2
#define PF_R 4
typedef struct {
BIUInt64 physicalBase;
BIUInt64 virtualBase;
void* entry;
BIUInt64 size;
BIUInt32 flags;
BIUInt32 reserved;
} BootModuleSegment;
typedef struct {
void* entry;
char name[32];
BIUInt64 capabilities;
BIUInt32 segmentCount;
BIUInt32 reserved;
BootModuleSegment segments[BOOT_MODULE_MAX_SEGMENTS];
} BootModule;
typedef struct {