mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[kernel] Use kernel proc space as kernel space
As mentioned in the last commit, with processes owning spaces, there was a weird extra space in the "kernel" process that owns the kernel threads. Now we use that space as the global kernel space, and don't create a separate one.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "log.h"
|
||||
#include "objects/process.h"
|
||||
#include "objects/thread.h"
|
||||
#include "objects/vm_area.h"
|
||||
#include "page_manager.h"
|
||||
@@ -52,8 +53,7 @@ vm_space::~vm_space()
|
||||
vm_space &
|
||||
vm_space::kernel_space()
|
||||
{
|
||||
extern vm_space &g_kernel_space;
|
||||
return g_kernel_space;
|
||||
return process::kernel_process().space();
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user