From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1823 invoked by alias); 21 Nov 2003 11:08:39 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 1793 invoked from network); 21 Nov 2003 11:08:38 -0000 Received: from unknown (HELO msgdirector1.onetel.net.uk) (212.67.96.148) by sources.redhat.com with SMTP; 21 Nov 2003 11:08:38 -0000 Received: from miso.calivar.com (213-78-85-9.friaco.onetel.net.uk [213.78.85.9]) by msgdirector1.onetel.net.uk (Mirapoint Messaging Server MOS 3.3.6-GR) with ESMTP id ANZ78300; Fri, 21 Nov 2003 11:08:23 GMT Received: from miso.calivar.com (miso.calivar.com [127.0.0.2]) by miso.calivar.com (Postfix) with ESMTP id E8E8D28DF45; Fri, 21 Nov 2003 11:08:22 +0000 (GMT) To: Ottawa Guy Cc: ecos-discuss@sources.redhat.com References: <20031118173709.87396.qmail@web13008.mail.yahoo.com> From: Nick Garnett Date: Fri, 21 Nov 2003 11:08:00 -0000 In-Reply-To: <20031118173709.87396.qmail@web13008.mail.yahoo.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [ECOS] Diff between VSR and Exception X-SW-Source: 2003-11/txt/msg00295.txt.bz2 Ottawa Guy writes: > Hi, > ECOS has three types of vectors > > CYGNUM_HAL_VSR_XX > CYGNUM_HAL_INTERRUPT > CYGNUM_HAL_EXCEPTION > > CYGNUM_HAL_INTERRUPT is used for external interrupt. > However CYGNUM_HAL_VSR_XX,CYGNUM_HAL_EXCEPTION sounds > like processor interrupt. Eg MemMiss alignment, div > by zeor, etc. > > What are the diff between CYGNUM_HAL_VSR_XX, > CYGNUM_HAL_EXCEPTION vectors. The CYGNUM_HAL_EXCEPTION_XXX names are standard names for various types of exception. The CYGNUM_HAL_VSR_XX names are what the hardware actually provides. In hal_intr.h or somewhere similar the CYGNUM_HAL_EXCEPTION_XXX names are mapped on to the CYGNUM_HAL_VSR_XX names. Then, if a portable piece of code wants to known whether a given kind of exception is available it can test the CYGNUM_HAL_EXCEPTION_XXX definition and use it to reference the exception if it needs to. See the kernel except1 and kexcept1 tests for an example. -- Nick Garnett eCos Kernel Architect http://www.ecoscentric.com The eCos and RedBoot experts -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss