@@ -8,7 +8,7 @@
#include <kernel/mm.hpp>
#include <types/list.hpp>
-struct process;
+class process;
struct thread;
struct process_attr {
@@ -406,7 +406,7 @@ static inline void map_raw_page_to_pte(
// map page to the end of mm_area in pd
int k_map(
- struct mm* mm_area,
+ mm* mm_area,
const struct page* page,
int read,
int write,
@@ -30,9 +30,8 @@ process::process(process&& val)
attr.system = val.attr.system;
k_esp = val.k_esp;
- for (auto& item : thds) {
+ for (auto& item : thds)
item.owner = this;
- }
val.k_esp = nullptr;
val.attr.system = 0;