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/user | |
| 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/user')
| -rw-r--r-- | arch/x86_64/src/user/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/user/main.cpp b/arch/x86_64/src/user/main.cpp index 4f6e688..59647f8 100644 --- a/arch/x86_64/src/user/main.cpp +++ b/arch/x86_64/src/user/main.cpp @@ -17,8 +17,8 @@ namespace teachos::arch::user // kernel::cpu::clear_interrupt_flag(); // Causes crash Kernel Code (.text) is not mapped in User mMde - auto test = memory::heap::global_heap_allocator::malloc(20U); - (void)test; + auto address = memory::heap::global_heap_allocator::malloc(8U); + (void)address; // auto test = new int{20}; // Causes crash Heap is not mapped in User Mode // (void)test; |
