HAH! This patch was posted by iedowse in response to one of MY POSTS and it does EXACTLY what I described in my previous Email, point (2).
PLZ DO NOT BRING MY HOPES UP BY STATING THAT THERE IS ANOTHER PATCH WHICH DOES SOMETHING DIFFERENT WHEN IT FACT IT DOES WHAT I ALREADY KNOW I SHOULD DO K PLZ THX. :-))))) (I'm just fooling around, thanks for the pointer anyway. :-)) Cheers, Bosko On Fri, May 31, 2002 at 10:02:21PM +0000, Glenn Gombert wrote: > Here is the patch from a previous posting that fixes the problem of > running FreeBSD -Current as a Guest OS under VMWare Workstation 3.0: > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > Someone mentioned on a list somewhere that vmware takes forever to > emulate the cmpxchg instruction, and that using the I386_CPU version > of atomic_cmpset_int() helps a lot. I noticed a major vmware slowdown > with -current sometime in September, so I tried avoiding the > cmpxchg's and things got much faster. Below is the patch I use > (using this outside vmware on SMP hardware is a bad idea :-). > > Ian > > Index: atomic.h > =================================================================== > RCS file: /dump/FreeBSD-CVS/src/sys/i386/include/atomic.h,v > retrieving revision 1.21 > diff -u -r1.21 atomic.h > --- atomic.h 2001/10/08 20:58:24 1.21 > +++ atomic.h 2001/10/09 18:35:25 > @@ -111,7 +111,7 @@ > * Returns 0 on failure, non-zero on success > */ > > -#if defined(I386_CPU) > +#if defined(I386_CPU) || 1 > static __inline int > atomic_cmpset_int(volatile u_int *dst, u_int exp, u_int src) > { > > > Glenn G. > > > -- > Glenn Gombert > [EMAIL PROTECTED] > > "Never trust any operating system you don't have the source code for" > > -- > http://fastmail.fm - Get back to work > -- Bosko Milekic [EMAIL PROTECTED] [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message