diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-04-01 11:12:20 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-01 11:12:20 +0200 |
| commit | 419f4bebff5745b46bf30092dc7a7ca43449ea2e (patch) | |
| tree | 4b509ca6da26eeadaec193440c936954e4367f4e /kernel/tests/src/main.cpp | |
| parent | c30ba8bc8c1cf80a7e9b46e9f1a66dc1b409fcbd (diff) | |
| download | teachos-419f4bebff5745b46bf30092dc7a7ca43449ea2e.tar.xz teachos-419f4bebff5745b46bf30092dc7a7ca43449ea2e.zip | |
kernel/tests: implement basic simulated memory
Diffstat (limited to 'kernel/tests/src/main.cpp')
| -rw-r--r-- | kernel/tests/src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/tests/src/main.cpp b/kernel/tests/src/main.cpp index c0ec12f..69fd633 100644 --- a/kernel/tests/src/main.cpp +++ b/kernel/tests/src/main.cpp @@ -12,6 +12,10 @@ auto main(int argc, char ** argv) -> int kapi::interrupts::enable(); kapi::memory::init(); + // note: no kernel heap is created, since we are in the test environment. Nonetheless, we still initialize the memory + // subsystem, so that components that rely on it can be tested. No component must ever rely on the heap allocator + // directly, rather they have to go through the new and delete. However, some components may use the frame allocator + // and page mapper in order to perform their tasks. return Catch::Session().run(argc, argv); } |
