Stacks...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
DarylD

Re:Stacks...

Post by DarylD »

As far as I know you can't have page fault based stack extension for kernel stacks but you can for user (ring 3) stacks because the TSS stores the SS/ESP for the ring 0 side of things.

But a stack fault in ring 0 will simply not work because it won't be able to push error codes/flags etc.

Well, thats how I thought it worked anyway!

Daryl.
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:Stacks...

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:18 pm, edited 1 time in total.
Tim

Re:Stacks...

Post by Tim »

Pype.Clicker wrote:Tim, correct me if i'm wrong, but it's not possible to have virtual-expandable stacks in kernel mode, is it ? If so, how the hell could the page fault be received by a stack that needs to be extended ?
You're right, you can't (officially) use demand-paged stacks in kernel mode, for that reason.
Post Reply