From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2916 invoked by alias); 9 May 2002 10:22:51 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 2901 invoked from network); 9 May 2002 10:22:49 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 9 May 2002 10:22:49 -0000 Received: by fw-cam.cambridge.arm.com; id LAA23952; Thu, 9 May 2002 11:22:47 +0100 (BST) Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma023207; Thu, 9 May 02 11:22:08 +0100 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [172.16.1.91]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id LAA06406; Thu, 9 May 2002 11:22:08 +0100 (BST) Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id LAA16683; Thu, 9 May 2002 11:22:07 +0100 (BST) Message-Id: <200205091022.LAA16683@cam-mail2.cambridge.arm.com> To: Nick Clifton cc: gdb-patches@sources.redhat.com, Richard.Earnshaw@arm.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: Add support for RedBoot SWIs to ARM Simulator In-reply-to: Your message of "09 May 2002 11:08:42 BST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 09 May 2002 03:22:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-05/txt/msg00268.txt.bz2 Hi Guys, I am applying the patch below to add support for the SWI used by RedBoot to implement some of its system calls. The patch only supports those system calls already supported by the simulator's Angel and Demon SWI protocol support. Note - it is not possible to support the RedBoot SWI in Thumb mode, since this SWI value - 0x18 - is also the thumb breakpoint value used by GDB. This may trample on the toes of somebody using that SWI as a real trap into an OS. We probably should have a way of configuring the simulator at run-time to allow emulation of a set of SWI values. Either from a command-line switch (for the arm-...-run command) or a gdb hook (for use within gdb). Something like: arm-elf-run -emul-swi={redboot|angel|demon|none} R.