/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Emmanuel Dreyfus
* 4. The name of the author may not be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE THE AUTHOR AND CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _AMD64_LINUX32_SIGNAL_H_
#define _AMD64_LINUX32_SIGNAL_H_
/*
* We only define the ones used in linux32_machdep.c, since they are
* the same on i386 and amd64...
*/
#define LINUX32_SIGILL LINUX_SIGILL
#define LINUX32_SIGFPE LINUX_SIGFPE
#define LINUX32_SIGSEGV LINUX_SIGSEGV
#define LINUX32_SIGBUS LINUX_SIGBUS
#define LINUX32_SIGTRAP LINUX_SIGTRAP
#define LINUX32_SIGCHLD LINUX_SIGCHLD
#define LINUX32_SIGIO LINUX_SIGIO
#define LINUX32_SIGALRM LINUX_SIGALRM
#define LINUX32_SIGRTMIN LINUX_SIGRTMIN
struct linux32_sigaltstack {
netbsd32_voidp ss_sp;
int ss_flags;
netbsd32_size_t ss_size;
};
struct linux32_sigcontext {
int sc_gs;
int sc_fs;
int sc_es;
int sc_ds;
int sc_edi;
int sc_esi;
int sc_ebp;
int sc_esp;
int sc_ebx;
int sc_edx;
int sc_ecx;
int sc_eax;
int sc_trapno;
int sc_err;
int sc_eip;
int sc_cs;
int sc_eflags;
int sc_esp_at_signal;
int sc_ss;
linux32_fpstatep_t sc_387;
/* XXX check this */
linux32_old_sigset_t sc_mask;
int sc_cr2;
};
struct linux32_libc_fpreg {
unsigned short significand[4];
unsigned short exponent;
};