Now impossible to dereference a null vector in user mode
This commit is contained in:
parent
7cc39e37dc
commit
1de74e599b
|
@ -71,9 +71,6 @@ void MmInitPaging(void)
|
||||||
MmPT[i] = ((ulong)(i*KPAGESIZE)) | MF_PRESENT | MF_READWRITE;
|
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++) {
|
for (volatile ulong i = 0; i < NB_4K; i++) {
|
||||||
MmPD[i] = (ulong)(&MmPT[i*512])| MF_PRESENT | MF_READWRITE;
|
MmPD[i] = (ulong)(&MmPT[i*512])| MF_PRESENT | MF_READWRITE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue