Re: make amd64 return-to-user and sigreturn faster

2011-07-03 Thread Kenneth R Westerback
On Sat, Jul 02, 2011 at 04:27:15PM -0600, Philip Guenther wrote: > First, expand the INTR_RESTORE_GPRS macro and then rearrange the register > restores around the INTR_RESTORE_SELECTORS macro to minimize how long > interupts are blocked. This also lets us eliminate all the adjusting of > the st

make amd64 return-to-user and sigreturn faster

2011-07-02 Thread Philip Guenther
First, expand the INTR_RESTORE_GPRS macro and then rearrange the register restores around the INTR_RESTORE_SELECTORS macro to minimize how long interupts are blocked. This also lets us eliminate all the adjusting of the stack pointer except for the necessary one on the iretq path. Instead of h