Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.

Ring 0 - CPU [0-3] - Stack segment

mguptamel
Beginner
485 Views

Hi all,

When CPU switches from Ring-3 to Ring-0, SS is also switched to Ring-0 stack. In a multi-processor environment, if there are N number of CPU's, does each CPU will have it's own Ring-0 stack?

Regards

Gupta

0 Kudos
1 Solution
jimdempseyatthecove
Honored Contributor III
485 Views
Each hardware thread would require a seperate stack.

Note, the seperate stacks can be seperate areas within the same selector (with different esp/rsp) or within different selectors. This is an operating system design issue.

Jim Dempsey

View solution in original post

0 Kudos
1 Reply
jimdempseyatthecove
Honored Contributor III
486 Views
Each hardware thread would require a seperate stack.

Note, the seperate stacks can be seperate areas within the same selector (with different esp/rsp) or within different selectors. This is an operating system design issue.

Jim Dempsey
0 Kudos
Reply