Explorar el Código

Merge branch 'fix-kstack'

greatbridf hace 2 años
padre
commit
6982ae33f9
Se han modificado 1 ficheros con 1 adiciones y 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);
     }
 };