This document specifies two obsolete interrupt handling methods and describes their replacement.
The obsolete NKern interrupt methods are:
These methods are used (with other methods in the NKern class) to protect shared data between an ISR (Interrupt Service Request) and a thread (or a DFC (Delayed Function Call )).
The steps involved in disabling/enabling an interrupt are:
These methods only affect the core that the thread is running on instead of all the cores on the system.
These methods have been replaced by the following:
Spin Lock macros
These macros automatically carry out the required interrupt operations.
These obsolete methods are used within drivers and the following points should be considered when removing them:
Could the same functionality be accomplished by disabling the interrupts in hardware?
Are these methods required at all?
If memory is not accessible in ISR (Interrupt Service Request) routines, then use spin locks or atomic operations.
Explore the use of DFC (Delayed Function Call) signalling.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.