Explorar o código

Merge branch 'fix-kstack'

greatbridf %!s(int64=2) %!d(string=hai) anos
pai
achega
6982ae33f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/kernel/process.hpp

+ 1 - 1
include/kernel/process.hpp

@@ -95,7 +95,7 @@ public:
     constexpr ~thread()
     {
         if (kstack)
-            free_n_raw_pages(to_page(kstack), 2);
+            free_n_raw_pages(to_page(kstack - THREAD_KERNEL_STACK_SIZE), 2);
     }
 };