Now impossible to dereference a null vector in user mode

This commit is contained in:
Adrien Bourmault 2019-12-20 22:11:22 +01:00
parent 7cc39e37dc
commit 1de74e599b
1 changed files with 0 additions and 3 deletions

View File

@ -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;
}