HardwareBanter

HardwareBanter (http://www.hardwarebanter.com/index.php)
-   Intel (http://www.hardwarebanter.com/forumdisplay.php?f=9)
-   -   How to make the 2 CPUs access a global unaligned variable at the same time? (http://www.hardwarebanter.com/showthread.php?t=189342)

Steven Zhou July 31st 11 03:24 PM

How to make the 2 CPUs access a global unaligned variable at the same time?
 
Hello,

I want to test the atomic access API of my OS.

Assume that my test board has 4 CPUs (CPU0 ~ CPU3) and I want the
CPU2 and CPU3 to access a global unaligned 32-bit variable
simultaneously. How to implement this test by the means of software?
Trigger IPI to the logical group including CPU2 and CPU3?
Or any suggestion?

Thanks in advance.


All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HardwareBanter.com