From: Paul Mackerras <paulus@samba.org>
To: Scott Wood <scottwood@freescale.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 02/19] bootwrapper: Set -msoft-float and assembler target options.
Date: Tue, 13 Mar 2007 13:53:09 +1100 [thread overview]
Message-ID: <17910.4629.587851.80369@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20070312204140.GB28545@ld0162-tx32.am.freescale.net>
Scott Wood writes:
> The bootwrapper should be built with the same target options as the
> kernel. In particular, -msoft-float and the assembler target need to be
> set.
I don't like this patch as it stands because I want to keep the
wrapper independent from the kernel config as far as possible.
We need to compile up the wrapper code in a manner that means that it
can run on any processor, so clearly we need -msoft-float.
> Without the assembler target option, the assembler will use the old
> dedicated mftb/mftbu instructions, rather than mfspr. This causes the
> boot to hang on e500, which doesn't have the dedicated instructions.
I see mftb being used for udelay in util.S, and udelay being used in
serial_edit_cmdline in serial.c. It's somewhat bogus that we just
hard-code an assumed timebase frequency in util.S, and also bogus that
we get command line editing for serial consoles but not for OF
consoles (why should they be different?).
It looks to me like we should at least make the platform code provide
udelay (or mdelay), possibly with the aid of a helper function. We
should also consider whether the command-line editing is generally
useful, or not, and whether the function to do it should be made more
generic.
Paul.
next prev parent reply other threads:[~2007-03-13 2:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-12 20:41 [PATCH 02/19] bootwrapper: Set -msoft-float and assembler target options Scott Wood
2007-03-13 2:53 ` Paul Mackerras [this message]
2007-03-13 5:32 ` Mark A. Greer
2007-03-13 5:38 ` Mark A. Greer
2007-03-13 12:14 ` Josh Boyer
2007-03-13 15:43 ` Scott Wood
-- strict thread matches above, loose matches on Subject: below --
2007-02-07 23:00 [PATCH 00/19] cuboot bootwrapper patchset Scott Wood
2007-02-07 23:01 ` [PATCH 02/19] bootwrapper: Set -msoft-float and assembler target options Scott Wood
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=17910.4629.587851.80369@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=scottwood@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox