On Sat, 5 Apr 2003, Bruce Evans wrote: > Recent optimizations of context switching are large pessimizations > according to lmbench2, at least in the default case (no LAZY_SWITCH).
The ifdefs are just so convoluted that they are broken in the !LAZY_SWITCH case. %%% Index: swtch.s =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/swtch.s,v retrieving revision 1.136 diff -u -2 -r1.136 swtch.s --- swtch.s 2 Apr 2003 23:53:28 -0000 1.136 +++ swtch.s 5 Apr 2003 10:40:20 -0000 @@ -175,4 +175,5 @@ #endif 1: +#endif movl %cr3,%ebx /* The same address space? */ cmpl %ebx,%eax @@ -182,6 +183,4 @@ je sw1 #endif -#endif - #ifdef SWTCH_OPTIM_STATS incl tlb_flush_count %%% Bruce _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"