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

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

mguptamel
Beginner
143 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
Black Belt
143 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

1 Reply
jimdempseyatthecove
Black Belt
144 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
Reply