Welcome, Guest. Please login or register.

Author Topic: Interrupt handling under WarpOS...  (Read 2853 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Interrupt handling under WarpOS...
« on: June 12, 2005, 11:57:52 AM »
Hi,

It's sunday an hour before I have to be at work, so that can only mean another silly developer question :-D

Is it possible to handle a hardware level interrupt on the PPC under warpos? Preferably without having a context switch orgy ;-)

If so, does anybody have any good examples?
int p; // A
 

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Interrupt handling under WarpOS...
« Reply #1 on: June 12, 2005, 03:16:22 PM »
No takers?
int p; // A
 

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Interrupt handling under WarpOS...
« Reply #2 on: June 13, 2005, 01:30:34 PM »
I'm not sure, that's the point :-)

I know there are soft interrupts that can be triggered, eg calling CausePPCInterrupt() (or whatever it's called) from the 68K etc, as a fast way of getting the PPC to do something (no cache arbitrartion is performed).

I need to find out if I can get the PPC under warpos to respond to a CIA level interrupt, preferably without a lot of context switches (without any, preferably).
int p; // A
 

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Interrupt handling under WarpOS...
« Reply #3 on: June 13, 2005, 02:39:04 PM »
An interrupt issued by the GPU. I'm not sure if it is accessible (but I can see the pin is connected to some logic on the card), but it will show up in the CIA if it shows up anywhere.

-edit-

Obviously finding out if the interrupt does show up is doable on the 68K, but I need it for something PPC based.
int p; // A
 

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Interrupt handling under WarpOS...
« Reply #4 on: June 13, 2005, 04:28:24 PM »
Oh I looked at it, but hardware anaylsis isn't my field. I know the interrupt line of the GPU is connected to logic on the graphics card but where it ends up is anybody's guess.

I'll try to see if it shows up, assuming I can persuade the GPU to issue it in the first place.

I truly have no idea if the PPC can actually directly respond to such an interrupt if it does show up.

Worst case scenario is that the interrupt would be handled by a 68K task that can wake the PPC, but I don't really want anything that requires an 800 microsecond round trip for something fairly time critical ;-)

At least this shouldn't be a problem in OS4 :-)
int p; // A
 

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Interrupt handling under WarpOS...
« Reply #5 on: June 13, 2005, 05:01:07 PM »
@Itix

True, but of course these are complete OS's. I am referring specifically to WarpOS and wether or not it is possible for a WarpOS PPC app to respond to an interrupt without 68K intervention.

Hence why I added "At least this shouldn't be a problem in OS4 " on an earlier post ;-)

Specifically for the pedants, then, can you install a PPC native interrupt handler under WarpOS?
int p; // A
 

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Interrupt handling under WarpOS...
« Reply #6 on: June 17, 2005, 05:40:34 PM »
Seeing as Piru is around....

:bump:

The question is, can you *under WarpOS* install a PPC native (ie: without needing 68K at any point during handling) interrupt handler for hardware interrupts?
int p; // A
 

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Interrupt handling under WarpOS...
« Reply #7 on: June 17, 2005, 06:05:06 PM »
@Piru

Personally I don't rate either WOS or PUp, but alas the choice is not mine to make in this case. This is actually WOS shared library that I'm messing around with. Recompiling it for another target (at present) makes no sense as it is not directly used but forms a sub component of a larger system.
int p; // A