Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2002 11:10:15 -0400 (EDT)
From:      Kenneth Culver <culverk@alpha.yumyumyum.org>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: Please test PAUSE on non-Intel processors
Message-ID:  <20020524110942.X67260-100000@alpha.yumyumyum.org>
In-Reply-To: <XFMail.20020524102553.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I tested this on my T-bird athlon 800, and this is the result:

Testing PAUSE instruction:
Register esp changed: 0xbfbffb38 -> 0xbfbffafc

So I guess there's no problem.

Ken

On Fri, 24 May 2002, John Baldwin wrote:

> Hey gang, although Intel's document seems to claim that they tested
> proper operation of pause I'd like people with non-Intel processors
> to verify that it actually works.  Please compile the attached test
> program and run it.  The output should look like this:
>
> > ./pt
> Testing PAUSE instruction:
> Register esp changed: 0xbfbff9fc -> 0xbfbff9c0
>
> If you get a signal or any of the other registers change their value,
> please let me know.  I've tested this on a Pentium III mobile, a K6-II,
> and an Athlon.  The program cmopiles ok on both stable and current.
>
> -----FW: <200205212226.g4LMQaV68801@freefall.freebsd.org>-----
>
> Date: Tue, 21 May 2002 15:26:36 -0700 (PDT)
> Sender: owner-cvs-committers@FreeBSD.org
> From: John Baldwin <jhb@FreeBSD.org>
> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
> Subject: cvs commit: src/sys/kern kern_mutex.c
>
> jhb         2002/05/21 15:26:36 PDT
>
>   Modified files:
>     sys/kern             kern_mutex.c
>   Log:
>   Add appropriate IA32 "pause" instructions to improve performanec on
>   Pentium 4's and newer IA32 processors.  The "pause" instruction has been
>   verified by Intel to be a NOP on all currently existing IA32 processors
>   prior to the Pentium 4.
>
>   Revision  Changes    Path
>   1.95      +17 -1     src/sys/kern/kern_mutex.c
>
> --------------End of forwarded message-------------------------
>
> --
>
> John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020524110942.X67260-100000>