Commit graph

1263 commits

Author SHA1 Message Date
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
db34033d40 Removed unneeded #includes from sortix/memorymanagement.cpp. 2011-08-07 20:14:26 +02:00
Jonas 'Sortie' Termansen
07b409c1a0 Added a wrapper class for handling file descriptors. 2011-08-07 19:47:43 +02:00
Jonas 'Sortie' Termansen
e78390d9c2 Added a line counting make target for statistics. 2011-08-07 03:02:37 +02:00
Jonas 'Sortie' Termansen
206a7993f3 Such that the sortix subdir is git'd too. 2011-08-07 01:38:51 +02:00
Jonas 'Sortie' Termansen
acd2ae58c6 And the c/h/sys dir too.. 2011-08-07 01:37:43 +02:00
Jonas 'Sortie' Termansen
a4c2afedb7 libmaxsi now creates the c/h dir if missing. 2011-08-07 01:36:27 +02:00
Jonas 'Sortie' Termansen
294e5d72dd All of the initrd is now loaded. 2011-08-07 01:30:47 +02:00
Jonas 'Sortie' Termansen
794630a802 Adding proper .gitignore files. 2011-08-07 01:22:36 +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
90ebfe7f0a Improvements to the address space switching function.
It now only switches when needed and returns the old addr space.
2011-08-07 01:16: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