From d7205b75cda2caff078cea26ff1508f9daa5b4cc Mon Sep 17 00:00:00 2001 From: Fabian Imhof Date: Thu, 8 May 2025 12:34:57 +0000 Subject: make user_allocator_instance be part of user_data section --- arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch') 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 /** -- cgit v1.2.3