mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: microblaze port committed
Date: Sat, 29 Sep 2012 01:41:57 -0400	[thread overview]
Message-ID: <20120929054156.GA20623@brightrain.aerifal.cx> (raw)

Hi all,

I've committed the initial (and seemingly fully-working) version of
the microblaze port. Several caveats:

1. Upstream binutils has a serious bug in gas whereby the relocations
   it generates for symbols with local weak definitions cannot be
   resolved by the linker. Patch at:
   http://permalink.gmane.org/gmane.linux.uclinux.microblaze/11155

2. The toolchain binaries from Xilinx seem to produce .o files
   incompatible with standard binutils, and vice versa. Pick one or
   the other; don't mix them.

3. Threads are untested because qemu is broken, at least my version of
   qemu (app-level emu) has a bug where clone() does not advance the
   program counter properly in the child, so it starts a forkbomb-like
   cascade of clone syscalls (thankfully just linear growth rather
   than exponential).

4. Until very recently, qemu did not support the lwx/swx instructions
   needed for implementing atomics, and treated them instead as plain
   lw/sw (load/store). I've added one otherwise-wasteful instruction
   to the atomic asm in atomic.h so that atomic cas/swap will at least
   behave as an equivalent non-atomic operation on older qemu, rather
   than randomly going into infinite loop. Older hardware may be
   affected by this issue too.

I'm sure we'll find other problems once there's a better build/test
environent in-place, but overall this seems to be the best
initial-commit quality of any port yet, probably due to the fact that
the microblaze ISA+ABI is the sanest, simplest ISA+ABI I've ever coded
to.

Rich


             reply	other threads:[~2012-09-29  5:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-29  5:41 Rich Felker [this message]
2012-09-30  7:01 ` Isaac Dunham
2012-09-30 13:16   ` Rich Felker
2012-10-27  6:51   ` [Aboriginal] [musl] " Rob Landley

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=20120929054156.GA20623@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).