apio pushed to main at apio/Luna 2022-10-12 16:37:06 +00:00
3ac9fed23a ELFLoader: Add check_elf_image() and check_elf_image_from_filesystem()
apio pushed to main at apio/Luna 2022-10-12 16:23:58 +00:00
261fc73146 ELFLoader: Read the ELF file header by header using the VFS
apio pushed to main at apio/Luna 2022-10-12 16:04:33 +00:00
7a2e313a20 init: demo execv()
e9df5fd663 exec: Copy pathname into kernel memory, since the user memory where it resides is going to be freed
bcbf43e55c Kernel/std: Add strdup()
Compare 3 commits »
apio pushed to main at apio/Luna 2022-10-12 15:46:03 +00:00
531afc3d6f libc: Add support for the new exec() system call
apio pushed to main at apio/Luna 2022-10-12 15:42:07 +00:00
f8b3567042 Kernel: Add an exec() syscall
apio pushed to main at apio/Luna 2022-10-12 15:16:02 +00:00
34c35163e4 libc: use the normal names that everybody uses for stdout and stderr
apio pushed to main at apio/Luna 2022-10-12 15:14:54 +00:00
dfdc3b2d11 libc: close fds 0 and 1 before opening stdout and stderr
apio pushed to main at apio/Luna 2022-10-12 15:12:17 +00:00
25a460e3c6 Scheduler: clear user tasks' registers
136c0b3ae9 Scheduler: add a reset_task function
4e3ef9593d Scheduler: Move ELF image freeing to ELFLoader
a6f0a7056f Scheduler: Set the user_task field in a Task at creation time
Compare 4 commits »
apio commented on issue apio/Luna#1 2022-10-12 14:11:57 +00:00
Processes

I think our Task structure is complex enough that it can be considered a process. We don't need separate threads of execution at this point in time, I think - that will be a concern for later.

W…

apio closed issue apio/Luna#1 2022-10-12 14:11:57 +00:00
Processes
apio pushed to main at apio/Luna 2022-10-12 13:56:10 +00:00
edda41a7bb libc: Implement fseek(), ftell() and rewind()
apio pushed to main at apio/Luna 2022-10-12 13:37:35 +00:00
4a5db1dca7 libc: Add lseek()
apio pushed to main at apio/Luna 2022-10-12 13:32:14 +00:00
928ade123c libc: Add support for the new seek() system call
apio pushed to main at apio/Luna 2022-10-12 13:30:47 +00:00
e40304f2f1 libc: Add off_t to sys/types.h
apio pushed to main at apio/Luna 2022-10-12 13:29:03 +00:00
854f585e1a Kernel: Add a seek() system call
97b7572933 VFS: Implement a new type of Node, VFS_DEVICE
Compare 2 commits »
apio pushed to main at apio/Luna 2022-10-12 12:51:10 +00:00
0f5910add7 Kernel/Utilities: Add new round_{up,down}_to_nearest_page functions
baa71b09cc Kernel: Build with -fstack-protector-strong instead of -fstack-protector-all
Compare 2 commits »
apio pushed to main at apio/Luna 2022-10-12 12:40:12 +00:00
4768d5fc12 ELFLoader: Consider the offset when calculating how many pages to map
apio pushed to main at apio/Luna 2022-10-12 12:35:40 +00:00
bbd9f1d187 VMM: Add FIXME
apio pushed to main at apio/Luna 2022-10-12 12:34:18 +00:00
15f340dbbe VMM: Do not map recursively
apio pushed to main at apio/Luna 2022-10-12 12:32:00 +00:00
8daffa876c Make some shell scripts executable
28469497e9 Change build system to accept arbitrary CFLAGS during the build process
d3cb642e5f Scheduler: add FIXME
0ee9bd7290 Scheduler: free a task's ELF image.
eaea4603c6 MemoryManager: Fix logging when built with debug logging
Compare 10 commits »