asleepymoon
asleepymoon pushed to main at asleepymoon/minitar 2022-11-21 18:08:12 +00:00
6c696c67b1 Revert previous commit, but using strtoul(l) everywhere
asleepymoon pushed to main at asleepymoon/minitar 2022-11-21 18:01:39 +00:00
30c7c0ad57 Determine the signedness of standard types
d97992c519 Remove Makefile
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/minitar 2022-11-21 16:38:32 +00:00
2aed955e94 Use const pointers when possible
asleepymoon pushed to main at asleepymoon/minitar 2022-11-20 19:14:38 +00:00
1633012823 Provide a CMakeLists.txt to use minitar with CMake
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 17:57:44 +00:00
46cad14052 Print "All files OK" when all files are using correct types
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 17:55:02 +00:00
f982152caa Add a script to manually check files with stdint.h types
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 17:32:18 +00:00
2df0bc4238 Convert one tiny type to Types.h in Format.cpp
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 17:31:03 +00:00
43e26e583c Calculate the boot timestamp in UNIX time for further usage
459e1ed653 luna/String.h: Convert to Types.h
1f2901d41a Add convenience script to replace stdint.h types with Types.h types
285c3cc411 Add Luna sources to list of sources to be formatted
Compare 4 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 17:05:39 +00:00
ff952fa2e4 Confirm alignment when calculating an offset to split at
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 16:56:36 +00:00
35b7194fb7 Move initialization into an init() function returning Result<void> so we can use TRY
a58b60d0cf Add a framebuffer text renderer
Compare 2 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 15:34:20 +00:00
29defdf54d Add a debug function to dump heap usage
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 14:48:32 +00:00
d54c882c63 Add new/delete-like functions but with Results
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 14:15:53 +00:00
caf6d1563c Kernel: Add a heap memory allocator
3815f9aa9f Introduce an offset_ptr function to avoid quirky C pointer arithmetic
cb88630d86 Bugfix: Make alloc_at return the start of the virtual memory range instead of the end
Compare 3 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 08:28:39 +00:00
33876dcda4 Use _strto{i,u} in _atou and _atos
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-20 08:24:49 +00:00
bde5de68ca Simplify is_valid_digit_for_base by reaching out to parse_digit_unchecked
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-19 21:52:30 +00:00
44f44aedca Make _strtoi call _strtou, to deduplicate code
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-19 21:48:44 +00:00
30a7d760ae Move a few repeated lambdas into their own functions
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-19 21:33:11 +00:00
af267772f0 Rename MemoryManager::map to map_frames_at
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-19 21:29:08 +00:00
1b41a3e9cf Introduce a few helpers to allocate/map/unmap several pages, which wrap around the MMU functionality
c886669d56 Break down operations to make protect_kernel_sections() more readable
d96cb73995 Rename physical "pages" to "frames"
847f2b4f4c Replace more usage of stdint.h types with Luna's Types.h
Compare 4 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-19 19:01:31 +00:00
83bcac7a16 Kernel: Introduce a timer interface