OSDN Git Service

2007-11-06 Dave Brolley <brolley@redhat.com>
authorbrolley <brolley>
Tue, 6 Nov 2007 21:08:04 +0000 (21:08 +0000)
committerbrolley <brolley>
Tue, 6 Nov 2007 21:08:04 +0000 (21:08 +0000)
        * gloss.cxx (target_to_host_syscall): Map syscall 0 to SYS_reconfig for
        MeP.

sid/component/gloss/ChangeLog
sid/component/gloss/gloss.cxx

index f89ff7c..26bd932 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-06  Dave Brolley  <brolley@redhat.com>
+
+       * gloss.cxx (target_to_host_syscall): Map syscall 0 to SYS_reconfig for
+       MeP.
+
 2006-10-18  Dave Brolley  <brolley@redhat.com>
 
        * Contribute the following changes:
index 4920d3f..155c2a3 100644 (file)
@@ -771,6 +771,13 @@ gloss32::target_to_host_syscall (int32 target_syscall)
     {
       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)