mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Todo
This commit is contained in:
parent
5de0a3972c
commit
a5fdf14f0d
@ -38,6 +38,12 @@ namespace Execute
|
||||
void *BaseImage = KernelAllocator.RequestPages(TO_PAGES(ExFile->Node->Length));
|
||||
memcpy(BaseImage, (void *)ExFile->Node->Address, ExFile->Node->Length);
|
||||
|
||||
/*
|
||||
For some reason I can't map BaseImage.
|
||||
Neither can I in the Tasking->CreateThread function.
|
||||
Very strange.
|
||||
*/
|
||||
|
||||
for (uint64_t i = 0; i < TO_PAGES(ExFile->Node->Length); i++)
|
||||
Memory::Virtual(Process->PageTable).Map((void *)((uint64_t)BaseImage + (i * PAGE_SIZE)), (void *)((uint64_t)BaseImage + (i * PAGE_SIZE)), Memory::PTFlag::US);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user