Added kernel ELF address to load context.
parent
024ab3a3fd
commit
347e5d9974
|
@ -24,6 +24,9 @@ struct S_LOAD_CONTEXT {
|
|||
// Multiboot
|
||||
u8 MultibootUsed : 1;
|
||||
u64 MultibootHeader;
|
||||
|
||||
// Kernel ELF
|
||||
void *KernelELF;
|
||||
} __attribute__((packed));
|
||||
typedef struct S_LOAD_CONTEXT T_LOAD_CONTEXT;
|
||||
|
||||
|
|
|
@ -57,7 +57,6 @@ void system_parse_load_context(T_LOAD_CONTEXT *LoadContext)
|
|||
g_SystemInfo.KernelSize = LoadContext->KernelPhysicalEnd - LoadContext->KernelPhysicalStart;
|
||||
g_SystemInfo.KernelVirtualStart = SYSTEM_KERNEL_VIRTUAL;
|
||||
ASSERT(SYSTEM_KERNEL_VIRTUAL == (u64)&_start);
|
||||
ASSERT((SYSTEM_KERNEL_VIRTUAL + g_SystemInfo.KernelSize) == (u64)&_end);
|
||||
|
||||
// Bootloader name from Multiboot header
|
||||
if ((Flags >> 9) & 1)
|
||||
|
|
|
@ -18,6 +18,9 @@ struct S_LOAD_CONTEXT {
|
|||
// Multiboot
|
||||
u8 MultibootUsed : 1;
|
||||
u64 MultibootHeader;
|
||||
|
||||
// Kernel ELF
|
||||
u64 KernelELF;
|
||||
} __attribute__((packed));
|
||||
typedef struct S_LOAD_CONTEXT T_LOAD_CONTEXT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue