Fixed x86 addrspace destroy code calling Page::Put with garbage.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-03-02 13:45:33 +01:00
parent a7c38cb997
commit 5e5991ce19
1 changed files with 5 additions and 0 deletions

View File

@ -144,8 +144,13 @@ namespace Sortix
addr_t fractal1 = PMLS[2]->entry[1022];
#if 1
Page::Put(fractal1 & PML_ADDRESS);
Page::Put(currentdir & PML_ADDRESS);
#else
Page::Put(fractal1);
Page::Put(currentdir);
#endif
// Switch to the address space from when the world was originally
// created. It should contain the kernel, the whole kernel, and