Jonas 'Sortie' Termansen
22990b77b8
Refactored the internal kernel memory management API.
...
It is now permission-oriented, not just user/kernel oriented.
Added <sys/mman.h> with nice PROT_{READ,WRITE,EXEC,FORK} constants.
2012-07-06 17:18:07 +02:00
Jonas 'Sortie' Termansen
db79994e64
Refactored all the sortix headers into a include directory.
...
Also got rid of trailing white space. That corrupted .git/.
Big ass-commit because of recovered .git directory.
2012-03-22 00:52:29 +01:00
Jonas 'Sortie' Termansen
0f5864602f
Fixed bad filename written in elf.cpp.
2011-12-16 15:35:45 +01:00
Jonas 'Sortie' Termansen
7cd28f097c
Program loader now sets the correct program segment type.
2011-12-16 15:33:12 +01:00
Jonas 'Sortie' Termansen
acf1eebc98
Added user-space memory allocation.
2011-12-16 13:24:49 +01:00
Jonas 'Sortie' Termansen
c0c20860ed
Lots of improvements to 64-bit Sortix.
...
Fixed 64-bit-ness bug in BSR() and BSF().
Added 64-bit system call stubs in libmaxsi.
Added a Elf64 program loader.
Fixed uninitialized memory bug in the scheduler.
x64/boot.s now takes care of user-space memory permissions.
Fixed bug in x64/syscall.s
That's right. The system now boots in 64-bit mode.
It is horribly unstable, though.
2011-12-01 10:45:44 +01:00
Jonas 'Sortie' Termansen
9deb183786
The ELF loader now uses errno.
2011-11-22 18:06:40 +01:00
Jonas 'Sortie' Termansen
e8fb8d885b
execve(2) can now load programs from the filesystem.
...
Previously it was restricted to only the ramdisk.
2011-11-22 14:02:33 +01:00
Jonas 'Sortie' Termansen
446616b3aa
Improved JSVM compabillity.
2011-11-20 15:58:42 +01:00
Jonas 'Sortie' Termansen
1b7dc2d817
Fixes to memory management that helps me sleep at night.
2011-10-10 17:22:03 +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
5c86cb4abd
Processes now remember the memory segments it has loaded.
2011-08-27 16:46:00 +02:00
Jonas 'Sortie' Termansen
4898343e2f
The ELF loader now uses program headers and not section headers.
2011-08-23 18:16:44 +02:00
Jonas 'Sortie' Termansen
9db2c88aca
Sortix can now load ELF executables into addresses spaces.
2011-08-23 00:42:56 +02:00