Luna/kernel/include
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 Fix naming 2022-09-25 21:43:28 +02:00
cpu LOTS MORE LOGGING. which is great, of course. 2022-09-07 19:41:08 +02:00
fs/ext2 Ready. Set. Go! 2022-09-05 16:13:51 +02:00
gdt Ready. Set. Go! 2022-09-05 16:13:51 +02:00
init Kernel: enable -Wconversion 2022-10-06 17:13:34 +02:00
interrupts Interrupts: Remove ensure_handler and use a more reliable way of detecting if we are in a handler 2022-09-29 18:35:51 +02:00
io Add a Device class to PCI and a PCITypes file for string names for PCI device types 2022-09-23 18:01:07 +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 Kernel: enable -Wconversion 2022-10-06 17:13:34 +02:00
misc Add a much-needed get_blocks_from_size function 2022-10-01 12:13:38 +02:00
panic add a proper kernel panic 2022-09-25 16:56:00 +02:00
rand Randomness and stack protection!! 2022-09-14 18:54:40 +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 Finally, a text renderer that actually works. We can now see the kernel messages without a serial port :) 2022-10-01 14:27:45 +02:00
sys Implement an ELFImage struct 2022-10-07 17:54:05 +02:00
thread Implement an ELFImage struct 2022-10-07 17:54:05 +02:00
trace Interrupts: Remove ensure_handler and use a more reliable way of detecting if we are in a handler 2022-09-29 18:35:51 +02:00
assert.h add a proper kernel panic 2022-09-25 16:56:00 +02:00
bootboot.h Ready. Set. Go! 2022-09-05 16:13:51 +02:00
config.h Add a moon_version function that returns the full version string 2022-09-20 16:34:24 +02:00
errno.h Kernel, libc and userspace: Add basic errno support. 2022-10-08 12:06:09 +02:00
font.h Some more userland and font failing 2022-09-23 16:41:43 +02:00