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:
parent
7cc39e37dc
commit
1de74e599b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user