
On Thu, May 08, 2003 at 11:32:50AM +0900, seaman wrote:
In u-boot/cpu/mpc8xx/start.S,I usually find this symbol "@",such as followed:
_start: lis r3, CFG_IMMR@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!
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@h means, especially when it is often found in the context:
lis r3,XXXXX@h ori r3,XXXXX@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