From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a79e3b493c2ba811 X-Google-Attributes: gid103376,public From: Rick Stikkers Subject: Re: Interrupt Handlers using GNAT-VxWorks? Date: 1999/10/14 Message-ID: <38066C52.AE47DC6D@telis.org>#1/1 X-Deja-AN: 536870186 Content-Transfer-Encoding: 7bit References: <7u500m$e96@niven.ksc.nasa.gov> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: news.inreach.com 939944773 209.209.67.223 (Thu, 14 Oct 1999 16:46:13 PDT) Organization: InReach Internet MIME-Version: 1.0 NNTP-Posting-Date: Thu, 14 Oct 1999 16:46:13 PDT Newsgroups: comp.lang.ada Date: 1999-10-14T00:00:00+00:00 List-Id: I was able to attach to an interrupt using a task entry. This code worked with the Verdix Ada-83 cross compiler running in SUNOS 4.1.4 with a target of a VME 68040 processor. Hopefully it will work for you. Rick clock_interrupt_vector : constant := 16#44#; task timer_tick is entry start; entry tick_isr; for tick_isr use at SYSTEM.address'ref( clock_interrupt_vector ); pragma passive( interrupt, 16#0700# ); end timer_tick; John Arnsparger wrote: > I am trying to attach an interrupt handler (procedure) to Vector #29 > (decimal) on the mvme167 > board using Ada95 "protected" constructs. I have tried > Ada.Interrupts.Attach_Handler, > which results in "Program_Error: Trying to overwrite a static Interrupt > Handler" with a dynamic handler". > > I have also tried the "pragma Attach_Handler", which produces a run-time > error saying > "Unitialized Interrupt". > > Both of these were declared in package bodies. > > Does anyone have any helpful hints or examples of successfully doing this > with GNAT-Works m68K? Or pointers to better references than the LRM? :-) > > Thanks. > > John M. Arnsparger > Lockheed Martin Space Operations > e-mail john.arnsparger1@jsc.nasa.gov > Phone (281) 244 9693 > Fax (281) 244 9681