[BACK]Return to frame.h CVS log [TXT][DIR] Up to [local] / sys / arch / sh / include

Annotation of sys/arch/sh/include/frame.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: frame.h,v 1.2 2007/03/02 06:11:54 miod Exp $  */
                      2: /*     $NetBSD: frame.h,v 1.14 2005/12/11 12:18:58 christos Exp $      */
                      3:
                      4: /*-
                      5:  * Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
                      6:  * Copyright (c) 1990 The Regents of the University of California.
                      7:  * All rights reserved.
                      8:  *
                      9:  * This code is derived from software contributed to Berkeley by
                     10:  * William Jolitz.
                     11:  *
                     12:  * Redistribution and use in source and binary forms, with or without
                     13:  * modification, are permitted provided that the following conditions
                     14:  * are met:
                     15:  * 1. Redistributions of source code must retain the above copyright
                     16:  *    notice, this list of conditions and the following disclaimer.
                     17:  * 2. Redistributions in binary form must reproduce the above copyright
                     18:  *    notice, this list of conditions and the following disclaimer in the
                     19:  *    documentation and/or other materials provided with the distribution.
                     20:  * 3. Neither the name of the University nor the names of its contributors
                     21:  *    may be used to endorse or promote products derived from this software
                     22:  *    without specific prior written permission.
                     23:  *
                     24:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     25:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     26:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     27:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     28:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     29:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     30:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     31:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     32:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     33:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     34:  * SUCH DAMAGE.
                     35:  *
                     36:  *     @(#)frame.h     5.2 (Berkeley) 1/18/91
                     37:  */
                     38:
                     39: /*-
                     40:  * Copyright (c) 1995 Charles M. Hannum.  All rights reserved.
                     41:  *
                     42:  * This code is derived from software contributed to Berkeley by
                     43:  * William Jolitz.
                     44:  *
                     45:  * Redistribution and use in source and binary forms, with or without
                     46:  * modification, are permitted provided that the following conditions
                     47:  * are met:
                     48:  * 1. Redistributions of source code must retain the above copyright
                     49:  *    notice, this list of conditions and the following disclaimer.
                     50:  * 2. Redistributions in binary form must reproduce the above copyright
                     51:  *    notice, this list of conditions and the following disclaimer in the
                     52:  *    documentation and/or other materials provided with the distribution.
                     53:  * 3. All advertising materials mentioning features or use of this software
                     54:  *    must display the following acknowledgement:
                     55:  *     This product includes software developed by the University of
                     56:  *     California, Berkeley and its contributors.
                     57:  * 4. Neither the name of the University nor the names of its contributors
                     58:  *    may be used to endorse or promote products derived from this software
                     59:  *    without specific prior written permission.
                     60:  *
                     61:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     62:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     63:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     64:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     65:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     66:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     67:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     68:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     69:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     70:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     71:  * SUCH DAMAGE.
                     72:  *
                     73:  *     @(#)frame.h     5.2 (Berkeley) 1/18/91
                     74:  */
                     75:
                     76: #ifndef _SH_FRAME_H_
                     77: #define        _SH_FRAME_H_
                     78:
                     79: #include <sys/signal.h>
                     80:
                     81: /*
                     82:  * Exception Stack Frame
                     83:  */
                     84: struct trapframe {
                     85:        /* software member */
                     86:        int     tf_expevt;
                     87:        int     tf_ubc;
                     88:        /* hardware registers */
                     89:        int     tf_spc;
                     90:        int     tf_ssr;
                     91:        int     tf_macl;
                     92:        int     tf_mach;
                     93:        int     tf_pr;
                     94:        int     tf_r13;
                     95:        int     tf_r12;
                     96:        int     tf_r11;
                     97:        int     tf_r10;
                     98:        int     tf_r9;
                     99:        int     tf_r8;
                    100:        int     tf_r7;
                    101:        int     tf_r6;
                    102:        int     tf_r5;
                    103:        int     tf_r4;
                    104:        int     tf_r3;
                    105:        int     tf_r2;
                    106:        int     tf_r1;
                    107:        int     tf_r0;
                    108:        int     tf_r15;
                    109:        int     tf_r14;
                    110: };
                    111:
                    112: /*
                    113:  * Stack frame inside cpu_switch()
                    114:  */
                    115: struct switchframe {
                    116:        int     sf_r15;
                    117:        int     sf_r14;
                    118:        int     sf_r13;
                    119:        int     sf_r12;
                    120:        int     sf_r11;
                    121:        int     sf_r10;
                    122:        int     sf_r9;
                    123:        int     sf_r8;
                    124:        int     sf_pr;
                    125:        int     sf_r6_bank;
                    126:        int     sf_sr;
                    127:        int     sf_r7_bank;
                    128:        int     sf_macl;
                    129:        int     sf_mach;
                    130: };
                    131:
                    132: #endif /* !_SH_FRAME_H_ */

CVSweb