sortix-mirror/sortix/x86
Jonas 'Sortie' Termansen b0df5186e6 Fixed two very nasty bugs in the x86 memory management code.
1) The PML2 was not initialized to zeroes, thus leaving some bits behind that
caused the fork code to go crazy, forking the unforkable, and mapping addresses
that never, ever, should have been mapped, leaving behind a trail of page faults
and general protection faults on some computers, while other computers worked
because the uninitalized memory just wasn't uninitialized enough. Yep, this was
a schrödinbug!

2) Fixed a time bomb. The kernel heap was accidentally put such that whenever a
few megabytes were allocated, it would begin overwriting the physical page stack
causing unthinkable events to unfold and would probably be even more obscure to
debug than 1).

Oh, and some string errors fixed and removed RunApplication from kernel.cpp,
funny thing that even linked in the first place. Guess, the optimizer actually
did work for once. :)
2011-10-20 03:52:08 +02:00
..
base.s Initial version of Sortix. 2011-08-05 14:25:00 +02:00
bits.h Initial version of Sortix. 2011-08-05 14:25:00 +02:00
boot.s Initial version of Sortix. 2011-08-05 14:25:00 +02:00
gdt.asm Initial version of Sortix. 2011-08-05 14:25:00 +02:00
interrupt.asm Restored support for JSSortix using very ugly hacks. :( 2011-09-08 11:10:41 +02:00
memorymanagement.cpp Fixed two very nasty bugs in the x86 memory management code. 2011-10-20 03:52:08 +02:00
memorymanagement.h Rewrote memory management again and added support for x64 and forking. 2011-10-10 01:02:57 +02:00
x86.cpp Moved CPU code shared by x86 and x64 into x86-family. 2011-08-12 17:33:18 +02:00
x86.h Moved CPU code shared by x86 and x64 into x86-family. 2011-08-12 17:33:18 +02:00