Commit Graph

17 Commits

Author SHA1 Message Date
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
Jonas 'Sortie' Termansen c16bdd2604 Added a friendly warning that X64 cannot boot fully when booting X64. 2011-10-10 01:16:36 +02:00
Jonas 'Sortie' Termansen 66192d1e86 Rewrote memory management again and added support for x64 and forking. 2011-10-10 01:02:57 +02:00
Jonas 'Sortie' Termansen cc61176e5b Restored support for JSSortix using very ugly hacks. :( 2011-09-08 11:10:41 +02:00
Jonas 'Sortie' Termansen 3859e1f566 Refactored interrupt system and got rid of old not-mine code. 2011-09-07 18:45:07 +02:00
Jonas 'Sortie' Termansen c157e65352 Removed lots of deprecated suff! 2011-09-06 19:51:47 +02:00
Jonas 'Sortie' Termansen 011addf46c The initrd now uses the mkinitrd format and the kernel now loads it. 2011-08-28 12:38:01 +02:00
Jonas 'Sortie' Termansen 5c86cb4abd Processes now remember the memory segments it has loaded. 2011-08-27 16:46:00 +02:00
Jonas 'Sortie' Termansen 013c5b5e71 Processes in the initrd are now made from ELF files. 2011-08-23 21:02:00 +02:00
Jonas 'Sortie' Termansen 4db550c13b Added libmaxsi keyboard API, allowing user-space to use the keyboard. 2011-08-21 12:52:56 +02:00
Jonas 'Sortie' Termansen ec8c0c533b Removed accidentally included infinite debug loop in kernel.cpp. 2011-08-12 20:13:31 +02:00
Jonas 'Sortie' Termansen a2f70f358c Added linebreaks after maxsi logo. 2011-08-12 20:09:40 +02:00
Jonas 'Sortie' Termansen e78443d92a Processes now keep track of where their code section ends.
This is very hacky, but allows us to allocate address space.
2011-08-08 15:19:49 +02:00
Jonas 'Sortie' Termansen 294e5d72dd All of the initrd is now loaded. 2011-08-07 01:30:47 +02:00
Jonas 'Sortie' Termansen 185c6d4b6f Processes (and thus threads) now belong to an address space.
Changing theads now automatically switches the adress space.
2011-08-07 01:17:53 +02:00
Jonas 'Sortie' Termansen 66c058fba1 Refactored virtual memory management, making it less buggy.
uintptr_t is now replaced with addr_t when referring to physical memory
addresses in Sortix. Many bugs in the previous memory management code have been
fixed. The new interface is less flexible - but should prove more solid as the
nasty internals have been hidden away. The current interface design should also
make the code more 64-bit ready/friendly. And so on.
2011-08-07 00:18:41 +02:00
Jonas 'Sortie' Termansen 9b79673dcb Initial version of Sortix. 2011-08-05 14:25:00 +02:00