linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* as question
@ 2002-04-18 20:17 Dan Brennan
  2002-04-18 20:25 ` David Edelsohn
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Dan Brennan @ 2002-04-18 20:17 UTC (permalink / raw)
  To: LinuxPPC-Dev


In arch/ppc/kernel/head.S the following code segment exists:

turn_on_mmu:
        mfmsr   r0
        ori     r0,r0,MSR_DR|MSR_IR
        mtspr   SRR1,r0
        lis     r0,start_here@h
        ori     r0,r0,start_here@l
        mtspr   SRR0,r0
        SYNC
	RFI

However, when I do objdump on head.o this is what appears:

00000088 <turn_on_mmu>:
      88:       7c 00 00 a6     mfmsr   r0
      8c:       60 00 00 30     ori     r0,r0,48
      90:       7c 1b 03 a6     mtsrr1  r0
      94:       3c 00 00 00     lis     r0,0
      98:       60 00 00 00     nop
      9c:       7c 1a 03 a6     mtsrr0  r0
      a0:       4c 00 00 64     rfi

It appears that the code which loads the address of the label start_here
does not get assembled correctly. Is this observation correct?

I'm building for the est8260 target.

Dan

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-04-19 13:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-18 20:17 as question Dan Brennan
2002-04-18 20:25 ` David Edelsohn
2002-04-18 20:40   ` Dan Brennan
2002-04-18 22:47     ` Dan Malek
2002-04-19  7:37 ` asm info Giuliano Pochini
2002-04-18 21:42   ` Benjamin Herrenschmidt
2002-04-19 13:37     ` Giuliano Pochini
2002-04-19  8:14   ` Kaoru Fukui
2002-04-19 13:12     ` Giuliano Pochini
2002-04-19 10:07 ` as question Gabriel Paubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).