asleepymoon
asleepymoon pushed to main at asleepymoon/Luna 2023-01-22 14:00:29 +00:00
7f8a8cdcaf kernel, libc: Add an usleep() system call and use that to implement usleep() and sleep() in libc
d5b1d72396 x86_64/MMU: Map the kernel page directory to virtual memory
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-01-22 13:26:00 +00:00
a7a38d3433 Bitmap: Add a fallible variant of match_region() that does not crash if arguments are out of range
asleepymoon pushed to main at asleepymoon/Luna 2023-01-22 11:51:47 +00:00
cb59a4e0e3 libc: Add assert.h
asleepymoon pushed to main at asleepymoon/Luna 2023-01-22 11:01:03 +00:00
34a9b35037 Option, Result: Propagate caller locations when erroring out
0126a8fb6e luna: Add a new SourceLocation class and use that in check() and expect()
129297a0b0 CString: Fix compilation in strnlen()
Compare 3 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-01-22 10:28:00 +00:00
cf8d3c6ff9 OwnedStringView: Add a method to extract a substring
12d2039f68 CString: Add strnlen() and strndup()
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-01-21 22:58:07 +00:00
944d32de36 Bitmap: Introduce new malloc-aware initialization functions
0e607c2fef Bitmap: Declare more variables as const
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-01-21 21:45:17 +00:00
a6974b605e tools+CMake: Prefix all environment variables with LUNA_
asleepymoon pushed to main at asleepymoon/minitar 2023-01-19 21:44:14 +00:00
56250a226f chore: Add a CMake target to build all examples
asleepymoon pushed to main at asleepymoon/minitar 2023-01-19 21:32:10 +00:00
d8faf424ad fix: Skip the padding field when calculating header checksums
240a4f2f1a chore: Add examples to CMake as opt-in targets
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-01-16 20:16:58 +00:00
a3d0fa7d0a UserVM: Validate the entire range when freeing multiple VM pages
asleepymoon pushed to main at asleepymoon/Luna 2023-01-16 19:44:54 +00:00
631cdd0204 x86_64/CPU: Skip null instruction pointers on stack trace generation
asleepymoon pushed to main at asleepymoon/Luna 2023-01-16 19:30:44 +00:00
c374c25523 Convert some FIXMEs into NOTES
asleepymoon pushed to main at asleepymoon/Luna 2023-01-16 18:52:40 +00:00
1d92784608 luna, kernel: Replace some uses of char by truly 1-byte wide types
329e8ab182 luna/Heap: Scrub reallocations properly
1b807a4e06 arch/Timer: Make sure ARCH_TIMER_FREQ is a power of two
Compare 3 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-01-14 11:07:15 +00:00
d0600f5714 luna: Make Utf8StringEncoder short-circuit instead of failing when hitting the length limit
asleepymoon pushed to main at asleepymoon/Luna 2023-01-14 10:59:14 +00:00
e3ef29e80d libc: Implement wcstombs()
00ee8314b3 luna: Make Utf8String{De,En}coders return the number of bytes written
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-01-14 09:59:37 +00:00
da805eec83 Describe what check() and expect() are
eb35abfa52 Vector: Assigment, copy&move constructors, and destructor
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-01-13 21:28:15 +00:00
3b4b750cbf luna: Vector is here!!
asleepymoon pushed to main at asleepymoon/Luna 2023-01-13 20:08:15 +00:00
28bde216c4 libc: Implement perror()
e676fb8299 libc: Add a wide range of time manipulation functions, including reentrant variants
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-01-13 19:00:32 +00:00
2d2db300b0 libc: Add malloc(), calloc(), realloc() and free()
5fb2ff09c7 kernel, luna, libc: Move the heap code to a common zone, to be used by both kernel and userspace
d864bda751 libc: Add (de)allocate_memory wrappers located in sys/mman.h
139c0b5eb1 Kernel: Make a UserVM wrapper around Bitmap and use that to allocate user VM
7462b764d8 Kernel: Add __cxa_atexit iomplementation
Compare 10 commits »
asleepymoon pushed to main at asleepymoon/minitar 2023-01-12 20:05:02 +00:00
9a7629459e chore: Add copyright headers to all source files