1 /* $NetBSD: frame.h,v 1.3 2017/05/22 17:12:11 ragge Exp $ */ 2 /* 3 * Copyright (c) 1995 Ludd, University of Lule}, Sweden. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27 #ifndef _VAX_FRAME_H_ 28 #define _VAX_FRAME_H_ 29 30 /* 31 * Description of calls frame on stack. This is the 32 * standard way of making procedure calls on vax systems. 33 */ 34 struct callsframe { 35 unsigned int ca_cond; /* condition handler */ 36 unsigned int ca_maskpsw; /* register mask and saved psw */ 37 unsigned int ca_ap; /* argument pointer */ 38 unsigned int ca_fp; /* frame pointer */ 39 unsigned int ca_pc; /* program counter */ 40 unsigned int ca_argno; /* argument count on stack */ 41 unsigned int ca_arg1; /* first arg on stack */ 42 /* This can be followed by more arguments */ 43 }; 44 45 struct icallsframe { 46 struct callsframe ica_frame; /* std call frame */ 47 unsigned int ica_r0; /* interrupt saved r0 */ 48 unsigned int ica_r1; /* interrupt saved r1 */ 49 unsigned int ica_r2; /* interrupt saved r2 */ 50 unsigned int ica_r3; /* interrupt saved r3 */ 51 unsigned int ica_r4; /* interrupt saved r4 */ 52 unsigned int ica_r5; /* interrupt saved r5 */ 53 unsigned int ica_pc; /* interrupt saved pc */ 54 unsigned int ica_psl; /* interrupt saved psl */ 55 }; 56 57 #endif /* _VAX_FRAME_H */ 58