From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12261 invoked by alias); 7 Nov 2008 18:51:38 -0000 Received: (qmail 12186 invoked by uid 22791); 7 Nov 2008 18:51:37 -0000 X-Spam-Check-By: sourceware.org Received: from mail.oarcorp.com (HELO OARmail.OARCORP.com) (216.186.189.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Nov 2008 18:50:33 +0000 Received: from [192.168.1.3] (192.168.1.3) by OARmail.OARCORP.com (192.168.2.2) with Microsoft SMTP Server (TLS) id 8.1.311.2; Fri, 7 Nov 2008 12:47:06 -0600 Message-ID: <49148DF5.2060301@oarcorp.com> Date: Fri, 07 Nov 2008 18:51:00 -0000 From: Joel Sherrill User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: teawater CC: "gdb-patches@sourceware.org" Subject: Re: Add SystemV IPC drivers to PSIM References: <4911CFB1.40006@oarcorp.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00067.txt.bz2 teawater wrote: > Hi Joel, > > I think maybe you need cc this mail to maintainer of ppc sim Andrew > Cagney . > > FWIW that bounces. I found a gnu.org email address for him and it didn't bounce but I haven't heard back either. :( Most of it is boilerplate for adding a device. Looking at the ChangeLog, Andrew hasn't done anything except commit someone else's patch in a few years. Is anyone other than Andrew capable of reviewing it? > And porting this patch to gdb-cvs-head Coming shortly > and divide it to some small > ones are better for other people review it. > > It can only be divided by two since it adds two device simulations. Worse they are somewhat related since the semaphore is used to protect the shared memory during accesses. So all the test code I have uses both. --joel > Thanks, > Hui > > On Thu, Nov 6, 2008 at 00:54, Joel Sherrill wrote: > >> Hi, >> >> This is a repost of the patch was originally submitted 8 Sept. >> >> http://sourceware.org/ml/gdb/2008-09/msg00047.html >> >> Could someone please review and commit it? >> >> Thanks. >> >> >> --joel >> >> ===================== >> >> As the first year in the copyright shows, this code >> has been around a while. I found a message in the >> RTEMS archives where I was updating it to gdb 4.17. :) >> >> >> >> >> It adds support for System V semaphores and shared memory to psim. >> It adds two files (hw_sem.c and hw_shm.c) and touches configure.ac >> to add tests for support of System V IPC. Please regenerate >> configure after patching. >> >> >> The shared memory device maps System V shared memory >> into the simulated PowerPC's address space. This lets >> the simulated CPU share data with the host environment. >> This data area can be protected by using the System V >> semaphore device to lock the memory. >> >> >> We use this to run RTEMS multiprocessor tests where the >> two simulated CPUs communicate through the shared memory. >> It has also been used by RTEMS applications to do "device IO" >> to the shared memory and have a custom system simulator >> provide feedback. >> >> >> Can someone please review and commit? Thanks. >> >> 2008-09-08 Joel Sherrill >> >> * configure: Regenerated. >> * configure.ac: Add test for System V shared memory and semaphore. >> * debug.c, debug.h: Add trace support for new devices. >> * hw_sem.c, hw_shm.c: New files. >> * Makefile.in: Add hw_sem.c and hw_shm.c >> >> -- >> Joel Sherrill, Ph.D. Director of Research & Development >> joel.sherrill@OARcorp.com On-Line Applications Research >> Ask me about RTEMS: a free RTOS Huntsville AL 35805 >> Support Available (256) 722-9985 >> >> >> >> -- Joel Sherrill, Ph.D. Director of Research & Development joel.sherrill@OARcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985