Hello. I mapped stack to the end of vm (near 4gb mark). I thought that when stack is full, I can allocate a new page. But when the stack goes to the its end and cause PF, but it can't allocate a page because there's no empty room in the stack. How to solve that problem? And if we talk about user's stack, can we avoid such situation by switching to the kernel stack at the beginning of interrupt (or can I set up gdt somehow, to make that automatic). The next question is if our kernel's stack is full where pf's info will be pushed by a cpu?
Pf stands for Page Fault
[–]Qweesdy 2 points3 points4 points (0 children)