From 1de74e599b97a9a91ed2e8a1799011faafebcef4 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 20 Dec 2019 22:11:22 +0100 Subject: [PATCH] Now impossible to dereference a null vector in user mode --- kaleid/kernel/mm/paging.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kaleid/kernel/mm/paging.c b/kaleid/kernel/mm/paging.c index c971178..2f161ea 100644 --- a/kaleid/kernel/mm/paging.c +++ b/kaleid/kernel/mm/paging.c @@ -71,9 +71,6 @@ void MmInitPaging(void) MmPT[i] = ((ulong)(i*KPAGESIZE)) | MF_PRESENT | MF_READWRITE; } - // NULL VECTOR - MmPT[0] = ((ulong)(0*KPAGESIZE)); - for (volatile ulong i = 0; i < NB_4K; i++) { MmPD[i] = (ulong)(&MmPT[i*512])| MF_PRESENT | MF_READWRITE; }