gonzui


Format: Advanced Search

t2ex/bsd_source/lib/libc/src_bsd/include/sysdepend/tef_em1d/machine/signal.hbare sourcepermlink (0.00 seconds)

Search this content:

    1: /*      $OpenBSD: signal.h,v 1.7 2011/09/20 22:02:13 miod Exp $      */
    2: /*      $NetBSD: signal.h,v 1.5 2003/10/18 17:57:21 briggs Exp $     */
    3: 
    4: /*
    5:  * Copyright (c) 1994-1996 Mark Brinicombe.
    6:  * Copyright (c) 1994 Brini.
    7:  * All rights reserved.
    8:  *
    9:  * This code is derived from software written for Brini by Mark Brinicombe
   10:  *
   11:  * Redistribution and use in source and binary forms, with or without
   12:  * modification, are permitted provided that the following conditions
   13:  * are met:
   14:  * 1. Redistributions of source code must retain the above copyright
   15:  *    notice, this list of conditions and the following disclaimer.
   16:  * 2. Redistributions in binary form must reproduce the above copyright
   17:  *    notice, this list of conditions and the following disclaimer in the
   18:  *    documentation and/or other materials provided with the distribution.
   19:  * 3. The name of the company nor the name of the author may be used to
   20:  *    endorse or promote products derived from this software without specific
   21:  *    prior written permission.
   22:  *
   23:  * THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED
   24:  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
   25:  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   26:  * IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   27:  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   28:  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   29:  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   30:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   31:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   32:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   33:  * SUCH DAMAGE.
   34:  *
   35:  * RiscBSD kernel project
   36:  *
   37:  * signal.h
   38:  *
   39:  * Architecture dependant signal types and structures
   40:  *
   41:  * Created      : 30/09/94
   42:  */
   43: 
   44: #ifndef _ARM_SIGNAL_H_
   45: #define _ARM_SIGNAL_H_
   46: 
   47: #ifndef _LOCORE
   48: #include <sys/cdefs.h>
   49: 
   50: typedef int sig_atomic_t;
   51: 
   52: #if __BSD_VISIBLE || __XPG_VISIBLE >= 420
   53: /*
   54:  * Information pushed on stack when a signal is delivered.
   55:  * This is used by the kernel to restore state following
   56:  * execution of the signal handler.  It is also made available
   57:  * to the handler to allow it to restore state properly if
   58:  * a non-standard exit is performed.
   59:  */
   60: struct sigcontext {
   61:         int    sc_onstack;                /* sigstack state to restore */
   62:         int    sc_mask;           /* signal mask to restore (old style) */
   63: 
   64:         unsigned int sc_spsr;
   65:         unsigned int sc_r0;
   66:         unsigned int sc_r1;
   67:         unsigned int sc_r2;
   68:         unsigned int sc_r3;
   69:         unsigned int sc_r4;
   70:         unsigned int sc_r5;
   71:         unsigned int sc_r6;
   72:         unsigned int sc_r7;
   73:         unsigned int sc_r8;
   74:         unsigned int sc_r9;
   75:         unsigned int sc_r10;
   76:         unsigned int sc_r11;
   77:         unsigned int sc_r12;
   78:         unsigned int sc_usr_sp;
   79:         unsigned int sc_usr_lr;
   80:         unsigned int sc_svc_lr;
   81:         unsigned int sc_pc;
   82: };
   83: #endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 420 */
   84: #endif /* !_LOCORE */
   85: 
   86: #endif  /* !_ARM_SIGNAL_H_ */