diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2025-05-08 12:34:57 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2025-05-08 12:34:57 +0000 |
| commit | d7205b75cda2caff078cea26ff1508f9daa5b4cc (patch) | |
| tree | 65e05b7fd74d4b6629166630c40c49e3458b8b44 /arch/x86_64 | |
| parent | 0b62fdb3fe657d056a42d7567b67951ba3468738 (diff) | |
| download | teachos-d7205b75cda2caff078cea26ff1508f9daa5b4cc.tar.xz teachos-d7205b75cda2caff078cea26ff1508f9daa5b4cc.zip | |
make user_allocator_instance be part of user_data section
Diffstat (limited to 'arch/x86_64')
| -rw-r--r-- | arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp b/arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp index d0d1080..6fcab6f 100644 --- a/arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp +++ b/arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp @@ -77,7 +77,7 @@ namespace teachos::arch::memory::heap private: static heap_allocator * kernel_allocator_instance; ///< Instance used to allocate and deallocate kernel heap memory - static user_heap_allocator * + [[gnu::section(".user_data")]] static user_heap_allocator * user_allocator_instance; ///< Instance used to allocate and deallocate user heap memory /** |
