Welcome, Guest. Please login or register.

Author Topic: Exec exception handling and a time interval implementation...  (Read 5440 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show all replies
1) Exceptions are not safe. They can interrupt your program flow at critical point.

2) You cant do much from interrupts. Most system calls are big no no.
My Amigas: A500, Mac Mini and PowerBook
 

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show all replies
Re: Exec exception handling and a time interval implementation...
« Reply #1 on: June 09, 2006, 02:01:36 PM »
Quote

Yes I can understad that adding a Trap function in the mp_SigTask will work but I were thinking more in the lines like we have an old program 68k and an old system 68k.. now as time go by the system get upgraded to PPC, then the old program still has a direct address and not a Trap.. in that case I se it fail.


Trap instruction (0xff00 family instructions) is not needed for 68k code. It just only indicates start of PPC code and when there is not trap the stuff is executed in 68k emulation mode.

68k function pointer in the mp_SigTask is not different than 68k function pointer in the h_Entry of struct Hook for example.
My Amigas: A500, Mac Mini and PowerBook