public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Dave Brolley <brolley@redhat.com>
To: sid@sources.redhat.com
Subject: [commit] Syscall number for SYS_reconfig
Date: Tue, 06 Nov 2007 21:15:00 -0000	[thread overview]
Message-ID: <4730D962.704@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 351 bytes --]

I've comitted the attached patch.

The syscall number for SYS_reconfig in libgloss/syscall.h is changing, 
since it was not appropriate for it to be zero. However, legacy MeP code 
expects it to be zero.

This patch allows zero to be recognized as SYS_reconfig for MeP as well 
as whatever number has been assigned to it in libgloss/syscall.h.

Dave


[-- Attachment #2: sid-syscall.ChangeLog --]
[-- Type: text/plain, Size: 336 bytes --]

sid/component/gloss/ChangeLog:
2007-11-06  Dave Brolley  <brolley@redhat.com>

	* gloss.cxx (target_to_host_syscall): Map syscall 0 to SYS_reconfig for
	MeP.

sid/main/dynamic/ChangeLog
2007-11-06  Dave Brolley  <brolley@redhat.com>

	* mepCfg.cxx (MepBoardCfg): Set the gloss component's
	syscall-numbering-scheme attribute to "mep".


[-- Attachment #3: sid-syscall.patch.txt --]
[-- Type: text/plain, Size: 1419 bytes --]

Index: sid/component/gloss/gloss.cxx
===================================================================
RCS file: /cvs/src/src/sid/component/gloss/gloss.cxx,v
retrieving revision 1.22
diff -c -p -r1.22 gloss.cxx
*** sid/component/gloss/gloss.cxx	18 Oct 2006 18:38:26 -0000	1.22
--- sid/component/gloss/gloss.cxx	6 Nov 2007 21:02:00 -0000
*************** gloss32::target_to_host_syscall (int32 t
*** 771,776 ****
--- 771,783 ----
      {
        return target_syscall;
      }
+   else if (syscall_numbering_scheme == "mep")
+     {
+       // syscall 0 is an alternate for SYS_reconfig on MeP
+       if (target_syscall == 0)
+ 	return libgloss::SYS_reconfig;
+       return target_syscall;
+     }
    else if (syscall_numbering_scheme == "sh-compact")
      {
        switch(target_syscall)
Index: sid/main/dynamic/mepCfg.cxx
===================================================================
RCS file: /cvs/src/src/sid/main/dynamic/mepCfg.cxx,v
retrieving revision 1.2
diff -c -p -r1.2 mepCfg.cxx
*** sid/main/dynamic/mepCfg.cxx	19 Feb 2007 17:00:54 -0000	1.2
--- sid/main/dynamic/mepCfg.cxx	6 Nov 2007 21:02:00 -0000
*************** MepBoardCfg::MepBoardCfg (const string n
*** 1270,1275 ****
--- 1270,1276 ----
    assert (cpu);
    assert (sess);
    gloss = new GlossCfg ("gloss", cpu, sess);  
+   set (gloss, "syscall-numbering-scheme", "mep");
    assert (gloss);
  
    // control bus for peripheral items

                 reply	other threads:[~2007-11-06 21:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4730D962.704@redhat.com \
    --to=brolley@redhat.com \
    --cc=sid@sources.redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).