Home | History | Annotate | Line # | Download | only in include
netbsd32_machdep.h revision 1.7.12.1
      1  1.7.12.1   tls /*	$NetBSD: netbsd32_machdep.h,v 1.7.12.1 2014/08/20 00:03:19 tls Exp $	*/
      2       1.1  matt 
      3       1.1  matt /*
      4       1.1  matt  * Copyright (c) 1998, 2001 Matthew R. Green
      5       1.1  matt  * All rights reserved.
      6       1.1  matt  *
      7       1.1  matt  * Redistribution and use in source and binary forms, with or without
      8       1.1  matt  * modification, are permitted provided that the following conditions
      9       1.1  matt  * are met:
     10       1.1  matt  * 1. Redistributions of source code must retain the above copyright
     11       1.1  matt  *    notice, this list of conditions and the following disclaimer.
     12       1.1  matt  * 2. Redistributions in binary form must reproduce the above copyright
     13       1.1  matt  *    notice, this list of conditions and the following disclaimer in the
     14       1.1  matt  *    documentation and/or other materials provided with the distribution.
     15       1.1  matt  *
     16       1.1  matt  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     17       1.1  matt  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     18       1.1  matt  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     19       1.1  matt  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     20       1.1  matt  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
     21       1.1  matt  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     22       1.1  matt  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
     23       1.1  matt  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     24       1.1  matt  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     25       1.1  matt  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     26       1.1  matt  * SUCH DAMAGE.
     27       1.1  matt  */
     28       1.1  matt 
     29       1.1  matt #ifndef _MACHINE_NETBSD32_H_
     30       1.1  matt #define _MACHINE_NETBSD32_H_
     31       1.1  matt 
     32       1.1  matt #include <sys/types.h>
     33       1.1  matt #include <sys/proc.h>
     34       1.1  matt 
     35  1.7.12.1   tls #define NETBSD32_POINTER_TYPE			uint32_t
     36  1.7.12.1   tls typedef struct { NETBSD32_POINTER_TYPE i32; }	netbsd32_pointer_t;
     37       1.1  matt 
     38  1.7.12.1   tls /* ppc32 has normally aligned 64bit integers */
     39  1.7.12.1   tls #define NETBSD32_INT64_ALIGN
     40       1.3   dsl 
     41       1.1  matt #include <compat/netbsd32/netbsd32.h>
     42       1.1  matt #include <powerpc/frame.h>
     43       1.1  matt 
     44       1.7  matt /* from <sparc/include/signal.h> */
     45  1.7.12.1   tls typedef uint32_t netbsd32_sigcontextp_t;
     46       1.1  matt 
     47       1.1  matt struct netbsd32_sigcontext {
     48       1.1  matt 	int		sc_onstack;	/* sigstack state to restore */
     49       1.1  matt 	int		__sc_mask13;	/* signal mask to restore (old style) */
     50       1.1  matt 	/* begin machine dependent portion */
     51       1.1  matt 	struct trapframe32 sc_frame;	/* saved registers */
     52       1.1  matt 	sigset_t	sc_mask;	/* signal mask to restore (new style) */
     53       1.1  matt };
     54       1.1  matt 
     55       1.1  matt struct netbsd32_sigcontext13 {
     56       1.1  matt 	int	sc_onstack;		/* sigstack state to restore */
     57       1.1  matt 	int	sc_mask;		/* signal mask to restore (old style) */
     58       1.1  matt 	/* begin machine dependent portion */
     59       1.1  matt 	struct trapframe32 sc_frame;	/* saved registers */
     60       1.1  matt };
     61       1.1  matt 
     62       1.1  matt struct exec_package;
     63       1.6  matt void netbsd32_setregs (struct lwp *, struct exec_package *, vaddr_t);
     64       1.1  matt 
     65       1.1  matt extern char netbsd32_esigcode[], netbsd32_sigcode[];
     66       1.1  matt 
     67       1.1  matt /*
     68       1.1  matt  * Need to plug into get sparc specific ioctl's.
     69       1.1  matt  */
     70       1.1  matt #define	NETBSD32_MD_IOCTL	/* enable netbsd32_md_ioctl() */
     71  1.7.12.1   tls int netbsd32_md_ioctl(struct file *, netbsd32_u_long, void *, struct lwp *);
     72       1.1  matt 
     73       1.1  matt #endif /* _MACHINE_NETBSD32_H_ */
     74