powerpc: merge sigcontext.h
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
This commit is contained in:
Родитель
879168ee51
Коммит
608f8b3cf3
|
@ -1,5 +1,5 @@
|
||||||
#ifndef _ASM_PPC64_SIGCONTEXT_H
|
#ifndef _ASM_POWERPC_SIGCONTEXT_H
|
||||||
#define _ASM_PPC64_SIGCONTEXT_H
|
#define _ASM_POWERPC_SIGCONTEXT_H
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
|
@ -9,39 +9,44 @@
|
||||||
*/
|
*/
|
||||||
#include <linux/compiler.h>
|
#include <linux/compiler.h>
|
||||||
#include <asm/ptrace.h>
|
#include <asm/ptrace.h>
|
||||||
|
#ifdef __powerpc64__
|
||||||
#include <asm/elf.h>
|
#include <asm/elf.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
struct sigcontext {
|
struct sigcontext {
|
||||||
unsigned long _unused[4];
|
unsigned long _unused[4];
|
||||||
int signal;
|
int signal;
|
||||||
|
#ifdef __powerpc64__
|
||||||
int _pad0;
|
int _pad0;
|
||||||
|
#endif
|
||||||
unsigned long handler;
|
unsigned long handler;
|
||||||
unsigned long oldmask;
|
unsigned long oldmask;
|
||||||
struct pt_regs __user *regs;
|
struct pt_regs __user *regs;
|
||||||
|
#ifdef __powerpc64__
|
||||||
elf_gregset_t gp_regs;
|
elf_gregset_t gp_regs;
|
||||||
elf_fpregset_t fp_regs;
|
elf_fpregset_t fp_regs;
|
||||||
/*
|
/*
|
||||||
* To maintain compatibility with current implementations the sigcontext is
|
* To maintain compatibility with current implementations the sigcontext is
|
||||||
* extended by appending a pointer (v_regs) to a quadword type (elf_vrreg_t)
|
* extended by appending a pointer (v_regs) to a quadword type (elf_vrreg_t)
|
||||||
* followed by an unstructured (vmx_reserve) field of 69 doublewords. This
|
* followed by an unstructured (vmx_reserve) field of 69 doublewords. This
|
||||||
* allows the array of vector registers to be quadword aligned independent of
|
* allows the array of vector registers to be quadword aligned independent of
|
||||||
* the alignment of the containing sigcontext or ucontext. It is the
|
* the alignment of the containing sigcontext or ucontext. It is the
|
||||||
* responsibility of the code setting the sigcontext to set this pointer to
|
* responsibility of the code setting the sigcontext to set this pointer to
|
||||||
* either NULL (if this processor does not support the VMX feature) or the
|
* either NULL (if this processor does not support the VMX feature) or the
|
||||||
* address of the first quadword within the allocated (vmx_reserve) area.
|
* address of the first quadword within the allocated (vmx_reserve) area.
|
||||||
*
|
*
|
||||||
* The pointer (v_regs) of vector type (elf_vrreg_t) is type compatible with
|
* The pointer (v_regs) of vector type (elf_vrreg_t) is type compatible with
|
||||||
* an array of 34 quadword entries (elf_vrregset_t). The entries with
|
* an array of 34 quadword entries (elf_vrregset_t). The entries with
|
||||||
* indexes 0-31 contain the corresponding vector registers. The entry with
|
* indexes 0-31 contain the corresponding vector registers. The entry with
|
||||||
* index 32 contains the vscr as the last word (offset 12) within the
|
* index 32 contains the vscr as the last word (offset 12) within the
|
||||||
* quadword. This allows the vscr to be stored as either a quadword (since
|
* quadword. This allows the vscr to be stored as either a quadword (since
|
||||||
* it must be copied via a vector register to/from storage) or as a word.
|
* it must be copied via a vector register to/from storage) or as a word.
|
||||||
* The entry with index 33 contains the vrsave as the first word (offset 0)
|
* The entry with index 33 contains the vrsave as the first word (offset 0)
|
||||||
* within the quadword.
|
* within the quadword.
|
||||||
*/
|
*/
|
||||||
elf_vrreg_t __user *v_regs;
|
elf_vrreg_t __user *v_regs;
|
||||||
long vmx_reserve[ELF_NVRREG+ELF_NVRREG+1];
|
long vmx_reserve[ELF_NVRREG+ELF_NVRREG+1];
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _ASM_PPC64_SIGCONTEXT_H */
|
#endif /* _ASM_POWERPC_SIGCONTEXT_H */
|
|
@ -1,15 +0,0 @@
|
||||||
#ifndef _ASM_PPC_SIGCONTEXT_H
|
|
||||||
#define _ASM_PPC_SIGCONTEXT_H
|
|
||||||
|
|
||||||
#include <asm/ptrace.h>
|
|
||||||
#include <linux/compiler.h>
|
|
||||||
|
|
||||||
struct sigcontext {
|
|
||||||
unsigned long _unused[4];
|
|
||||||
int signal;
|
|
||||||
unsigned long handler;
|
|
||||||
unsigned long oldmask;
|
|
||||||
struct pt_regs __user *regs;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
Загрузка…
Ссылка в новой задаче