mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-06-03 10:17:57 +00:00
Use physical address for Kernel.FileBase
This commit is contained in:
parent
8b082ac98a
commit
7391a283a3
@ -237,7 +237,7 @@ SafeFunction NIF void init_limine()
|
||||
|
||||
binfo.Kernel.PhysicalBase = (void *)KernelAddressResponse->physical_base;
|
||||
binfo.Kernel.VirtualBase = (void *)KernelAddressResponse->virtual_base;
|
||||
binfo.Kernel.FileBase = KernelFileResponse->kernel_file->address;
|
||||
binfo.Kernel.FileBase = KernelFileResponse->kernel_file->address - 0xffff800000000000;
|
||||
strncpy(binfo.Kernel.CommandLine,
|
||||
KernelFileResponse->kernel_file->cmdline,
|
||||
strlen(KernelFileResponse->kernel_file->cmdline) + 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user