mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com, "D. Jeff Dionne" <Jeff@uClinux.org>,
	shumpei.kawasaki@swhwc.com
Subject: Re: Moving forward with sh2/nommu
Date: Tue, 16 Jun 2015 15:38:59 +0900	[thread overview]
Message-ID: <871thcgnss.wl-ysato@users.sourceforge.jp> (raw)
In-Reply-To: <20150612042821.GB17573@brightrain.aerifal.cx>

On Fri, 12 Jun 2015 13:28:21 +0900,
Rich Felker wrote:
> 
> On Fri, Jun 12, 2015 at 01:08:05PM +0900, Yoshinori Sato wrote:
> > > > >> 4. Syscall trap numbers differ on SH2 vs SH3/4. Presumably the reason
> > > > >>    is that these two SH2A hardware traps overlap with the syscall
> > > > >>    range used by SH3/4 ABI:
> > > > > 
> > > > > I haven't patched this yet. I'd like to use 31 (0x1f) as the new
> > > > > universal SH syscall trap number, instead of 22. More details on the
> > > > > reasons later.
> > > > 
> > > > I've cc'd Yoshinori Sato (who did most of the historical sh2 work) and
> > > > Shumpei Kawasaki (the original superh architect). They'll probably have
> > > > an opinion on your "more reasons" for changing sh2 system call numbers
> > > > to match sh4.
> > 
> > It histrical reason.
> > SH3/4 is assigned #0x10 to #0x17 for system call entry.
> > But SH2A system using this vector.
> > So we moved to #0x20 to #0x27 for SH2A.
> > (SH2A specification is #0x20 to #0x3f allocated for user application.)
> > 
> > And SH2 port is based on SH2A port.
> > It have same systemcall interface.
> > 
> > > Thank you. I'd really like to make progress at least on the matter of
> > > determining if this is feasible. I now have a new musl/sh2 patch that
> > > simply uses "trapa #31" unconditionally, and it's a lot
> > > simpler/cleaner and working on my patched kernel. The big question is
> > > just whether this is an unacceptable constraint on hardware.
> > 
> > SH2A reserved system for vector 31.
> > But not assigned now.
> > I think no problem.
> 
> Thank you for the feedback. This sounds promising.
> 
> We still need whoever ends up being the new kernel maintainer for SH
> to be okay with adding trap 31 syscall support for sh2 and declaring
> it supported/stable for sh3/4 too, but at least it looks like there
> arent technical problems for doing this.
> 
> Rich

Yes.
I think test necessary by SH2A, but there would be no problems.

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>


  reply	other threads:[~2015-06-16  6:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-01 15:11 Rich Felker
2015-06-02  6:09 ` Rob Landley
2015-06-02 16:45   ` Rich Felker
2015-06-02 23:49     ` Rich Felker
2015-06-10  3:30 ` Rich Felker
2015-06-11  4:02   ` Rob Landley
2015-06-11 15:12     ` Rich Felker
2015-06-11 17:22       ` Rich Felker
2015-06-12  4:26         ` Yoshinori Sato
2015-06-12  4:35           ` Rich Felker
2015-06-12  4:49             ` uClinux.org
2015-06-12  6:37               ` Rich Felker
2015-06-12  6:46                 ` D. Jeff Dionne
2015-06-12  4:08       ` Yoshinori Sato
2015-06-12  4:28         ` Rich Felker
2015-06-16  6:38           ` Yoshinori Sato [this message]
2015-06-16  7:02             ` Rich Felker

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=871thcgnss.wl-ysato@users.sourceforge.jp \
    --to=ysato@users.sourceforge.jp \
    --cc=Jeff@uClinux.org \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=shumpei.kawasaki@swhwc.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).