Re: protected type interrupts



REH wrote:
I am having a disagreement with a compiler vendor. I am using a
protected type for an interrupt handler (see below). The handler
simply sets a boolean to true that an entry is using as a guard. The
entry is called by a task. Basically, the task is blocked until
signaled by the interrupt to do the processing. With newer versions of
their compiler, the computer resets. They say it is because they are
calling the entry at the interrupt level, and not the task level (we
process this in a task because we have to do things you cannot do in a
interrupt). They say the LRM allows them to do this. Is that true? I
call the entry from a task, but its allow to be executed in the
interrupt handler. That does not seem right.

If a call to a procedure or entry of a protected object changes the barrier on another entry to True, the thread of control that changed the barrier is allowed to execute the newly open entry on behalf of the task that called it. So the entry is not being executed in the interrupt handler, but by the thread of control that called the interrupt handler.

--
Jeff Carter
"Now go away or I shall taunt you a second time."
Monty Python & the Holy Grail
07
.



Relevant Pages

  • Re: protected type interrupts
    ... barrier on another entry to True, the thread of control that changed the barrier is allowed to execute the newly open entry on behalf of the task that called it. ... So the entry is not being executed in the interrupt handler, but by the thread of control that called the interrupt handler. ... But since you specified a priority for the PO, you still execute at interrupt priority. ...
    (comp.lang.ada)
  • Iptables action Return; Resolved automatic Static routes - Thanks
    ... My thanks to Ed Wilts for helping me to enable static routes ... Edited with entry for instance: ... worked to make the scripts execute automatic. ...
    (RedHat)
  • Task vs Protected Type
    ... I would like to understand a sentence of the wikibook. ... entry Initialize; ... this is a protected type with exclusive mutex on entry and procedure and absolutly no thread implementation ...
    (comp.lang.ada)
  • Want telnetd to execute different program than default (/bin/login)
    ... I would like my fedora core 1 system to execute a program other than ... When I change the entry in /etc/xinetd.d/telnet to furnish the command ... I got this error message: ... I tried enclosing the server argument in quotes: ...
    (comp.os.linux.misc)
  • Re: "What she said!"
    ... items high and the list is several hundred items long and you've ... when the drop-down box appears, type the first letter of ... the entry you're looking for...most browsers will immediately jump to the first ... What good is being an executive if you never get to execute anyone? ...
    (alt.usage.english)