All times are UTC-06:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Feb 16, 2009 8:57 am 
Offline

Joined: Mon Feb 16, 2009 8:42 am
Posts: 1
Hi to everybody,

i work with a MPC5200 and a hardware similar to a Lite5200B evaluation board. I'don't use a operativ system but only the Quickstart tool included with CodeWarrior for mobilegt 9.2.
I've done a standalone application that is able to load on external ram a RomImage of a project. At this point i've only to let the romimage start in the correct way. i'm not skilled in assembly but i tried so:


asm Fork(void)
{
lis r3,0x0010
addi r3,r3,0x0000
mtlr r3
frfree
blr
}

By calling this function if the starting address of romimage is 0x00100000 it sholud work as on subroutine exit the PC register is loaded with that value.
But i've problem...
Has anybody any ideas?
hi everybody


Top
   
PostPosted: Thu May 14, 2009 11:05 am 
Offline

Joined: Tue Mar 31, 2009 10:24 pm
Posts: 171
Quote:
asm Fork(void)
{
lis r3,0x0010
addi r3,r3,0x0000
mtlr r3
frfree
blr
}

By calling this function if the starting address of romimage is 0x00100000 it sholud work as on subroutine exit the PC register is loaded with that value.
But i've problem...
Has anybody any ideas?
i'm not a ppc CW user, but are you sure your Fork() actually has a stack frame? otherwise that frfree directive will wreak havok.

btw, that addi with 0 is effectively a nop.

edit: please excuse my thread necromancy, i did not pay attention of the OP date.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 45 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group