a0c4bbe6f3
Make sure to clean CMake cache when rebuilding
2022-12-04 11:55:47 +01:00
5d9c50eb12
Make build-debug.sh work
2022-12-04 10:27:25 +01:00
9a6d0d1bae
Update README.md
2022-12-04 10:07:56 +01:00
37a41f3d2c
Add warning message
2022-12-03 17:53:47 +01:00
d72478de29
Update README.md
2022-12-03 17:51:39 +01:00
bbc5470ae4
Update symlink location
2022-12-03 17:39:22 +01:00
e440df58c9
cleanup: remove unused scripts
2022-12-03 17:37:12 +01:00
505dde35ac
Make GDB source .gdbconf relative to the root directory
2022-12-03 17:34:36 +01:00
dcd5a82073
Make GDB use the correct kernel file
2022-12-03 17:34:14 +01:00
1d7b9260c3
Add config.h for version information
2022-12-03 17:25:25 +01:00
bdc9747f9e
Set a project version
2022-12-03 17:18:25 +01:00
3740309427
Check for STRINGIZE_VALUE_OF before defining it
2022-12-03 17:18:16 +01:00
9c9cb6a05a
oopsie
2022-11-30 17:29:18 +01:00
2bc99f2e6e
Make log __attribute__(format), so the compiler can warn us of bad format strings
2022-11-30 17:28:46 +01:00
3f40ccd703
Indicate the log level in the serial console
2022-11-30 17:26:33 +01:00
985d45ddfb
Switch to logging functions everywhere
2022-11-30 17:16:36 +01:00
d2856d8812
Provide meaningful error numbers
2022-11-30 17:13:59 +01:00
29dad5651d
Move __check_failed to Log.cpp so it can be logged across all backends
2022-11-30 17:12:06 +01:00
1d51935d43
Make Result able to return an error string
2022-11-30 17:10:43 +01:00
fc0779a2f9
Add a SystemError module for errno values :)
2022-11-30 17:10:30 +01:00
fe47e0d5cb
Clean init() up
2022-11-30 16:30:42 +01:00
f8ed74fda5
Improve unit representation code
2022-11-30 14:41:35 +01:00
9f5fb547f7
Add logging system :)
2022-11-30 13:29:28 +01:00
f1756e6f58
Add unit formatting
2022-11-30 12:42:11 +01:00
552186ad51
Add string_format and vstring_format
2022-11-30 12:36:21 +01:00
1ed51d11cb
Do not push unused values
2022-11-23 19:37:25 +01:00
82893fa3a4
Introduce a kernel_yield function to use once a scheduler is implemented
2022-11-23 19:34:04 +01:00
88681bdc74
Default to ninja
2022-11-23 19:01:28 +01:00
7230eceb4d
x86_64/Timer: Show explanatory message on static assertion fail
2022-11-23 18:58:39 +01:00
9934719f6b
Use a more reliable signed 64-bit type than "long"
2022-11-23 18:05:01 +01:00
88f588a0c5
Make ARCH_TIMER_FREQ less frequent so it is more accurate (I hope)
2022-11-23 18:00:09 +01:00
3b2dc5db55
PlacementNew.h: Use Types.h
2022-11-23 17:22:16 +01:00
46cad14052
Print "All files OK" when all files are using correct types
2022-11-20 18:57:22 +01:00
f982152caa
Add a script to manually check files with stdint.h types
2022-11-20 18:54:39 +01:00
2df0bc4238
Convert one tiny type to Types.h in Format.cpp
2022-11-20 18:31:55 +01:00
43e26e583c
Calculate the boot timestamp in UNIX time for further usage
2022-11-20 18:30:40 +01:00
459e1ed653
luna/String.h: Convert to Types.h
2022-11-20 18:29:23 +01:00
1f2901d41a
Add convenience script to replace stdint.h types with Types.h types
2022-11-20 18:28:46 +01:00
285c3cc411
Add Luna sources to list of sources to be formatted
2022-11-20 18:28:16 +01:00
ff952fa2e4
Confirm alignment when calculating an offset to split at
2022-11-20 18:04:29 +01:00
35b7194fb7
Move initialization into an init() function returning Result<void> so we can use TRY
...
And remove a lot of testing code as well.
2022-11-20 17:56:07 +01:00
a58b60d0cf
Add a framebuffer text renderer
2022-11-20 17:55:22 +01:00
29defdf54d
Add a debug function to dump heap usage
2022-11-20 16:33:54 +01:00
d54c882c63
Add new/delete-like functions but with Results
2022-11-20 15:48:08 +01:00
caf6d1563c
Kernel: Add a heap memory allocator
...
This is the first time I've actually dropped liballoc in favor of writing my own implementation.
Usually, malloc() and such looked so complicated that I preferred to let a nice external library do the job.
But I've decided to try writing my own allocator, and now we have heap memory without any 3rd party code!
2022-11-20 15:15:26 +01:00
3815f9aa9f
Introduce an offset_ptr function to avoid quirky C pointer arithmetic
2022-11-20 15:12:18 +01:00
cb88630d86
Bugfix: Make alloc_at return the start of the virtual memory range instead of the end
2022-11-20 15:11:53 +01:00
33876dcda4
Use _strto{i,u} in _atou and _atos
2022-11-20 09:28:17 +01:00
bde5de68ca
Simplify is_valid_digit_for_base by reaching out to parse_digit_unchecked
2022-11-20 09:24:21 +01:00
44f44aedca
Make _strtoi call _strtou, to deduplicate code
2022-11-19 22:52:08 +01:00