Software Archive
Read-only legacy content

#SS in #SS

minwang
Beginner
572 Views
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

0 Kudos
2 Replies
Intel_Software_Netw1
572 Views
Our engineers would like to know which CPU(s) you are specifically asking about. Thanks in advance for your clarification.
Regards,

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

Message Edited by intel.software.network.support on 12-02-2005 01:11 PM

0 Kudos
chazzeromus
Beginner
572 Views
I would not think a deadlock would occur becuase the I think the CPU is already acknowledged it's generating an exception, if an exception occurs whilst in one a double fault occurs resulting in a CPU reset. Not sure if all models do that.
0 Kudos
Reply