diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2025-05-08 08:51:52 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2025-05-08 08:51:52 +0000 |
| commit | 0b62fdb3fe657d056a42d7567b67951ba3468738 (patch) | |
| tree | 8d95b14bc044a3c729183c37893f010b8cdf4980 /arch/x86_64/src/kernel | |
| parent | be32189323ba8c46091d6deaf091cf41147426b4 (diff) | |
| download | teachos-0b62fdb3fe657d056a42d7567b67951ba3468738.tar.xz teachos-0b62fdb3fe657d056a42d7567b67951ba3468738.zip | |
wip allocating heap memory in user mode
Diffstat (limited to 'arch/x86_64/src/kernel')
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index 05c879e..43b5f90 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -63,6 +63,9 @@ namespace teachos::arch::kernel memory::heap::global_heap_allocator::register_heap_allocator(memory::heap::heap_allocator_type::LINKED_LIST); // heap_test(); + auto address = memory::heap::global_heap_allocator::kmalloc(8U); + (void)address; + context_switching::switch_to_user_mode(); } } // namespace teachos::arch::kernel |
