OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [cris/] [irqtable.S] - Diff between revs 158 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 158 Rev 816
/* Default interrupt table for CRIS/CRISv32.
/* Default interrupt table for CRIS/CRISv32.
   Copyright (C) 2007 Axis Communications.
   Copyright (C) 2007 Axis Communications.
   All rights reserved.
   All rights reserved.
   Redistribution and use in source and binary forms, with or without
   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions
   modification, are permitted provided that the following conditions
   are met:
   are met:
   1. Redistributions of source code must retain the above copyright
   1. Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
      notice, this list of conditions and the following disclaimer.
   2. Neither the name of Axis Communications nor the names of its
   2. Neither the name of Axis Communications nor the names of its
      contributors may be used to endorse or promote products derived
      contributors may be used to endorse or promote products derived
      from this software without specific prior written permission.
      from this software without specific prior written permission.
   THIS SOFTWARE IS PROVIDED BY AXIS COMMUNICATIONS AND ITS CONTRIBUTORS
   THIS SOFTWARE IS PROVIDED BY AXIS COMMUNICATIONS AND ITS CONTRIBUTORS
   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AXIS
   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AXIS
   COMMUNICATIONS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   COMMUNICATIONS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
   IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.  */
   POSSIBILITY OF SUCH DAMAGE.  */
#ifdef __ELF__
#ifdef __ELF__
 .section .startup,"ax"
 .section .startup,"ax"
#else
#else
 .text
 .text
#endif
#endif
#if defined (__ELF__) || defined (IN_CRT0)
#if defined (__ELF__) || defined (IN_CRT0)
; This is included from crt0.S for a.out, as we can't have it as
; This is included from crt0.S for a.out, as we can't have it as
; a separate object file in a library due to the lack of named
; a separate object file in a library due to the lack of named
; section support and the required placement at address 3*4.
; section support and the required placement at address 3*4.
; We define an interrupt table with references to the symbols
; We define an interrupt table with references to the symbols
; _.irq_XX where XX are hex numbers 3..ff (lower-case).  They
; _.irq_XX where XX are hex numbers 3..ff (lower-case).  They
; are satisfied by weak aliases to the _.irq stub function in
; are satisfied by weak aliases to the _.irq stub function in
; this file.  When overridden, the overriding function must be
; this file.  When overridden, the overriding function must be
; in code explicitly linked in, i.e. *not* in a library.
; in code explicitly linked in, i.e. *not* in a library.
 .global __irqtable_at_irq3
 .global __irqtable_at_irq3
__irqtable_at_irq3:
__irqtable_at_irq3:
 .irpc irqno,3456789abcdef
 .irpc irqno,3456789abcdef
 .weak _.irq_0\irqno
 .weak _.irq_0\irqno
 .set _.irq_0\irqno,_.irq
 .set _.irq_0\irqno,_.irq
 .dword _.irq_0\irqno
 .dword _.irq_0\irqno
 .endr
 .endr
 .irpc irqhd,123456789abcdef
 .irpc irqhd,123456789abcdef
 .irpc irqld,0123456789abcdef
 .irpc irqld,0123456789abcdef
 .weak _.irq_\irqhd\irqld
 .weak _.irq_\irqhd\irqld
 .set _.irq_\irqhd\irqld,_.irq
 .set _.irq_\irqhd\irqld,_.irq
 .dword _.irq_\irqhd\irqld
 .dword _.irq_\irqhd\irqld
 .endr
 .endr
 .endr
 .endr
; No use having a separate file with default _.irq_[0-f][0-f]
; No use having a separate file with default _.irq_[0-f][0-f]
; definitions; just provide a single stub with a weak definition
; definitions; just provide a single stub with a weak definition
; and make it up to the user to provide a strong definition that
; and make it up to the user to provide a strong definition that
; they force to be linked in (i.e. not in a library or at least
; they force to be linked in (i.e. not in a library or at least
; together with another symbol they know is linked in).
; together with another symbol they know is linked in).
 .text
 .text
_.irq:
_.irq:
#ifdef __arch_common_v10_v32
#ifdef __arch_common_v10_v32
 ; This is just to allow the multilib to compile without
 ; This is just to allow the multilib to compile without
 ; hackery: the "common" subset doesn't recognize
 ; hackery: the "common" subset doesn't recognize
 ; interrupt-return insns.
 ; interrupt-return insns.
#elif __CRIS_arch_version >= 32
#elif __CRIS_arch_version >= 32
 rete
 rete
 rfe
 rfe
#else
#else
 reti
 reti
 nop
 nop
#endif
#endif
#endif /* __ELF__ || IN_CRT0 */
#endif /* __ELF__ || IN_CRT0 */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.