What does instruction LA mean?

Dan Malek dan at mvista.com
Wed Mar 28 16:19:10 EST 2001


Jones Madhuri wrote:

> I am novice in Power PC assembly code and I am trying
> compile in following code (written by someone else)
> into head_8xx.S.

Novice or otherwise, you shouldn't be placing any code in
head_8xx.S.  It's a guarantee you won't get Linux to boot.


> mfspr r3, IC_CST
> LA r4, IC_CST_LEN
>
> However the hardhat assembler doesn't understand the
> mnemonic LA,

Because there is no such instruction.  It looks like a
macro that will result in the two instruction pair:
	lis	r4, IC_CST_LEN at h
	ori	r4, r4, IC_CST_LEN at l

You shouldn't be messing around with those cache
management registers......


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/






More information about the Linuxppc-embedded mailing list