From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27625 invoked by alias); 6 Nov 2007 21:15:13 -0000 Received: (qmail 27612 invoked by uid 22791); 6 Nov 2007 21:15:12 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Nov 2007 21:15:10 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id lA6LF8P8014064 for ; Tue, 6 Nov 2007 16:15:08 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lA6LF7Bv020634 for ; Tue, 6 Nov 2007 16:15:07 -0500 Received: from [127.0.0.1] (vpn-14-94.rdu.redhat.com [10.11.14.94]) by potter.sfbay.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id lA6LEwCV004317 for ; Tue, 6 Nov 2007 16:15:00 -0500 Message-ID: <4730D962.704@redhat.com> Date: Tue, 06 Nov 2007 21:15:00 -0000 From: Dave Brolley User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: sid@sources.redhat.com Subject: [commit] Syscall number for SYS_reconfig Content-Type: multipart/mixed; boundary="------------050902070006040009030507" X-IsSubscribed: yes Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00003.txt.bz2 This is a multi-part message in MIME format. --------------050902070006040009030507 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 351 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 --------------050902070006040009030507 Content-Type: text/plain; name="sid-syscall.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sid-syscall.ChangeLog" Content-length: 336 sid/component/gloss/ChangeLog: 2007-11-06 Dave Brolley * gloss.cxx (target_to_host_syscall): Map syscall 0 to SYS_reconfig for MeP. sid/main/dynamic/ChangeLog 2007-11-06 Dave Brolley * mepCfg.cxx (MepBoardCfg): Set the gloss component's syscall-numbering-scheme attribute to "mep". --------------050902070006040009030507 Content-Type: text/plain; name="sid-syscall.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sid-syscall.patch.txt" Content-length: 1419 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 --------------050902070006040009030507--