Skip to content

Commit

Permalink
i don't even know how this used to work. findFreeSegment can only be …
Browse files Browse the repository at this point in the history
…used on <= 1GB segments in the higher half. just hardcode where the new page tree is mapped in the the old one for creation and editing.
  • Loading branch information
wolfwood committed Aug 14, 2011
1 parent 8393714 commit c22ba2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/arch/x86_64/core/paging.d
Expand Up @@ -79,7 +79,8 @@ static:
heapAddress = cast(ubyte*)LinkerScript.kernelVMA + System.kernel.length;

// map kernel into bootstrap root page table, so we can use paging trick
ubyte* addr = findFreeSegment(true, 512*oneGB).ptr;
ubyte* addr = createAddress(0, 0, 0, 257);//findFreeSegment(true, 512*oneGB).ptr;

createGib!(PageLevel!(3))(addr, AccessMode.Writable|AccessMode.Executable);
mapRegion(addr, System.kernel.start, System.kernel.length);

Expand Down

0 comments on commit c22ba2f

Please sign in to comment.