Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to ensure atomic execution of code in Windows Driver

Status
Not open for further replies.

Pinczakko

Full Member level 2
Joined
Jul 29, 2004
Messages
138
Helped
13
Reputation
26
Reaction score
0
Trophy points
1,296
Location
Taka Bonerate National Park, Indonesia
Activity points
1,608
Anyone have an idea how to ensure atomic execution of code in Windows Kernel mode driver?

I need this because my driver will run in multiprocessor system and I have to ensure that some of instruction is executed atomically. The reason for this is the routine is accessing the bus of the system without doing it through the Windows kernel API because th functionality is not provided by the kernel.

TIA,

Pinczakko
 

btbass

Advanced Member level 5
Joined
Jul 20, 2001
Messages
1,897
Helped
438
Reputation
880
Reaction score
287
Trophy points
1,363
Location
Oberon
Activity points
12,861
Use the interrupt request level (IRQL)priority scheme by claiming and releasing spin locks around critical code sections.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top