Reputation: 1
i understand that NULL pointer has special meaning and if pointer points to virtual address 0 then it will be same. So this is main reason of protection on first virtual page?
i tried to map the memory with fixed virtual addresses
Upvotes: 0
Views: 46
Reputation: 21647
The only reason is to catch common programming errors involving uninitialized pointers. Doing so, makes a pointer to 0 point to nothing (NULL, NIL). Keep in mind that most operating systems allow users to map the first logical memory page to the address space if they really want to do so.
Upvotes: 0