feat(modules): now it loads segments with correct rights, not RWX everywhere
This commit is contained in:
+15
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user