| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Robust FIFO |
Hello David,
In a message dated 26 Nov 96 you wrote to me :
>> I am needing a to write a fifo buffer of dynamic size
>> that can handle interrupts at ANY point during execution.
>> This is for an embedded microprocessor application and I
>> can't work out how to make the fifo robust enough to
>> handle the interrupts.
DN> Other than "embedded microprocessor application", you've not really
DN> given enough detail. The interrupt environment varies quite a lot from
DN> one architecture to another. Then problem you're going to run into is
DN> "dynamic size", however. If you have a fixed memory pool
size, you'll
DN> do fine - if you have to involve operating system support, well..
DN> that's another matter entirely.
Ok here's some more information:
I am writing some software which takes messages in from external events,
driven by interrupt. With the uProcessor it halts everything when an
interrupt happens, then returns to the instruction after the one it was
executing prior to interrupt. An interrupt places information in the fifo
(or queue, or pipe...) and a slow-speed function pulls it out when it is
required. The problem I am having is: What happens if I get interrupted
in a place where I am adjusting the size of the fifo? I am unable to
disable interrupts at this time as I cannot afford to miss a single
interrupt.
btw the uProcessor has a virtually non-existance OS so no probs there.
// Josh Marshall Fidonet 3:640/201.14
// ->MEMBER<- Internet joshua{at}st.net.au
\X/ Team Amiga Amiganet 41:400/869.14
... Accuracy: The vice of being right.
--- Mail Manager 1.21x/p #1219
* Origin: Borderline Technologies (3:640/201.14{at}fidonet)SEEN-BY: 633/267 270 @PATH: 640/201 201 820 711/409 808 50/99 635/728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.