From: Sam Ravnborg <sam@ravnborg.org>
To: Robin Getz <rgetz@blackfin.uclinux.org>
Cc: linux-kernel@vger.kernel.org, Gerd Hoffmann <kraxel@redhat.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Bryan Wu <bryan.wu@analog.com>, Sonic Zhang <sonic.adi@gmail.com>,
Mike Frysinger <vapier.adi@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
"H. Peter Anvin" <hpa@zytor.com>
Subject: Re: [draft] Blackfin Early Printk implmentation
Date: Fri, 17 Aug 2007 19:59:11 +0200 [thread overview]
Message-ID: <20070817175911.GA22046@uranus.ravnborg.org> (raw)
In-Reply-To: <200708171336.40159.rgetz@blackfin.uclinux.org>
On Fri, Aug 17, 2007 at 01:36:39PM -0400, Robin Getz wrote:
> The patch (for review - not inclusion - I will send to Bryan if no one has any
> major objections, and he can push it via git) implements early printk for the
> Blackfin architecture.
>
> It also adds an early exception handler, so if an
> interrupt/exception/violation happens before the kernel enables it's
> interrupts (yes that does happen periodically, and it is a nice to have a
> debug feature to help , that we don't go back to the bootloaders exception
> processing table...
>
> It also removes some of the crap that was trying to implement the same thing
> (poorly).
So this patch does three things at least:
-> adds early_printk
-> delete cruft emulating early printk
-> add an early excaption handler
That seems to explain why I could not follow your code changes.
A more fine grained splitup would have helped here.
I noticed that you copied the actual early_printk code from x86_64.
What was preventing you from just using the x86_64 code here?
A simple
#include <arch/x86_64/boot/early_printk.c>
in the blackfin early_printk should do the trick.
alpha btw uses the implementation in lib/*printf.c
Are there a specific reason why blackfin and x86_64 does not do the same?
Thinking that all should do the same so maybe alpha ought to change...
Sam
next prev parent reply other threads:[~2007-08-17 17:58 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-16 2:34 Early printk behaviour Robin Getz
2007-08-16 7:45 ` Gerd Hoffmann
2007-08-16 16:47 ` Mike Frysinger
2007-08-17 7:49 ` Gerd Hoffmann
2007-08-17 21:00 ` Robin Getz
2007-08-17 21:09 ` Mike Frysinger
2007-08-17 21:29 ` Robin Getz
2007-08-20 8:01 ` Gerd Hoffmann
2007-08-16 18:56 ` Robin Getz
2007-08-17 17:36 ` [draft] Blackfin Early Printk implmentation Robin Getz
2007-08-17 17:57 ` Mike Frysinger
2007-08-17 18:25 ` Robin Getz
2007-08-17 18:43 ` Mike Frysinger
2007-08-17 17:59 ` Sam Ravnborg [this message]
2007-08-17 20:07 ` Robin Getz
2007-08-18 6:23 ` Sam Ravnborg
2007-08-18 15:37 ` Robin Getz
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=20070817175911.GA22046@uranus.ravnborg.org \
--to=sam@ravnborg.org \
--cc=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=bryan.wu@analog.com \
--cc=hpa@zytor.com \
--cc=kraxel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rgetz@blackfin.uclinux.org \
--cc=sonic.adi@gmail.com \
--cc=vapier.adi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®