I want to know how CPU behave when there's no stack available(SS:ESP points to an virtual address which is not mapped to physical memory). The environment is in protection-mode. Following is my understanding:
Because there's no PTE for stack, the instruction "push eax" will result in a #SS. Responding to this #SS, the CPU will push EFLAGS, CS, EIP and ERROR_CODE into stack and turn to exception handler. But the new push will generate new #SS for the same reason... and the process will deadlock here.
Is my understanding correct?
Thanks,
Min
Message Edited by minwang on 11-23-2004 06:23 PM
Message Edited by minwang on 11-23-2004 06:24 PM
Message Edited by minwang on 11-23-2004 06:31 PM
Message Edited by minwang on 11-24-2004 03:02 PM

