[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Question re do_switch_stack()



looking at do_stack_switch() (x86-32), I see that the switch is effected
by moving the new stack pointer into current->arch.kernel_sp. however,
entry.S only looks at kernel_sp in create_bounce_frame, but only if
we're not returning into ring 1.

how then is the switch caused? obviously the call to do_stack_switch
came from ring 1.

confused,
Avi

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.