From: "Maciej W. Rozycki" <macro@linux-mips.org>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: vagabon.xyz@gmail.com, dan@debian.org, linux-mips@linux-mips.org,
ralf@linux-mips.org
Subject: Re: RFC: Sentosa boot fix
Date: Tue, 30 Jan 2007 17:56:19 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.64N.0701301735470.9231@blysk.ds.pg.gda.pl> (raw)
In-Reply-To: <20070131.014133.75185230.anemo@mba.ocn.ne.jp>
On Wed, 31 Jan 2007, Atsushi Nemoto wrote:
> I compiled ip27 kernel and really confused...
>
> head.S:
> PTR_LA t0, __bss_start # clear .bss
> LONG_S zero, (t0)
>
> System.map:
> a8000000003b6000 A __bss_start
>
> vmlinux:
> a800000000385058: 3c0c003b lui t0,0x3b
> a80000000038505c: 658c6000 daddiu t0,t0,24576
> a800000000385060: fd800000 sd zero,0(t0)
>
> vmlinux.32:
> 80385058: 3c0c003b lui t4,0x3b
> 8038505c: 658c6000 daddiu t4,t4,24576
> 80385060: fd800000 sd zero,0(t4)
>
> How does this code work? Isn't address 0x3b6000 in user space?
Well, the default config for this machine specifies -msym32 with the load
address of 0xa80000000001c000. No wonder it does not work.
I suppose the setup for this platform should be more or less like this:
ifdef CONFIG_BUILD_ELF64
ifdef CONFIG_MAPPED_KERNEL
load-$(CONFIG_SGI_IP27) += 0xc00000004001c000
dataoffset-$(CONFIG_SGI_IP27) += 0x01000000
else
load-$(CONFIG_SGI_IP27) += 0xa80000000001c000
endif
else
ifdef CONFIG_MAPPED_KERNEL
load-$(CONFIG_SGI_IP27) += 0xffffffffc001c000
OBJCOPYFLAGS := --change-addresses=0xc000000080000000
dataoffset-$(CONFIG_SGI_IP27) += 0x01000000
else
load-$(CONFIG_SGI_IP27) += 0xffffffff8001c000
OBJCOPYFLAGS := --change-addresses=0xa800000080000000
endif
endif
I can cook a patch if some SGI expert steps in and comments whether this
makes sense from the platform point of view or not.
Maciej
next prev parent reply other threads:[~2007-01-30 17:57 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-28 18:08 RFC: Sentosa boot fix Daniel Jacobowitz
2007-01-29 9:59 ` Franck Bui-Huu
2007-01-29 15:46 ` Maciej W. Rozycki
2007-01-29 16:14 ` Atsushi Nemoto
2007-01-29 16:27 ` Franck Bui-Huu
2007-01-30 16:41 ` Atsushi Nemoto
2007-01-30 17:56 ` Maciej W. Rozycki [this message]
2007-01-29 18:07 ` Thiemo Seufer
2007-01-29 18:32 ` Maciej W. Rozycki
2007-01-29 18:09 ` Thiemo Seufer
2007-01-29 15:52 ` Daniel Jacobowitz
2007-01-29 16:06 ` Franck Bui-Huu
2007-01-29 16:14 ` Daniel Jacobowitz
2007-01-29 18:47 ` Maciej W. Rozycki
2007-01-30 14:45 ` Atsushi Nemoto
2007-01-30 15:18 ` Ralf Baechle
2007-01-30 17:33 ` Maciej W. Rozycki
2007-02-01 9:51 ` Franck Bui-Huu
2007-02-01 13:20 ` Maciej W. Rozycki
2007-02-01 14:31 ` Atsushi Nemoto
2007-02-01 14:36 ` Atsushi Nemoto
2007-02-01 15:59 ` Franck Bui-Huu
2007-02-08 15:49 ` Maciej W. Rozycki
2007-02-08 16:36 ` Franck Bui-Huu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64N.0701301735470.9231@blysk.ds.pg.gda.pl \
--to=macro@linux-mips.org \
--cc=anemo@mba.ocn.ne.jp \
--cc=dan@debian.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=vagabon.xyz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.