diff options
Diffstat (limited to 'mdk-stage1/dietlibc/include/asm')
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/alpha-sigcontext.h | 29 | ||||
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/arm-sigcontext.h | 32 | ||||
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/i386-sigcontext.h | 66 | ||||
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/ia64-sigcontext.h | 25 | ||||
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/mips-sigcontext.h | 23 | ||||
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/parisc-sigcontext.h | 16 | ||||
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/ppc-sigcontext.h | 76 | ||||
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/sigcontext.h | 36 | ||||
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/sparc-sigcontext.h | 50 | ||||
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/statfs.h | 1 | ||||
-rw-r--r-- | mdk-stage1/dietlibc/include/asm/types.h | 32 |
11 files changed, 0 insertions, 386 deletions
diff --git a/mdk-stage1/dietlibc/include/asm/alpha-sigcontext.h b/mdk-stage1/dietlibc/include/asm/alpha-sigcontext.h deleted file mode 100644 index 13faab0b5..000000000 --- a/mdk-stage1/dietlibc/include/asm/alpha-sigcontext.h +++ /dev/null @@ -1,29 +0,0 @@ -struct sigcontext { - /* - * What should we have here? I'd probably better use the same - * stack layout as OSF/1, just in case we ever want to try - * running their binaries.. - * - * This is the basic layout, but I don't know if we'll ever - * actually fill in all the values.. - */ - long sc_onstack; - long sc_mask; - long sc_pc; - long sc_ps; - long sc_regs[32]; - long sc_ownedfp; - long sc_fpregs[32]; - unsigned long sc_fpcr; - unsigned long sc_fp_control; - unsigned long sc_reserved1, sc_reserved2; - unsigned long sc_ssize; - char * sc_sbase; - unsigned long sc_traparg_a0; - unsigned long sc_traparg_a1; - unsigned long sc_traparg_a2; - unsigned long sc_fp_trap_pc; - unsigned long sc_fp_trigger_sum; - unsigned long sc_fp_trigger_inst; -}; - diff --git a/mdk-stage1/dietlibc/include/asm/arm-sigcontext.h b/mdk-stage1/dietlibc/include/asm/arm-sigcontext.h deleted file mode 100644 index 26fa04e64..000000000 --- a/mdk-stage1/dietlibc/include/asm/arm-sigcontext.h +++ /dev/null @@ -1,32 +0,0 @@ - -#define PC(ctx) (ctx.arm_pc) - -/* - * Signal context structure - contains all info to do with the state - * before the signal handler was invoked. Note: only add new entries - * to the end of the structure. - */ -struct sigcontext { - unsigned long trap_no; - unsigned long error_code; - unsigned long oldmask; - unsigned long arm_r0; - unsigned long arm_r1; - unsigned long arm_r2; - unsigned long arm_r3; - unsigned long arm_r4; - unsigned long arm_r5; - unsigned long arm_r6; - unsigned long arm_r7; - unsigned long arm_r8; - unsigned long arm_r9; - unsigned long arm_r10; - unsigned long arm_fp; - unsigned long arm_ip; - unsigned long arm_sp; - unsigned long arm_lr; - unsigned long arm_pc; - unsigned long arm_cpsr; - unsigned long fault_address; -}; - diff --git a/mdk-stage1/dietlibc/include/asm/i386-sigcontext.h b/mdk-stage1/dietlibc/include/asm/i386-sigcontext.h deleted file mode 100644 index e830b9b97..000000000 --- a/mdk-stage1/dietlibc/include/asm/i386-sigcontext.h +++ /dev/null @@ -1,66 +0,0 @@ - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short padding[3]; -}; - -struct _xmmreg { - unsigned long element[4]; -}; - -struct _fpstate { - /* Regular FPU environment */ - unsigned long cw; - unsigned long sw; - unsigned long tag; - unsigned long ipoff; - unsigned long cssel; - unsigned long dataoff; - unsigned long datasel; - struct _fpreg _st[8]; - unsigned short status; - unsigned short magic; /* 0xffff = regular FPU data only */ - - /* FXSR FPU environment */ - unsigned long _fxsr_env[6]; /* FXSR FPU env is ignored */ - unsigned long mxcsr; - unsigned long reserved; - struct _fpxreg _fxsr_st[8]; /* FXSR FPU reg data is ignored */ - struct _xmmreg _xmm[8]; - unsigned long padding[56]; -}; - -#define X86_FXSR_MAGIC 0x0000 -#define PC(ctx) (ctx.eip) - -struct sigcontext { - unsigned short gs, __gsh; - unsigned short fs, __fsh; - unsigned short es, __esh; - unsigned short ds, __dsh; - unsigned long edi; - unsigned long esi; - unsigned long ebp; - unsigned long esp; - unsigned long ebx; - unsigned long edx; - unsigned long ecx; - unsigned long eax; - unsigned long trapno; - unsigned long err; - unsigned long eip; - unsigned short cs, __csh; - unsigned long eflags; - unsigned long esp_at_signal; - unsigned short ss, __ssh; - struct _fpstate * fpstate; - unsigned long oldmask; - unsigned long cr2; -}; - diff --git a/mdk-stage1/dietlibc/include/asm/ia64-sigcontext.h b/mdk-stage1/dietlibc/include/asm/ia64-sigcontext.h deleted file mode 100644 index ebab3c8f4..000000000 --- a/mdk-stage1/dietlibc/include/asm/ia64-sigcontext.h +++ /dev/null @@ -1,25 +0,0 @@ -#include <sys/ptrace.h> - -#define PC(ctx) (ctx.sc_ip) - -struct sigcontext { - unsigned long sc_flags; - unsigned long sc_nat; - stack_t sc_stack; - unsigned long sc_ip; - unsigned long sc_cfm; - unsigned long sc_um; - unsigned long sc_ar_rsc; - unsigned long sc_ar_bsp; - unsigned long sc_ar_rnat; - unsigned long sc_ar_ccv; - unsigned long sc_ar_unat; - unsigned long sc_ar_fpsr; - unsigned long sc_ar_pfs; - unsigned long sc_ar_lc; - unsigned long sc_pr; - unsigned long sc_br[8]; - unsigned long sc_gr[32]; - struct ia64_fpreg sc_fr[128]; - sigset_t sc_mask; -}; diff --git a/mdk-stage1/dietlibc/include/asm/mips-sigcontext.h b/mdk-stage1/dietlibc/include/asm/mips-sigcontext.h deleted file mode 100644 index 1210abf31..000000000 --- a/mdk-stage1/dietlibc/include/asm/mips-sigcontext.h +++ /dev/null @@ -1,23 +0,0 @@ - -/* - * Keep this struct definition in sync with the sigcontext fragment - * in arch/mips/tools/offset.c - */ -struct sigcontext { - unsigned int sc_regmask; /* Unused */ - unsigned int sc_status; - unsigned long long sc_pc; - unsigned long long sc_regs[32]; - unsigned long long sc_fpregs[32]; /* Unused */ - unsigned int sc_ownedfp; - unsigned int sc_fpc_csr; /* Unused */ - unsigned int sc_fpc_eir; /* Unused */ - unsigned int sc_ssflags; /* Unused */ - unsigned long long sc_mdhi; - unsigned long long sc_mdlo; - - unsigned int sc_cause; /* Unused */ - unsigned int sc_badvaddr; /* Unused */ - - unsigned long sc_sigset[4]; /* kernel's sigset_t */ -}; diff --git a/mdk-stage1/dietlibc/include/asm/parisc-sigcontext.h b/mdk-stage1/dietlibc/include/asm/parisc-sigcontext.h deleted file mode 100644 index 9428dd3e5..000000000 --- a/mdk-stage1/dietlibc/include/asm/parisc-sigcontext.h +++ /dev/null @@ -1,16 +0,0 @@ - -#define PARISC_SC_FLAG_ONSTACK 1<<0 -#define PARISC_SC_FLAG_IN_SYSCALL 1<<1 - -/* We will add more stuff here as it becomes necessary, until we know - it works. */ -struct sigcontext { - unsigned long sc_flags; - - unsigned long sc_gr[32]; /* PSW in sc_gr[0] */ - unsigned long long sc_fr[32]; /* FIXME, do we need other state info? */ - unsigned long sc_iasq[2]; - unsigned long sc_iaoq[2]; - unsigned long sc_sar; /* cr11 */ -}; - diff --git a/mdk-stage1/dietlibc/include/asm/ppc-sigcontext.h b/mdk-stage1/dietlibc/include/asm/ppc-sigcontext.h deleted file mode 100644 index 1d9704f3a..000000000 --- a/mdk-stage1/dietlibc/include/asm/ppc-sigcontext.h +++ /dev/null @@ -1,76 +0,0 @@ - -struct pt_regs { - unsigned long gpr[32]; - unsigned long nip; - unsigned long msr; - unsigned long orig_gpr3; /* Used for restarting system calls */ - unsigned long ctr; - unsigned long link; - unsigned long xer; - unsigned long ccr; - unsigned long mq; /* 601 only (not used at present) */ - /* Used on APUS to hold IPL value. */ - unsigned long trap; /* Reason for being here */ - unsigned long dar; /* Fault registers */ - unsigned long dsisr; - unsigned long result; /* Result of a system call */ -}; - -/* - * Offsets used by 'ptrace' system call interface. - * These can't be changed without breaking binary compatibility - * with MkLinux, etc. - */ -#define PT_R0 0 -#define PT_R1 1 -#define PT_R2 2 -#define PT_R3 3 -#define PT_R4 4 -#define PT_R5 5 -#define PT_R6 6 -#define PT_R7 7 -#define PT_R8 8 -#define PT_R9 9 -#define PT_R10 10 -#define PT_R11 11 -#define PT_R12 12 -#define PT_R13 13 -#define PT_R14 14 -#define PT_R15 15 -#define PT_R16 16 -#define PT_R17 17 -#define PT_R18 18 -#define PT_R19 19 -#define PT_R20 20 -#define PT_R21 21 -#define PT_R22 22 -#define PT_R23 23 -#define PT_R24 24 -#define PT_R25 25 -#define PT_R26 26 -#define PT_R27 27 -#define PT_R28 28 -#define PT_R29 29 -#define PT_R30 30 -#define PT_R31 31 - -#define PT_NIP 32 -#define PT_MSR 33 -#define PT_CTR 35 -#define PT_LNK 36 -#define PT_XER 37 -#define PT_CCR 38 -#define PT_MQ 39 - -#define PT_FPR0 48 /* each FP reg occupies 2 slots in this space */ -#define PT_FPR31 (PT_FPR0 + 2*31) -#define PT_FPSCR (PT_FPR0 + 2*32 + 1) - -#define sigcontext_struct sigcontext -struct sigcontext { - unsigned long _unused[4]; - int signal; - unsigned long handler; - unsigned long oldmask; - struct pt_regs *regs; -}; diff --git a/mdk-stage1/dietlibc/include/asm/sigcontext.h b/mdk-stage1/dietlibc/include/asm/sigcontext.h deleted file mode 100644 index c4a720cc0..000000000 --- a/mdk-stage1/dietlibc/include/asm/sigcontext.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef _ASM_SIGCONTEXT_H -#define _ASM_SIGCONTEXT_H - -#if defined(__i386__) || defined(__x86_64__) -#include <asm/i386-sigcontext.h> -#endif - -#ifdef __sparc__ -#include <asm/sparc-sigcontext.h> -#endif - -#ifdef __mips__ -#include <asm/mips-sigcontext.h> -#endif - -#ifdef __powerpc__ -#include <asm/ppc-sigcontext.h> -#endif - -#ifdef __alpha__ -#include <asm/alpha-sigcontext.h> -#endif - -#ifdef __arm__ -#include <asm/arm-sigcontext.h> -#endif - -#ifdef __hppa__ -#include <asm/parisc-sigcontext.h> -#endif - -#ifdef __ia64__ -#include <asm/ia64-sigcontext.h> -#endif - -#endif diff --git a/mdk-stage1/dietlibc/include/asm/sparc-sigcontext.h b/mdk-stage1/dietlibc/include/asm/sparc-sigcontext.h deleted file mode 100644 index 98e4e09ce..000000000 --- a/mdk-stage1/dietlibc/include/asm/sparc-sigcontext.h +++ /dev/null @@ -1,50 +0,0 @@ - -#define __SUNOS_MAXWIN 31 - -/* This is what SunOS does, so shall I. */ -struct sigcontext { - int sigc_onstack; /* state to restore */ - int sigc_mask; /* sigmask to restore */ - int sigc_sp; /* stack pointer */ - int sigc_pc; /* program counter */ - int sigc_npc; /* next program counter */ - int sigc_psr; /* for condition codes etc */ - int sigc_g1; /* User uses these two registers */ - int sigc_o0; /* within the trampoline code. */ - - /* Now comes information regarding the users window set - * at the time of the signal. - */ - int sigc_oswins; /* outstanding windows */ - - /* stack ptrs for each regwin buf */ - char *sigc_spbuf[__SUNOS_MAXWIN]; - - /* Windows to restore after signal */ - struct { - unsigned long locals[8]; - unsigned long ins[8]; - } sigc_wbuf[__SUNOS_MAXWIN]; -}; - -typedef struct { - struct { - unsigned long psr; - unsigned long pc; - unsigned long npc; - unsigned long y; - unsigned long u_regs[16]; /* globals and ins */ - } si_regs; - int si_mask; -} __siginfo_t; - -typedef struct { - unsigned long si_float_regs [32]; - unsigned long si_fsr; - unsigned long si_fpqdepth; - struct { - unsigned long *insn_addr; - unsigned long insn; - } si_fpqueue [16]; -} __siginfo_fpu_t; - diff --git a/mdk-stage1/dietlibc/include/asm/statfs.h b/mdk-stage1/dietlibc/include/asm/statfs.h deleted file mode 100644 index 53b3b5e4d..000000000 --- a/mdk-stage1/dietlibc/include/asm/statfs.h +++ /dev/null @@ -1 +0,0 @@ -#include <sys/vfs.h> diff --git a/mdk-stage1/dietlibc/include/asm/types.h b/mdk-stage1/dietlibc/include/asm/types.h deleted file mode 100644 index aafa80f16..000000000 --- a/mdk-stage1/dietlibc/include/asm/types.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef _ASM_TYPES_H -#define _ASM_TYPES_H - -#include <sys/types.h> - -#ifdef __alpha__ -typedef unsigned int umode_t; -#else -typedef unsigned short umode_t; -#endif - -typedef uint8_t __u8; -typedef uint16_t __u16; -typedef uint32_t __u32; -#ifndef __STRICT_ANSI__ -typedef uint64_t __u64; -#endif - -typedef int8_t __s8; -typedef int16_t __s16; -typedef int32_t __s32; -#ifndef __STRICT_ANSI__ -typedef int64_t __s64; -#endif - -#if defined(__alpha__) -typedef unsigned long __kernel_size_t; -#else -typedef unsigned int __kernel_size_t; -#endif - -#endif |