Kernel: Remove obsolete userspace stuff from kernel

This commit is contained in:
Bananymous
2023-04-22 15:37:45 +03:00
parent fadce063a7
commit e0ce2394fe
5 changed files with 1 additions and 45 deletions

View File

@@ -99,9 +99,6 @@ namespace BAN::Formatter
}
extern "C" uintptr_t g_userspace_start;
extern "C" uintptr_t g_userspace_end;
extern "C" uintptr_t g_kernel_start;
extern "C" uintptr_t g_kernel_end;
@@ -204,8 +201,7 @@ static void jump_userspace()
{
using namespace Kernel;
MMU::get().map_range((uintptr_t)&g_userspace_start, (uintptr_t)&g_userspace_end - (uintptr_t)&g_userspace_start, MMU::Flags::UserSupervisor | MMU::Flags::Present);
MMU::get().map_range((uintptr_t)&g_kernel_start, (uintptr_t)&g_kernel_end - (uintptr_t)&g_kernel_start, MMU::Flags::UserSupervisor | MMU::Flags::Present);
MMU::get().map_range((uintptr_t)&g_kernel_start, (uintptr_t)&g_kernel_end - (uintptr_t)&g_kernel_start, MMU::Flags::UserSupervisor | MMU::Flags::Present);
MUST(Process::create_userspace("/bin/test"sv));
}