All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Grundler <grundler@parisc-linux.org>
To: Helge Deller <deller@gmx.de>
Cc: Grant Grundler <grundler@parisc-linux.org>,
	Thibaut VARENE <T-Bone@parisc-linux.org>,
	linux-parisc@vger.kernel.org
Subject: Re: Git head doesn't boot on A500
Date: Sun, 18 May 2008 14:26:03 -0600	[thread overview]
Message-ID: <20080518202603.GA9093@colo.lackof.org> (raw)
In-Reply-To: <48305728.20403@gmx.de>

On Sun, May 18, 2008 at 06:19:52PM +0200, Helge Deller wrote:
...
>> using ".text.head" (not .head.text) which has corresponding "code" in
>> their vmlinux.lds.  Could someone kindly point out how .head.text works 
>> for parisc?
>
> Yeah, my fault (no idea why it worked for me???).

Kyle's explanation sounds right or I expect the sections wouldn't
have been included at all (or something like that) - and maybe it
really only matters for SMP - ie getting secondary CPUs running.

> I see two options:
> 1) revert my patch (gets to linker warnings and have to build up a new 
> patch, ideally adding a section for .text.head to vmlinux.lds.S),
> 2) apply the attached patch.
>
> Opinions?

(2) works for me. I'm booting with 64-bit on a500...at least it's
now finding all the disks and attempting to mount NFS root.

>
> Helge

> diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S
> index 50b4a3a..2e516b8 100644
> --- a/arch/parisc/kernel/vmlinux.lds.S
> +++ b/arch/parisc/kernel/vmlinux.lds.S
> @@ -50,6 +50,7 @@ SECTIONS
>  
>  	_text = .;		/* Text and read-only data */
>  	.text ALIGN(16) : {
> +		HEAD_TEXT

grundler <537>fgrep HEAD_TEXT include/*/*.h
include/asm-generic/vmlinux.lds.h:#define HEAD_TEXT  *(.head.text)

Yeah, I like that better than depending on *(.text) to include it.

thanks,
grant

>  		TEXT_TEXT
>  		SCHED_TEXT
>  		LOCK_TEXT


  reply	other threads:[~2008-05-18 20:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-17 13:20 Git head doesn't boot on A500 Thibaut VARENE
2008-05-17 15:26 ` Grant Grundler
2008-05-18  0:52   ` Thibaut VARENE
2008-05-18  7:13     ` Grant Grundler
2008-05-18 16:18       ` Kyle McMartin
2008-05-18 16:19       ` Helge Deller
2008-05-18 20:26         ` Grant Grundler [this message]
2008-05-20 19:59           ` Helge Deller

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=20080518202603.GA9093@colo.lackof.org \
    --to=grundler@parisc-linux.org \
    --cc=T-Bone@parisc-linux.org \
    --cc=deller@gmx.de \
    --cc=linux-parisc@vger.kernel.org \
    /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.