Luna/kernel/src/sys
apio 4768d5fc12 ELFLoader: Consider the offset when calculating how many pages to map
If a section needs to be mapped at 0x50f50 and its size is 0x200, then that address space exceeds one page.
But since 0x200 is less than one page, we only map one page.

If we count the offset, 0xf50 + 0x200 need two pages. So we can map the right amount of memory.
2022-10-12 14:40:06 +02:00
..
elf ELFLoader: Consider the offset when calculating how many pages to map 2022-10-12 14:40:06 +02:00
mem.cpp Kernel, libc: Round up to nearest page-aligned size instead of down 2022-10-12 12:15:12 +02:00
paint.cpp Kernel, libc and userspace: Add basic errno support. 2022-10-08 12:06:09 +02:00
rand.cpp Proper userspace program 2022-09-29 20:06:18 +02:00
sched.cpp Kernel, libc: Add support for providing a status code to exit() 2022-10-08 17:56:40 +02:00
stdio.cpp Kernel/syscalls: Modify sys_write to accept a file descriptor and write to it 2022-10-11 21:06:12 +02:00
Syscall.cpp Remove unnecessary comments 2022-10-11 21:32:28 +02:00