JoJo wrote:
So do I need to change this??
{
/* Set first ticks value */
if(!MyTimer)
PPC_TimerInit();
PPCGetTimerObject(MyTimer,PPCTIMERTAG_CURRENTTICKS,start);
start[1]>>=10;
start[1]|=((result[0]&0x3ff)<<22);
start[0]>>=10;
}
Hi jo jo,
Hmmm. That looks suspiciously like ppc.library dependent code.
You can ususally tell ppc.library stuff - the ppc native function are named like 'PPCSomethingOrOther()'.
The ppc.library and its associated functions are from phase5's powerUP kernel.
WarpOS is a rival kernel was developed by Haage&partner and is not directly comaptible with powerUP (there is an emulation available though).
WarpOS ppc native function names are ususally named like 'SomethingOrOtherPPC()'.
What you seem to have here is case 1 in my original answer - there is ppc.library dependent code in your project.
So, to answer your question, yes, you will need to change the above code to use the equivalent resources available in the WarpOS kernel.
I don't have access to my dev info just now, but WarpOS has also has a ppc native timer function that morror the 68k's timer.device's 'GetSysTime()' - called, unsurprisingly, GetSysTimePPC().
Creating delays with warpOS is also relatively easy. It has a function that behaves like exec.library's Wait(), but with an additional timeout argument. I think it's called WaitTimePPC().
Anyway, don't worry about my post about the linked library stuff - it was just a general gcc linking question and nothing to do with your code :-)