Luna/kernel/src
apio 71e15e94af Kernel, libc and userspace: Add basic errno support.
Kernel: Add an errno.h header with definitions for each header,
and return those, negated, from syscalls when there is an error.
mmap() returns an invalid address with errno encoded, instead of
returning a negated errno; this address is encoded as ffffffffffffffEE
where EE is errno in hex.

libc: make syscall() return -1 and set errno on error, instead of
returning the raw return value of the system call. Also, add mmap()
and munmap() wrappers in sys/mman.h :).

userspace: make the memeater program show the value of errno
when allocating memory fails.

Things to improve: add perror() and strerror() to make the errno
experience even better! >.<
2022-10-08 12:06:09 +02:00
..
acpi Kernel: enable -Wconversion 2022-10-06 17:13:34 +02:00
cpu LOTS MORE LOGGING. which is great, of course. 2022-09-07 19:41:08 +02:00
gdt Kernel: enable -Wconversion 2022-10-06 17:13:34 +02:00
init Kernel: enable -Wconversion 2022-10-06 17:13:34 +02:00
interrupts Kernel: enable -Wconversion 2022-10-06 17:13:34 +02:00
io I'm so dumb 2022-10-06 18:04:32 +02:00
log Separate the logging stack into toggleable backends, to disable console logging once boot finishes. 2022-10-01 15:35:11 +02:00
memory libc: Enable even more warnings 2022-10-07 18:19:06 +02:00
misc The beginnings of Moon 0.10 2022-10-07 20:33:00 +02:00
panic Kernel: enable -Wconversion 2022-10-06 17:13:34 +02:00
rand Update config.h to use a .cpp file that will be recompiled when it changes 2022-09-20 16:30:34 +02:00
render Separate the logging stack into toggleable backends, to disable console logging once boot finishes. 2022-10-01 15:35:11 +02:00
std Kernel: Enable even more warnings 2022-10-07 18:10:20 +02:00
sys Kernel, libc and userspace: Add basic errno support. 2022-10-08 12:06:09 +02:00
thread Implement an ELFImage struct 2022-10-07 17:54:05 +02:00
trace Add is_user_address and is_kernel_address functions 2022-09-29 19:30:42 +02:00
main.asm Kernel: Add SSE support (enable SSE on boot and save context (user tasks only) on task switch) 2022-10-02 18:53:54 +02:00
main.cpp Kernel: Enable even more warnings 2022-10-07 18:10:20 +02:00