1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

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

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