what means this symbol "@"?
In u-boot/cpu/mpc8xx/start.S,I usually find this symbol "@",such as followed:
_start:
lis r3, CFG_IMMR at h /* position IMMR */
mtspr 638, r3
li r21, BOOTFLAG_COLD /* Normal Power-On: Boot from FLASH */ b boot_cold
what does it means? Thank you!
Quoted 10 lines · seaman
In u-boot/cpu/mpc8xx/start.S,I usually find this symbol "@",such as followed:
_start:
lis r3,CFG_IMMRat h /* position IMMR */
mtspr 638, r3
li r21,BOOTFLAG_COLD/* Normal Power-On: Boot from FLASH */ bboot_coldwhat does it means? Thank you!
The motorola assembler info, whether on the website, or in hardcopy can be impenetrable. However, knowing from that, what the lis instruction does, it can not be hard to deduce what XXXX at h means, especially when it is often found in the context:
lis r3,XXXXX at h
ori r3,XXXXX at l
To confirm, try assembling and locating (with ld) a few lines, then use something like:
powerpc-linux-objdump -S the_resulting_elf_file > /tmp/dump
and examine what part of the address goes where.
Regards,
Erik
A message that is not in the archive (sent off-list or not yet received): [email protected]
Thank you!Now I understand it.
lis r1,value =addis r1,0,value
----- Original Message -----
From: "Udi Finkelstein" <[email protected]>
To: "seaman" <[email protected]>
Sent: Thursday, May 08, 2003 4:42 PM
Subject: Re: [U-Boot-Users] what means this symbol "@"?
Quoted 52 lines
My guess is that "@h" means a 16-bit constant made of the upper 16-bot of
CFG_IMMR.It took me a lot of time to find what "lis" is. I couldn't find it in either the IBM arch. manual I had, or the MPC823 manual. Only after I looked at the obcode, I found that this is actually something like a private case of the add immediate instruction or something like that, where the 1st argument is a constant 0. This means that lis loads a register by taking a 16-bit constant and putting it in the upper 16-bit, and resetting the lower 16-bit (because that's 0 + arg<<16).
SinceCFG_IMMRis on a 64KB boundary, its lower 16 bitare zero, so "lis r3,CFG_IMMR at h" simply loadsCFG_IMMRto r3.Udi
Quoted 33 lines · seaman
In u-boot/cpu/mpc8xx/start.S,I usually find this symbol "@",such as followed:
_start:
lis r3,CFG_IMMRat h /* position IMMR */
mtspr 638, r3
li r21,BOOTFLAG_COLD/* Normal Power-On: Boot from FLASH */ bboot_coldwhat does it means? Thank you!
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users