K 10 svn:author V 3 kib K 8 svn:date V 27 2008-08-15T09:08:35.264513Z K 7 svn:log V 605 MFC r177535 by peter: (Micro)optimization of cpu_switch for amd64. Because r173004 (pure kernel threads) is not MFCed to stable/7, I use P_KTHREAD flag from curthread->td_proc->p_flag instead of TDP_KTHREAD flag from curthread->td_pflags to test whether the fs/gs bases need to be restored [1]. No objections for MFC from: peter Suggested by: jhb [1] MFC r180992: Bring back the save/restore of the %ds, %es, %fs and %gs registers for the 32bit images on amd64. The end result is almost complete syncronization of the amd64/amd64/cpu_switch.S between head and stable/7, besides TDP_KTHREAD difference. END