Re: spinlock_irq needed
"Axel Dörfler" <[email protected]> Tue, 13 Nov 2007 20:48:15 +0100
| Newsgroups | gmane.os.openbeos.kernel.devel |
|---|---|
| Message-ID | <344637164-BeMail@ibm> |
"Salvatore Benedetto" <[email protected]> wrote: > I followed the BeBook at this link > http://www.sffjunkie.co.uk/beos/BeBook/DeviceDrivers_Functions.html > and I'm using the following code > spinlock lock = 0; > cpu_status former = disable_interrupts(); > acquire_spinlock(&lock); Are you actually creating a spinlock on the stack? Because that wouldn't make any sense. Bye, Axel. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/