|
Register or have you forgotten your password?
|
|
|
| Amiga OS -- Development This particular forum deals with issues regarding development for all versions of AmigaOS. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#16 | ||||||||
|
Beginner
![]()
|
@Piru
Whouldent you get in trouble if a 68k application used that tick and ended up is a PPC code function. I can imagine that the Emulator jumping from a 68k function to another 68k function, but crossing over whould lead into trouble. RWO
__________________
Debugging is a state of mind |
||||||||
|
|
|
|
|
#17 | ||||||||||
|
' union select name,pwd--
Join Date: Aug 2002
Location: Helsinki, Finland
Posts: 6,946
|
@RWO
Quote:
Quote:
Code:
#include <emul/emulregs.h>
#include <emul/emulinterface.h>
#include <exec/ports.h>
#include <exec/libraries.h>
#include <clib/debug_protos.h>
void func(void)
{
struct MsgPort *port = (APTR) REG_A1;
struct Library *SysBase = (APTR) REG_A6;
kprintf("SysBase 0x%lx port 0x%lx\n", SysBase, port);
}
static const struct EmulLibEntry GATEfunc =
{
TRAP_LIBNR, 0, func
};
...
mp->mp_Node.ln_Type = NT_MSGPORT;
mp->mp_Flags = 3;
mp->mp_SigTask = (APTR) &GATEfunc;
NEWLIST(&mp->mp_MsgList);
|
||||||||||
|
|
|
|
|
#18 | ||||||||
|
Beginner
![]()
|
@Piru
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. RWO
__________________
Debugging is a state of mind |
||||||||
|
|
|
|
|
#19 | |||||||||
|
' union select name,pwd--
Join Date: Aug 2002
Location: Helsinki, Finland
Posts: 6,946
|
@RWO
Quote:
If there is any OS that will fail in that case, then the OS in question is broken beyond repair. You just can't change the way these things work. |
|||||||||
|
|
|
|
|
#20 | |||||||||
|
Defender of the Faith
![]()
Join Date: Oct 2002
Posts: 1,874
|
Quote:
68k function pointer in the mp_SigTask is not different than 68k function pointer in the h_Entry of struct Hook for example.
__________________
Only MorphOS makes it possible \o_ |
|||||||||
|
|
|
![]() |
| Bookmarks |
| Tags |
| time , interval , implementation , handling , exec , exception |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exception troubles! | Karlos | Amiga OS -- Development | 25 | 12-05-2010 07:58 AM |
| Excessive gcc/C++ exception handling bloat | Karlos | Amiga OS -- Development | 0 | 04-08-2007 09:26 AM |
| From low level exception handling to high level... | Karlos | Amiga OS -- Development | 34 | 11-14-2006 06:28 AM |
| Interrupt handling under WarpOS... | Karlos | Amiga OS -- Development | 12 | 06-17-2005 11:05 AM |
| File handling under AmigaOS 3.x | mikeymike | Amiga Software Issues and Discussion | 5 | 09-26-2003 03:57 AM |