On Thu, May 7, 2009 at 10:58 PM, seshikanth varma
<[email protected]> wrote:
> This is the way i have defined the variables:
>
> volatile int                i asm("eax"); /* For using eax ebx ecx & edx for
> i, j , k  and l respectively.
>
>                                            *  All the threads shud use eax
> for i, ebx for j ...
>
>                                            */
> volatile int                j asm("ebx");
> volatile int                k asm("ecx");
> volatile int                l asm("edx");
>
> Though every thread has its own copy of registers,the registers eax, ebx ecx
> and edx are unique by name. So, the threads should be writing to these
> registers which means that these variables are shared.

Sorry you are right, I dont know what I was thinking about. :D

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to