From: "Daniel Engström" <daniel@omicron.se>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] New x86 board booted...now the hard part
Date: Mon, 26 May 2003 08:35:20 +0200 [thread overview]
Message-ID: <20030526083520.T16977@jupiter.omicron.se> (raw)
In-Reply-To: <20030523190057.GA9490@buici.com>; from elf@buici.com on fre, maj 23, 2003 at 21:00:57 +0200
On 2003.05.23 21:00 Marc Singer wrote:
> Yipee! It boots.
Very good, now there are three of us.
> 1) Daniel, do you think that the 'fs' overrides in mem_init are
> necessary when ds == fs?
No, that's a left-over from AMDs 16bit code kit which need to use segment
overrides.
> 2) How would you expect to override mem_init on another x86 board?
Conditional compilation of sc520_asm.S it is, after all, sc520-specific.
The defines in sc520_asm.S and sc520.c are not there yet, but they should
look like most othe U-boot code:
#ifdef CONFIG_SC520
.....
#endif
I think it is cleaner to do this kind of things in the makefile, but it is
not
how the U-boot amkefiles are done.
> It seems to me that we'd be better off with a BSP entry point for
> RAM initialization that calls the appropriate library
> function(s).
mem_init is the BSP entry point for RAM initialization. Calling library
functions
before mem_init is done is not advisabe.
> 3) We ought to be able to share serial driver code between x86 and
> the risc processors as long as we abstract port accesses the
> way that the Linux kernel does. Has this been discussed?
Sure, we should be able to share. No, I have not investigated how that
would be done.
When I started the 386-port, I looked in a few directories under cpu/* for
what
cpu/i386 should contain. All CPU-subdirs I checked contined a serial
driver, so I
borrowed a 16550 version (from the 405GP i think) and included it slightly
modified
in cpu/i386.
/Daniel
next prev parent reply other threads:[~2003-05-26 6:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-23 19:00 [U-Boot-Users] New x86 board booted...now the hard part Marc Singer
2003-05-26 6:35 ` Daniel Engström [this message]
2003-05-26 19:09 ` Marc Singer
2003-05-26 19:48 ` Wolfgang Denk
2003-05-26 23:08 ` Marc Singer
2003-05-27 6:34 ` Wolfgang Denk
2003-05-27 17:36 ` Marc Singer
2003-05-27 20:08 ` Wolfgang Denk
2003-05-27 20:30 ` Marc Singer
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=20030526083520.T16977@jupiter.omicron.se \
--to=daniel@omicron.se \
--cc=u-boot@lists.denx.de \
/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.