To: | |
---|---|
Subject: | Re: [ts-7000] Re: Disabling interrupts |
From: | "Don W. Carr" <> |
Date: | Sun, 22 Oct 2006 18:42:19 -0500 |
On a stock kernel, I don't think it would be possible to disable interrupts from user mode, but, with this kernel, it is set up to let you do a lot more, like mmap() even. What you need to do is look up the assembly instruction on arm for disabling interrupts, and then use in-line assembly from your C code.
However, you should only disable interrupts for a few microseconds typically, and I am not sure what it would do disabling them for seconds. It would obviously cause the kernel to miss clock ticks and the clock would be off, but not sure what else it would do. I also need to disable interrupts as well for an application where I want to read two counters, one an internal free running counter, and another, and XDIO counter counting pulses on an external signal, so I can measure exact time between external counter readings. In my case however, it would be less than a microsecond or two that interrupts are disabled. Well, if anybody has the assembly code to disable (and re-enable) interrupts, let us know. On 10/22/06, mikedupuis2000 <> wrote:
|
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [ts-7000] loading kernel with TFTP problem, Jim Jackson |
---|---|
Next by Date: | Re: [ts-7000] BUS PC/104 - C/C++, Don W. Carr |
Previous by Thread: | [ts-7000] Re: Disabling interrupts, mikedupuis2000 |
Next by Thread: | Re: [ts-7000] Re: Disabling interrupts, Jim Jackson |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU