diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-15 13:35:56 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-15 13:35:56 +0300 |
commit | 094638589de6a6c9f91fad0005843fc1c1adc957 (patch) | |
tree | 7d55b9e950eb724da222548997547bf6710b1b58 /contrib/libs/linux-headers/asm | |
parent | bc921e787bed8a51a43725b78382e806800c44c1 (diff) | |
download | ydb-094638589de6a6c9f91fad0005843fc1c1adc957.tar.gz |
intermediate changes
ref:ca7a95e8c9a9d780f96497136a152091d54e61b5
Diffstat (limited to 'contrib/libs/linux-headers/asm')
250 files changed, 0 insertions, 12036 deletions
diff --git a/contrib/libs/linux-headers/asm/a.out.h b/contrib/libs/linux-headers/asm/a.out.h deleted file mode 100644 index ff104cb1467..00000000000 --- a/contrib/libs/linux-headers/asm/a.out.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "a.out_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/a.out_x86.h b/contrib/libs/linux-headers/asm/a.out_x86.h deleted file mode 100644 index 094c49d8ea8..00000000000 --- a/contrib/libs/linux-headers/asm/a.out_x86.h +++ /dev/null @@ -1,21 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_A_OUT_H -#define _ASM_X86_A_OUT_H - -struct exec -{ - unsigned int a_info; /* Use macros N_MAGIC, etc for access */ - unsigned a_text; /* length of text, in bytes */ - unsigned a_data; /* length of data, in bytes */ - unsigned a_bss; /* length of uninitialized data area for file, in bytes */ - unsigned a_syms; /* length of symbol table data in file, in bytes */ - unsigned a_entry; /* start address */ - unsigned a_trsize; /* length of relocation info for text, in bytes */ - unsigned a_drsize; /* length of relocation info for data, in bytes */ -}; - -#define N_TRSIZE(a) ((a).a_trsize) -#define N_DRSIZE(a) ((a).a_drsize) -#define N_SYMSIZE(a) ((a).a_syms) - -#endif /* _ASM_X86_A_OUT_H */ diff --git a/contrib/libs/linux-headers/asm/auxvec.h b/contrib/libs/linux-headers/asm/auxvec.h deleted file mode 100644 index 04a8ee0e5a5..00000000000 --- a/contrib/libs/linux-headers/asm/auxvec.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "auxvec_arm.h" -#elif defined(__aarch64__) -#include "auxvec_arm64.h" -#elif defined(__powerpc__) -#include "auxvec_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "auxvec_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/auxvec_arm.h b/contrib/libs/linux-headers/asm/auxvec_arm.h deleted file mode 100644 index 5c09da5965d..00000000000 --- a/contrib/libs/linux-headers/asm/auxvec_arm.h +++ /dev/null @@ -1,8 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASM_AUXVEC_H -#define __ASM_AUXVEC_H - -/* VDSO location */ -#define AT_SYSINFO_EHDR 33 - -#endif diff --git a/contrib/libs/linux-headers/asm/auxvec_arm64.h b/contrib/libs/linux-headers/asm/auxvec_arm64.h deleted file mode 100644 index 743c0b84fd3..00000000000 --- a/contrib/libs/linux-headers/asm/auxvec_arm64.h +++ /dev/null @@ -1,26 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_AUXVEC_H -#define __ASM_AUXVEC_H - -/* vDSO location */ -#define AT_SYSINFO_EHDR 33 -#define AT_MINSIGSTKSZ 51 /* stack needed for signal delivery */ - -#define AT_VECTOR_SIZE_ARCH 2 /* entries in ARCH_DLINFO */ - -#endif diff --git a/contrib/libs/linux-headers/asm/auxvec_powerpc.h b/contrib/libs/linux-headers/asm/auxvec_powerpc.h deleted file mode 100644 index 7af21dc0e32..00000000000 --- a/contrib/libs/linux-headers/asm/auxvec_powerpc.h +++ /dev/null @@ -1,53 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_AUXVEC_H -#define _ASM_POWERPC_AUXVEC_H - -/* - * We need to put in some extra aux table entries to tell glibc what - * the cache block size is, so it can use the dcbz instruction safely. - */ -#define AT_DCACHEBSIZE 19 -#define AT_ICACHEBSIZE 20 -#define AT_UCACHEBSIZE 21 -/* A special ignored type value for PPC, for glibc compatibility. */ -#define AT_IGNOREPPC 22 - -/* The vDSO location. We have to use the same value as x86 for glibc's - * sake :-) - */ -#define AT_SYSINFO_EHDR 33 - -/* - * AT_*CACHEBSIZE above represent the cache *block* size which is - * the size that is affected by the cache management instructions. - * - * It doesn't nececssarily matches the cache *line* size which is - * more of a performance tuning hint. Additionally the latter can - * be different for the different cache levels. - * - * The set of entries below represent more extensive information - * about the caches, in the form of two entry per cache type, - * one entry containing the cache size in bytes, and the other - * containing the cache line size in bytes in the bottom 16 bits - * and the cache associativity in the next 16 bits. - * - * The associativity is such that if N is the 16-bit value, the - * cache is N way set associative. A value if 0xffff means fully - * associative, a value of 1 means directly mapped. - * - * For all these fields, a value of 0 means that the information - * is not known. - */ - -#define AT_L1I_CACHESIZE 40 -#define AT_L1I_CACHEGEOMETRY 41 -#define AT_L1D_CACHESIZE 42 -#define AT_L1D_CACHEGEOMETRY 43 -#define AT_L2_CACHESIZE 44 -#define AT_L2_CACHEGEOMETRY 45 -#define AT_L3_CACHESIZE 46 -#define AT_L3_CACHEGEOMETRY 47 - -#define AT_VECTOR_SIZE_ARCH 14 /* entries in ARCH_DLINFO */ - -#endif diff --git a/contrib/libs/linux-headers/asm/auxvec_x86.h b/contrib/libs/linux-headers/asm/auxvec_x86.h deleted file mode 100644 index 580e3c56704..00000000000 --- a/contrib/libs/linux-headers/asm/auxvec_x86.h +++ /dev/null @@ -1,20 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_AUXVEC_H -#define _ASM_X86_AUXVEC_H -/* - * Architecture-neutral AT_ values in 0-17, leave some room - * for more of them, start the x86-specific ones at 32. - */ -#ifdef __i386__ -#define AT_SYSINFO 32 -#endif -#define AT_SYSINFO_EHDR 33 - -/* entries in ARCH_DLINFO: */ -#if defined(CONFIG_IA32_EMULATION) || !defined(CONFIG_X86_64) -# define AT_VECTOR_SIZE_ARCH 2 -#else /* else it's non-compat x86-64 */ -# define AT_VECTOR_SIZE_ARCH 1 -#endif - -#endif /* _ASM_X86_AUXVEC_H */ diff --git a/contrib/libs/linux-headers/asm/bitsperlong.h b/contrib/libs/linux-headers/asm/bitsperlong.h deleted file mode 100644 index 492567a65d4..00000000000 --- a/contrib/libs/linux-headers/asm/bitsperlong.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "bitsperlong_arm.h" -#elif defined(__aarch64__) -#include "bitsperlong_arm64.h" -#elif defined(__powerpc__) -#include "bitsperlong_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "bitsperlong_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/bitsperlong_arm.h b/contrib/libs/linux-headers/asm/bitsperlong_arm.h deleted file mode 100644 index 6dc0bb0c13b..00000000000 --- a/contrib/libs/linux-headers/asm/bitsperlong_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/bitsperlong.h> diff --git a/contrib/libs/linux-headers/asm/bitsperlong_arm64.h b/contrib/libs/linux-headers/asm/bitsperlong_arm64.h deleted file mode 100644 index 485d60bee26..00000000000 --- a/contrib/libs/linux-headers/asm/bitsperlong_arm64.h +++ /dev/null @@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_BITSPERLONG_H -#define __ASM_BITSPERLONG_H - -#define __BITS_PER_LONG 64 - -#include <asm-generic/bitsperlong.h> - -#endif /* __ASM_BITSPERLONG_H */ diff --git a/contrib/libs/linux-headers/asm/bitsperlong_powerpc.h b/contrib/libs/linux-headers/asm/bitsperlong_powerpc.h deleted file mode 100644 index 46ece3ecff3..00000000000 --- a/contrib/libs/linux-headers/asm/bitsperlong_powerpc.h +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASM_POWERPC_BITSPERLONG_H -#define __ASM_POWERPC_BITSPERLONG_H - -#if defined(__powerpc64__) -# define __BITS_PER_LONG 64 -#else -# define __BITS_PER_LONG 32 -#endif - -#include <asm-generic/bitsperlong.h> - -#endif /* __ASM_POWERPC_BITSPERLONG_H */ diff --git a/contrib/libs/linux-headers/asm/bitsperlong_x86.h b/contrib/libs/linux-headers/asm/bitsperlong_x86.h deleted file mode 100644 index 5d72c845883..00000000000 --- a/contrib/libs/linux-headers/asm/bitsperlong_x86.h +++ /dev/null @@ -1,14 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASM_X86_BITSPERLONG_H -#define __ASM_X86_BITSPERLONG_H - -#if defined(__x86_64__) && !defined(__ILP32__) -# define __BITS_PER_LONG 64 -#else -# define __BITS_PER_LONG 32 -#endif - -#include <asm-generic/bitsperlong.h> - -#endif /* __ASM_X86_BITSPERLONG_H */ - diff --git a/contrib/libs/linux-headers/asm/boot.h b/contrib/libs/linux-headers/asm/boot.h deleted file mode 100644 index 3e3af99e587..00000000000 --- a/contrib/libs/linux-headers/asm/boot.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "boot_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/boot_x86.h b/contrib/libs/linux-headers/asm/boot_x86.h deleted file mode 100644 index a85c77dd53e..00000000000 --- a/contrib/libs/linux-headers/asm/boot_x86.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_BOOT_H -#define _ASM_X86_BOOT_H - -/* Internal svga startup constants */ -#define NORMAL_VGA 0xffff /* 80x25 mode */ -#define EXTENDED_VGA 0xfffe /* 80x50 mode */ -#define ASK_VGA 0xfffd /* ask for it at bootup */ - - -#endif /* _ASM_X86_BOOT_H */ diff --git a/contrib/libs/linux-headers/asm/bootparam.h b/contrib/libs/linux-headers/asm/bootparam.h deleted file mode 100644 index 405553fffaf..00000000000 --- a/contrib/libs/linux-headers/asm/bootparam.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "bootparam_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/bootparam_x86.h b/contrib/libs/linux-headers/asm/bootparam_x86.h deleted file mode 100644 index 53331139586..00000000000 --- a/contrib/libs/linux-headers/asm/bootparam_x86.h +++ /dev/null @@ -1,273 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_BOOTPARAM_H -#define _ASM_X86_BOOTPARAM_H - -/* setup_data/setup_indirect types */ -#define SETUP_NONE 0 -#define SETUP_E820_EXT 1 -#define SETUP_DTB 2 -#define SETUP_PCI 3 -#define SETUP_EFI 4 -#define SETUP_APPLE_PROPERTIES 5 -#define SETUP_JAILHOUSE 6 - -#define SETUP_INDIRECT (1<<31) - -/* SETUP_INDIRECT | max(SETUP_*) */ -#define SETUP_TYPE_MAX (SETUP_INDIRECT | SETUP_JAILHOUSE) - -/* ram_size flags */ -#define RAMDISK_IMAGE_START_MASK 0x07FF -#define RAMDISK_PROMPT_FLAG 0x8000 -#define RAMDISK_LOAD_FLAG 0x4000 - -/* loadflags */ -#define LOADED_HIGH (1<<0) -#define KASLR_FLAG (1<<1) -#define QUIET_FLAG (1<<5) -#define KEEP_SEGMENTS (1<<6) -#define CAN_USE_HEAP (1<<7) - -/* xloadflags */ -#define XLF_KERNEL_64 (1<<0) -#define XLF_CAN_BE_LOADED_ABOVE_4G (1<<1) -#define XLF_EFI_HANDOVER_32 (1<<2) -#define XLF_EFI_HANDOVER_64 (1<<3) -#define XLF_EFI_KEXEC (1<<4) -#define XLF_5LEVEL (1<<5) -#define XLF_5LEVEL_ENABLED (1<<6) - -#ifndef __ASSEMBLY__ - -#include <linux/types.h> -#include <linux/screen_info.h> -#include <linux/apm_bios.h> -#include <linux/edd.h> -#include <asm/ist.h> -#include <video/edid.h> - -/* extensible setup data list node */ -struct setup_data { - __u64 next; - __u32 type; - __u32 len; - __u8 data[0]; -}; - -/* extensible setup indirect data node */ -struct setup_indirect { - __u32 type; - __u32 reserved; /* Reserved, must be set to zero. */ - __u64 len; - __u64 addr; -}; - -struct setup_header { - __u8 setup_sects; - __u16 root_flags; - __u32 syssize; - __u16 ram_size; - __u16 vid_mode; - __u16 root_dev; - __u16 boot_flag; - __u16 jump; - __u32 header; - __u16 version; - __u32 realmode_swtch; - __u16 start_sys_seg; - __u16 kernel_version; - __u8 type_of_loader; - __u8 loadflags; - __u16 setup_move_size; - __u32 code32_start; - __u32 ramdisk_image; - __u32 ramdisk_size; - __u32 bootsect_kludge; - __u16 heap_end_ptr; - __u8 ext_loader_ver; - __u8 ext_loader_type; - __u32 cmd_line_ptr; - __u32 initrd_addr_max; - __u32 kernel_alignment; - __u8 relocatable_kernel; - __u8 min_alignment; - __u16 xloadflags; - __u32 cmdline_size; - __u32 hardware_subarch; - __u64 hardware_subarch_data; - __u32 payload_offset; - __u32 payload_length; - __u64 setup_data; - __u64 pref_address; - __u32 init_size; - __u32 handover_offset; - __u32 kernel_info_offset; -} __attribute__((packed)); - -struct sys_desc_table { - __u16 length; - __u8 table[14]; -}; - -/* Gleaned from OFW's set-parameters in cpu/x86/pc/linux.fth */ -struct olpc_ofw_header { - __u32 ofw_magic; /* OFW signature */ - __u32 ofw_version; - __u32 cif_handler; /* callback into OFW */ - __u32 irq_desc_table; -} __attribute__((packed)); - -struct efi_info { - __u32 efi_loader_signature; - __u32 efi_systab; - __u32 efi_memdesc_size; - __u32 efi_memdesc_version; - __u32 efi_memmap; - __u32 efi_memmap_size; - __u32 efi_systab_hi; - __u32 efi_memmap_hi; -}; - -/* - * This is the maximum number of entries in struct boot_params::e820_table - * (the zeropage), which is part of the x86 boot protocol ABI: - */ -#define E820_MAX_ENTRIES_ZEROPAGE 128 - -/* - * The E820 memory region entry of the boot protocol ABI: - */ -struct boot_e820_entry { - __u64 addr; - __u64 size; - __u32 type; -} __attribute__((packed)); - -/* - * Smallest compatible version of jailhouse_setup_data required by this kernel. - */ -#define JAILHOUSE_SETUP_REQUIRED_VERSION 1 - -/* - * The boot loader is passing platform information via this Jailhouse-specific - * setup data structure. - */ -struct jailhouse_setup_data { - struct { - __u16 version; - __u16 compatible_version; - } __attribute__((packed)) hdr; - struct { - __u16 pm_timer_address; - __u16 num_cpus; - __u64 pci_mmconfig_base; - __u32 tsc_khz; - __u32 apic_khz; - __u8 standard_ioapic; - __u8 cpu_ids[255]; - } __attribute__((packed)) v1; - struct { - __u32 flags; - } __attribute__((packed)) v2; -} __attribute__((packed)); - -/* The so-called "zeropage" */ -struct boot_params { - struct screen_info screen_info; /* 0x000 */ - struct apm_bios_info apm_bios_info; /* 0x040 */ - __u8 _pad2[4]; /* 0x054 */ - __u64 tboot_addr; /* 0x058 */ - struct ist_info ist_info; /* 0x060 */ - __u64 acpi_rsdp_addr; /* 0x070 */ - __u8 _pad3[8]; /* 0x078 */ - __u8 hd0_info[16]; /* obsolete! */ /* 0x080 */ - __u8 hd1_info[16]; /* obsolete! */ /* 0x090 */ - struct sys_desc_table sys_desc_table; /* obsolete! */ /* 0x0a0 */ - struct olpc_ofw_header olpc_ofw_header; /* 0x0b0 */ - __u32 ext_ramdisk_image; /* 0x0c0 */ - __u32 ext_ramdisk_size; /* 0x0c4 */ - __u32 ext_cmd_line_ptr; /* 0x0c8 */ - __u8 _pad4[116]; /* 0x0cc */ - struct edid_info edid_info; /* 0x140 */ - struct efi_info efi_info; /* 0x1c0 */ - __u32 alt_mem_k; /* 0x1e0 */ - __u32 scratch; /* Scratch field! */ /* 0x1e4 */ - __u8 e820_entries; /* 0x1e8 */ - __u8 eddbuf_entries; /* 0x1e9 */ - __u8 edd_mbr_sig_buf_entries; /* 0x1ea */ - __u8 kbd_status; /* 0x1eb */ - __u8 secure_boot; /* 0x1ec */ - __u8 _pad5[2]; /* 0x1ed */ - /* - * The sentinel is set to a nonzero value (0xff) in header.S. - * - * A bootloader is supposed to only take setup_header and put - * it into a clean boot_params buffer. If it turns out that - * it is clumsy or too generous with the buffer, it most - * probably will pick up the sentinel variable too. The fact - * that this variable then is still 0xff will let kernel - * know that some variables in boot_params are invalid and - * kernel should zero out certain portions of boot_params. - */ - __u8 sentinel; /* 0x1ef */ - __u8 _pad6[1]; /* 0x1f0 */ - struct setup_header hdr; /* setup header */ /* 0x1f1 */ - __u8 _pad7[0x290-0x1f1-sizeof(struct setup_header)]; - __u32 edd_mbr_sig_buffer[EDD_MBR_SIG_MAX]; /* 0x290 */ - struct boot_e820_entry e820_table[E820_MAX_ENTRIES_ZEROPAGE]; /* 0x2d0 */ - __u8 _pad8[48]; /* 0xcd0 */ - struct edd_info eddbuf[EDDMAXNR]; /* 0xd00 */ - __u8 _pad9[276]; /* 0xeec */ -} __attribute__((packed)); - -/** - * enum x86_hardware_subarch - x86 hardware subarchitecture - * - * The x86 hardware_subarch and hardware_subarch_data were added as of the x86 - * boot protocol 2.07 to help distinguish and support custom x86 boot - * sequences. This enum represents accepted values for the x86 - * hardware_subarch. Custom x86 boot sequences (not X86_SUBARCH_PC) do not - * have or simply *cannot* make use of natural stubs like BIOS or EFI, the - * hardware_subarch can be used on the Linux entry path to revector to a - * subarchitecture stub when needed. This subarchitecture stub can be used to - * set up Linux boot parameters or for special care to account for nonstandard - * handling of page tables. - * - * These enums should only ever be used by x86 code, and the code that uses - * it should be well contained and compartamentalized. - * - * KVM and Xen HVM do not have a subarch as these are expected to follow - * standard x86 boot entries. If there is a genuine need for "hypervisor" type - * that should be considered separately in the future. Future guest types - * should seriously consider working with standard x86 boot stubs such as - * the BIOS or EFI boot stubs. - * - * WARNING: this enum is only used for legacy hacks, for platform features that - * are not easily enumerated or discoverable. You should not ever use - * this for new features. - * - * @X86_SUBARCH_PC: Should be used if the hardware is enumerable using standard - * PC mechanisms (PCI, ACPI) and doesn't need a special boot flow. - * @X86_SUBARCH_LGUEST: Used for x86 hypervisor demo, lguest, deprecated - * @X86_SUBARCH_XEN: Used for Xen guest types which follow the PV boot path, - * which start at __asm__ startup_xen() entry point and later jump to the C - * xen_start_kernel() entry point. Both domU and dom0 type of guests are - * currently supportd through this PV boot path. - * @X86_SUBARCH_INTEL_MID: Used for Intel MID (Mobile Internet Device) platform - * systems which do not have the PCI legacy interfaces. - * @X86_SUBARCH_CE4100: Used for Intel CE media processor (CE4100) SoC for - * for settop boxes and media devices, the use of a subarch for CE4100 - * is more of a hack... - */ -enum x86_hardware_subarch { - X86_SUBARCH_PC = 0, - X86_SUBARCH_LGUEST, - X86_SUBARCH_XEN, - X86_SUBARCH_INTEL_MID, - X86_SUBARCH_CE4100, - X86_NR_SUBARCHS, -}; - -#endif /* __ASSEMBLY__ */ - -#endif /* _ASM_X86_BOOTPARAM_H */ diff --git a/contrib/libs/linux-headers/asm/bootx.h b/contrib/libs/linux-headers/asm/bootx.h deleted file mode 100644 index 05ea0711e5d..00000000000 --- a/contrib/libs/linux-headers/asm/bootx.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "bootx_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/bootx_powerpc.h b/contrib/libs/linux-headers/asm/bootx_powerpc.h deleted file mode 100644 index 2903d017280..00000000000 --- a/contrib/libs/linux-headers/asm/bootx_powerpc.h +++ /dev/null @@ -1,133 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * This file describes the structure passed from the BootX application - * (for MacOS) when it is used to boot Linux. - * - * Written by Benjamin Herrenschmidt. - */ - - -#ifndef __ASM_BOOTX_H__ -#define __ASM_BOOTX_H__ - -#include <linux/types.h> - -#ifdef macintosh -#include <Types.h> -#include "linux_type_defs.h" -#endif - -#ifdef macintosh -/* All this requires PowerPC alignment */ -#pragma options align=power -#endif - -/* On kernel entry: - * - * r3 = 0x426f6f58 ('BooX') - * r4 = pointer to boot_infos - * r5 = NULL - * - * Data and instruction translation disabled, interrupts - * disabled, kernel loaded at physical 0x00000000 on PCI - * machines (will be different on NuBus). - */ - -#define BOOT_INFO_VERSION 5 -#define BOOT_INFO_COMPATIBLE_VERSION 1 - -/* Bit in the architecture flag mask. More to be defined in - future versions. Note that either BOOT_ARCH_PCI or - BOOT_ARCH_NUBUS is set. The other BOOT_ARCH_NUBUS_xxx are - set additionally when BOOT_ARCH_NUBUS is set. - */ -#define BOOT_ARCH_PCI 0x00000001UL -#define BOOT_ARCH_NUBUS 0x00000002UL -#define BOOT_ARCH_NUBUS_PDM 0x00000010UL -#define BOOT_ARCH_NUBUS_PERFORMA 0x00000020UL -#define BOOT_ARCH_NUBUS_POWERBOOK 0x00000040UL - -/* Maximum number of ranges in phys memory map */ -#define MAX_MEM_MAP_SIZE 26 - -/* This is the format of an element in the physical memory map. Note that - the map is optional and current BootX will only build it for pre-PCI - machines */ -typedef struct boot_info_map_entry -{ - __u32 physAddr; /* Physical starting address */ - __u32 size; /* Size in bytes */ -} boot_info_map_entry_t; - - -/* Here are the boot informations that are passed to the bootstrap - * Note that the kernel arguments and the device tree are appended - * at the end of this structure. */ -typedef struct boot_infos -{ - /* Version of this structure */ - __u32 version; - /* backward compatible down to version: */ - __u32 compatible_version; - - /* NEW (vers. 2) this holds the current _logical_ base addr of - the frame buffer (for use by early boot message) */ - __u8* logicalDisplayBase; - - /* NEW (vers. 4) Apple's machine identification */ - __u32 machineID; - - /* NEW (vers. 4) Detected hw architecture */ - __u32 architecture; - - /* The device tree (internal addresses relative to the beginning of the tree, - * device tree offset relative to the beginning of this structure). - * On pre-PCI macintosh (BOOT_ARCH_PCI bit set to 0 in architecture), this - * field is 0. - */ - __u32 deviceTreeOffset; /* Device tree offset */ - __u32 deviceTreeSize; /* Size of the device tree */ - - /* Some infos about the current MacOS display */ - __u32 dispDeviceRect[4]; /* left,top,right,bottom */ - __u32 dispDeviceDepth; /* (8, 16 or 32) */ - __u8* dispDeviceBase; /* base address (physical) */ - __u32 dispDeviceRowBytes; /* rowbytes (in bytes) */ - __u32 dispDeviceColorsOffset; /* Colormap (8 bits only) or 0 (*) */ - /* Optional offset in the registry to the current - * MacOS display. (Can be 0 when not detected) */ - __u32 dispDeviceRegEntryOffset; - - /* Optional pointer to boot ramdisk (offset from this structure) */ - __u32 ramDisk; - __u32 ramDiskSize; /* size of ramdisk image */ - - /* Kernel command line arguments (offset from this structure) */ - __u32 kernelParamsOffset; - - /* ALL BELOW NEW (vers. 4) */ - - /* This defines the physical memory. Valid with BOOT_ARCH_NUBUS flag - (non-PCI) only. On PCI, memory is contiguous and it's size is in the - device-tree. */ - boot_info_map_entry_t - physMemoryMap[MAX_MEM_MAP_SIZE]; /* Where the phys memory is */ - __u32 physMemoryMapSize; /* How many entries in map */ - - - /* The framebuffer size (optional, currently 0) */ - __u32 frameBufferSize; /* Represents a max size, can be 0. */ - - /* NEW (vers. 5) */ - - /* Total params size (args + colormap + device tree + ramdisk) */ - __u32 totalParamsSize; - -} boot_infos_t; - - -#ifdef macintosh -#pragma options align=reset -#endif - -#endif /* __ASM_BOOTX_H__ */ diff --git a/contrib/libs/linux-headers/asm/bpf_perf_event.h b/contrib/libs/linux-headers/asm/bpf_perf_event.h deleted file mode 100644 index 929e9583f50..00000000000 --- a/contrib/libs/linux-headers/asm/bpf_perf_event.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "bpf_perf_event_arm.h" -#elif defined(__aarch64__) -#include "bpf_perf_event_arm64.h" -#elif defined(__powerpc__) -#include "bpf_perf_event_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "bpf_perf_event_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/bpf_perf_event_arm.h b/contrib/libs/linux-headers/asm/bpf_perf_event_arm.h deleted file mode 100644 index 3097758134b..00000000000 --- a/contrib/libs/linux-headers/asm/bpf_perf_event_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/bpf_perf_event.h> diff --git a/contrib/libs/linux-headers/asm/bpf_perf_event_arm64.h b/contrib/libs/linux-headers/asm/bpf_perf_event_arm64.h deleted file mode 100644 index 2dba8338205..00000000000 --- a/contrib/libs/linux-headers/asm/bpf_perf_event_arm64.h +++ /dev/null @@ -1,9 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASM_BPF_PERF_EVENT_H__ -#define __ASM_BPF_PERF_EVENT_H__ - -#include <asm/ptrace.h> - -typedef struct user_pt_regs bpf_user_pt_regs_t; - -#endif /* __ASM_BPF_PERF_EVENT_H__ */ diff --git a/contrib/libs/linux-headers/asm/bpf_perf_event_powerpc.h b/contrib/libs/linux-headers/asm/bpf_perf_event_powerpc.h deleted file mode 100644 index 2dba8338205..00000000000 --- a/contrib/libs/linux-headers/asm/bpf_perf_event_powerpc.h +++ /dev/null @@ -1,9 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASM_BPF_PERF_EVENT_H__ -#define __ASM_BPF_PERF_EVENT_H__ - -#include <asm/ptrace.h> - -typedef struct user_pt_regs bpf_user_pt_regs_t; - -#endif /* __ASM_BPF_PERF_EVENT_H__ */ diff --git a/contrib/libs/linux-headers/asm/bpf_perf_event_x86.h b/contrib/libs/linux-headers/asm/bpf_perf_event_x86.h deleted file mode 100644 index 3097758134b..00000000000 --- a/contrib/libs/linux-headers/asm/bpf_perf_event_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/bpf_perf_event.h> diff --git a/contrib/libs/linux-headers/asm/byteorder.h b/contrib/libs/linux-headers/asm/byteorder.h deleted file mode 100644 index 49ffe1ed307..00000000000 --- a/contrib/libs/linux-headers/asm/byteorder.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "byteorder_arm.h" -#elif defined(__aarch64__) -#include "byteorder_arm64.h" -#elif defined(__powerpc__) -#include "byteorder_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "byteorder_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/byteorder_arm.h b/contrib/libs/linux-headers/asm/byteorder_arm.h deleted file mode 100644 index cb8406afe16..00000000000 --- a/contrib/libs/linux-headers/asm/byteorder_arm.h +++ /dev/null @@ -1,26 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * arch/arm/include/asm/byteorder.h - * - * ARM Endian-ness. In little endian mode, the data bus is connected such - * that byte accesses appear as: - * 0 = d0...d7, 1 = d8...d15, 2 = d16...d23, 3 = d24...d31 - * and word accesses (data or instruction) appear as: - * d0...d31 - * - * When in big endian mode, byte accesses appear as: - * 0 = d24...d31, 1 = d16...d23, 2 = d8...d15, 3 = d0...d7 - * and word accesses (data or instruction) appear as: - * d0...d31 - */ -#ifndef __ASM_ARM_BYTEORDER_H -#define __ASM_ARM_BYTEORDER_H - -#ifdef __ARMEB__ -#include <linux/byteorder/big_endian.h> -#else -#include <linux/byteorder/little_endian.h> -#endif - -#endif - diff --git a/contrib/libs/linux-headers/asm/byteorder_arm64.h b/contrib/libs/linux-headers/asm/byteorder_arm64.h deleted file mode 100644 index ca9cfdab33f..00000000000 --- a/contrib/libs/linux-headers/asm/byteorder_arm64.h +++ /dev/null @@ -1,26 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_BYTEORDER_H -#define __ASM_BYTEORDER_H - -#ifdef __AARCH64EB__ -#include <linux/byteorder/big_endian.h> -#else -#include <linux/byteorder/little_endian.h> -#endif - -#endif /* __ASM_BYTEORDER_H */ diff --git a/contrib/libs/linux-headers/asm/byteorder_powerpc.h b/contrib/libs/linux-headers/asm/byteorder_powerpc.h deleted file mode 100644 index 8ef66f7d9db..00000000000 --- a/contrib/libs/linux-headers/asm/byteorder_powerpc.h +++ /dev/null @@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_BYTEORDER_H -#define _ASM_POWERPC_BYTEORDER_H - -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -#ifdef __LITTLE_ENDIAN__ -#include <linux/byteorder/little_endian.h> -#else -#include <linux/byteorder/big_endian.h> -#endif - -#endif /* _ASM_POWERPC_BYTEORDER_H */ diff --git a/contrib/libs/linux-headers/asm/byteorder_x86.h b/contrib/libs/linux-headers/asm/byteorder_x86.h deleted file mode 100644 index 149143cab9f..00000000000 --- a/contrib/libs/linux-headers/asm/byteorder_x86.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_BYTEORDER_H -#define _ASM_X86_BYTEORDER_H - -#include <linux/byteorder/little_endian.h> - -#endif /* _ASM_X86_BYTEORDER_H */ diff --git a/contrib/libs/linux-headers/asm/cputable.h b/contrib/libs/linux-headers/asm/cputable.h deleted file mode 100644 index 579f2b0e1c2..00000000000 --- a/contrib/libs/linux-headers/asm/cputable.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "cputable_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/cputable_powerpc.h b/contrib/libs/linux-headers/asm/cputable_powerpc.h deleted file mode 100644 index cf2b737f2cc..00000000000 --- a/contrib/libs/linux-headers/asm/cputable_powerpc.h +++ /dev/null @@ -1,61 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASM_POWERPC_CPUTABLE_H -#define __ASM_POWERPC_CPUTABLE_H - -/* in AT_HWCAP */ -#define PPC_FEATURE_32 0x80000000 -#define PPC_FEATURE_64 0x40000000 -#define PPC_FEATURE_601_INSTR 0x20000000 -#define PPC_FEATURE_HAS_ALTIVEC 0x10000000 -#define PPC_FEATURE_HAS_FPU 0x08000000 -#define PPC_FEATURE_HAS_MMU 0x04000000 -#define PPC_FEATURE_HAS_4xxMAC 0x02000000 -#define PPC_FEATURE_UNIFIED_CACHE 0x01000000 -#define PPC_FEATURE_HAS_SPE 0x00800000 -#define PPC_FEATURE_HAS_EFP_SINGLE 0x00400000 -#define PPC_FEATURE_HAS_EFP_DOUBLE 0x00200000 -#define PPC_FEATURE_NO_TB 0x00100000 -#define PPC_FEATURE_POWER4 0x00080000 -#define PPC_FEATURE_POWER5 0x00040000 -#define PPC_FEATURE_POWER5_PLUS 0x00020000 -#define PPC_FEATURE_CELL 0x00010000 -#define PPC_FEATURE_BOOKE 0x00008000 -#define PPC_FEATURE_SMT 0x00004000 -#define PPC_FEATURE_ICACHE_SNOOP 0x00002000 -#define PPC_FEATURE_ARCH_2_05 0x00001000 -#define PPC_FEATURE_PA6T 0x00000800 -#define PPC_FEATURE_HAS_DFP 0x00000400 -#define PPC_FEATURE_POWER6_EXT 0x00000200 -#define PPC_FEATURE_ARCH_2_06 0x00000100 -#define PPC_FEATURE_HAS_VSX 0x00000080 - -#define PPC_FEATURE_PSERIES_PERFMON_COMPAT \ - 0x00000040 - -/* Reserved - do not use 0x00000004 */ -#define PPC_FEATURE_TRUE_LE 0x00000002 -#define PPC_FEATURE_PPC_LE 0x00000001 - -/* in AT_HWCAP2 */ -#define PPC_FEATURE2_ARCH_2_07 0x80000000 -#define PPC_FEATURE2_HTM 0x40000000 -#define PPC_FEATURE2_DSCR 0x20000000 -#define PPC_FEATURE2_EBB 0x10000000 -#define PPC_FEATURE2_ISEL 0x08000000 -#define PPC_FEATURE2_TAR 0x04000000 -#define PPC_FEATURE2_VEC_CRYPTO 0x02000000 -#define PPC_FEATURE2_HTM_NOSC 0x01000000 -#define PPC_FEATURE2_ARCH_3_00 0x00800000 /* ISA 3.00 */ -#define PPC_FEATURE2_HAS_IEEE128 0x00400000 /* VSX IEEE Binary Float 128-bit */ -#define PPC_FEATURE2_DARN 0x00200000 /* darn random number insn */ -#define PPC_FEATURE2_SCV 0x00100000 /* scv syscall */ -#define PPC_FEATURE2_HTM_NO_SUSPEND 0x00080000 /* TM w/out suspended state */ - -/* - * IMPORTANT! - * All future PPC_FEATURE definitions should be allocated in cooperation with - * OPAL / skiboot firmware, in accordance with the ibm,powerpc-cpu-features - * device tree binding. - */ - -#endif /* __ASM_POWERPC_CPUTABLE_H */ diff --git a/contrib/libs/linux-headers/asm/debugreg.h b/contrib/libs/linux-headers/asm/debugreg.h deleted file mode 100644 index c02daeb0cc3..00000000000 --- a/contrib/libs/linux-headers/asm/debugreg.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "debugreg_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/debugreg_x86.h b/contrib/libs/linux-headers/asm/debugreg_x86.h deleted file mode 100644 index dff4999dc8a..00000000000 --- a/contrib/libs/linux-headers/asm/debugreg_x86.h +++ /dev/null @@ -1,81 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_DEBUGREG_H -#define _ASM_X86_DEBUGREG_H - - -/* Indicate the register numbers for a number of the specific - debug registers. Registers 0-3 contain the addresses we wish to trap on */ -#define DR_FIRSTADDR 0 /* u_debugreg[DR_FIRSTADDR] */ -#define DR_LASTADDR 3 /* u_debugreg[DR_LASTADDR] */ - -#define DR_STATUS 6 /* u_debugreg[DR_STATUS] */ -#define DR_CONTROL 7 /* u_debugreg[DR_CONTROL] */ - -/* Define a few things for the status register. We can use this to determine - which debugging register was responsible for the trap. The other bits - are either reserved or not of interest to us. */ - -/* Define reserved bits in DR6 which are always set to 1 */ -#define DR6_RESERVED (0xFFFF0FF0) - -#define DR_TRAP0 (0x1) /* db0 */ -#define DR_TRAP1 (0x2) /* db1 */ -#define DR_TRAP2 (0x4) /* db2 */ -#define DR_TRAP3 (0x8) /* db3 */ -#define DR_TRAP_BITS (DR_TRAP0|DR_TRAP1|DR_TRAP2|DR_TRAP3) - -#define DR_STEP (0x4000) /* single-step */ -#define DR_SWITCH (0x8000) /* task switch */ - -/* Now define a bunch of things for manipulating the control register. - The top two bytes of the control register consist of 4 fields of 4 - bits - each field corresponds to one of the four debug registers, - and indicates what types of access we trap on, and how large the data - field is that we are looking at */ - -#define DR_CONTROL_SHIFT 16 /* Skip this many bits in ctl register */ -#define DR_CONTROL_SIZE 4 /* 4 control bits per register */ - -#define DR_RW_EXECUTE (0x0) /* Settings for the access types to trap on */ -#define DR_RW_WRITE (0x1) -#define DR_RW_READ (0x3) - -#define DR_LEN_1 (0x0) /* Settings for data length to trap on */ -#define DR_LEN_2 (0x4) -#define DR_LEN_4 (0xC) -#define DR_LEN_8 (0x8) - -/* The low byte to the control register determine which registers are - enabled. There are 4 fields of two bits. One bit is "local", meaning - that the processor will reset the bit after a task switch and the other - is global meaning that we have to explicitly reset the bit. With linux, - you can use either one, since we explicitly zero the register when we enter - kernel mode. */ - -#define DR_LOCAL_ENABLE_SHIFT 0 /* Extra shift to the local enable bit */ -#define DR_GLOBAL_ENABLE_SHIFT 1 /* Extra shift to the global enable bit */ -#define DR_LOCAL_ENABLE (0x1) /* Local enable for reg 0 */ -#define DR_GLOBAL_ENABLE (0x2) /* Global enable for reg 0 */ -#define DR_ENABLE_SIZE 2 /* 2 enable bits per register */ - -#define DR_LOCAL_ENABLE_MASK (0x55) /* Set local bits for all 4 regs */ -#define DR_GLOBAL_ENABLE_MASK (0xAA) /* Set global bits for all 4 regs */ - -/* The second byte to the control register has a few special things. - We can slow the instruction pipeline for instructions coming via the - gdt or the ldt if we want to. I am not sure why this is an advantage */ - -#ifdef __i386__ -#define DR_CONTROL_RESERVED (0xFC00) /* Reserved by Intel */ -#else -#define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL) /* Reserved */ -#endif - -#define DR_LOCAL_SLOWDOWN (0x100) /* Local slow the pipeline */ -#define DR_GLOBAL_SLOWDOWN (0x200) /* Global slow the pipeline */ - -/* - * HW breakpoint additions - */ - -#endif /* _ASM_X86_DEBUGREG_H */ diff --git a/contrib/libs/linux-headers/asm/e820.h b/contrib/libs/linux-headers/asm/e820.h deleted file mode 100644 index 54b3be4d0ab..00000000000 --- a/contrib/libs/linux-headers/asm/e820.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "e820_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/e820_x86.h b/contrib/libs/linux-headers/asm/e820_x86.h deleted file mode 100644 index b4bc4dc5404..00000000000 --- a/contrib/libs/linux-headers/asm/e820_x86.h +++ /dev/null @@ -1,80 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_E820_H -#define _ASM_X86_E820_H -#define E820MAP 0x2d0 /* our map */ -#define E820MAX 128 /* number of entries in E820MAP */ - -/* - * Legacy E820 BIOS limits us to 128 (E820MAX) nodes due to the - * constrained space in the zeropage. If we have more nodes than - * that, and if we've booted off EFI firmware, then the EFI tables - * passed us from the EFI firmware can list more nodes. Size our - * internal memory map tables to have room for these additional - * nodes, based on up to three entries per node for which the - * kernel was built: MAX_NUMNODES == (1 << CONFIG_NODES_SHIFT), - * plus E820MAX, allowing space for the possible duplicate E820 - * entries that might need room in the same arrays, prior to the - * call to sanitize_e820_map() to remove duplicates. The allowance - * of three memory map entries per node is "enough" entries for - * the initial hardware platform motivating this mechanism to make - * use of additional EFI map entries. Future platforms may want - * to allow more than three entries per node or otherwise refine - * this size. - */ - -#define E820_X_MAX E820MAX - -#define E820NR 0x1e8 /* # entries in E820MAP */ - -#define E820_RAM 1 -#define E820_RESERVED 2 -#define E820_ACPI 3 -#define E820_NVS 4 -#define E820_UNUSABLE 5 -#define E820_PMEM 7 - -/* - * This is a non-standardized way to represent ADR or NVDIMM regions that - * persist over a reboot. The kernel will ignore their special capabilities - * unless the CONFIG_X86_PMEM_LEGACY option is set. - * - * ( Note that older platforms also used 6 for the same type of memory, - * but newer versions switched to 12 as 6 was assigned differently. Some - * time they will learn... ) - */ -#define E820_PRAM 12 - -/* - * reserved RAM used by kernel itself - * if CONFIG_INTEL_TXT is enabled, memory of this type will be - * included in the S3 integrity calculation and so should not include - * any memory that BIOS might alter over the S3 transition - */ -#define E820_RESERVED_KERN 128 - -#ifndef __ASSEMBLY__ -#include <linux/types.h> -struct e820entry { - __u64 addr; /* start of memory segment */ - __u64 size; /* size of memory segment */ - __u32 type; /* type of memory segment */ -} __attribute__((packed)); - -struct e820map { - __u32 nr_map; - struct e820entry map[E820_X_MAX]; -}; - -#define ISA_START_ADDRESS 0xa0000 -#define ISA_END_ADDRESS 0x100000 - -#define BIOS_BEGIN 0x000a0000 -#define BIOS_END 0x00100000 - -#define BIOS_ROM_BASE 0xffe00000 -#define BIOS_ROM_END 0xffffffff - -#endif /* __ASSEMBLY__ */ - - -#endif /* _ASM_X86_E820_H */ diff --git a/contrib/libs/linux-headers/asm/eeh.h b/contrib/libs/linux-headers/asm/eeh.h deleted file mode 100644 index e0025e061d6..00000000000 --- a/contrib/libs/linux-headers/asm/eeh.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "eeh_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/eeh_powerpc.h b/contrib/libs/linux-headers/asm/eeh_powerpc.h deleted file mode 100644 index 28186071faf..00000000000 --- a/contrib/libs/linux-headers/asm/eeh_powerpc.h +++ /dev/null @@ -1,57 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * Copyright IBM Corp. 2015 - * - * Authors: Gavin Shan <gwshan@linux.vnet.ibm.com> - */ - -#ifndef _ASM_POWERPC_EEH_H -#define _ASM_POWERPC_EEH_H - -/* PE states */ -#define EEH_PE_STATE_NORMAL 0 /* Normal state */ -#define EEH_PE_STATE_RESET 1 /* PE reset asserted */ -#define EEH_PE_STATE_STOPPED_IO_DMA 2 /* Frozen PE */ -#define EEH_PE_STATE_STOPPED_DMA 4 /* Stopped DMA only */ -#define EEH_PE_STATE_UNAVAIL 5 /* Unavailable */ - -/* EEH error types and functions */ -#define EEH_ERR_TYPE_32 0 /* 32-bits error */ -#define EEH_ERR_TYPE_64 1 /* 64-bits error */ -#define EEH_ERR_FUNC_MIN 0 -#define EEH_ERR_FUNC_LD_MEM_ADDR 0 /* Memory load */ -#define EEH_ERR_FUNC_LD_MEM_DATA 1 -#define EEH_ERR_FUNC_LD_IO_ADDR 2 /* IO load */ -#define EEH_ERR_FUNC_LD_IO_DATA 3 -#define EEH_ERR_FUNC_LD_CFG_ADDR 4 /* Config load */ -#define EEH_ERR_FUNC_LD_CFG_DATA 5 -#define EEH_ERR_FUNC_ST_MEM_ADDR 6 /* Memory store */ -#define EEH_ERR_FUNC_ST_MEM_DATA 7 -#define EEH_ERR_FUNC_ST_IO_ADDR 8 /* IO store */ -#define EEH_ERR_FUNC_ST_IO_DATA 9 -#define EEH_ERR_FUNC_ST_CFG_ADDR 10 /* Config store */ -#define EEH_ERR_FUNC_ST_CFG_DATA 11 -#define EEH_ERR_FUNC_DMA_RD_ADDR 12 /* DMA read */ -#define EEH_ERR_FUNC_DMA_RD_DATA 13 -#define EEH_ERR_FUNC_DMA_RD_MASTER 14 -#define EEH_ERR_FUNC_DMA_RD_TARGET 15 -#define EEH_ERR_FUNC_DMA_WR_ADDR 16 /* DMA write */ -#define EEH_ERR_FUNC_DMA_WR_DATA 17 -#define EEH_ERR_FUNC_DMA_WR_MASTER 18 -#define EEH_ERR_FUNC_DMA_WR_TARGET 19 -#define EEH_ERR_FUNC_MAX 19 - -#endif /* _ASM_POWERPC_EEH_H */ diff --git a/contrib/libs/linux-headers/asm/elf.h b/contrib/libs/linux-headers/asm/elf.h deleted file mode 100644 index f4d4213660c..00000000000 --- a/contrib/libs/linux-headers/asm/elf.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "elf_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/elf_powerpc.h b/contrib/libs/linux-headers/asm/elf_powerpc.h deleted file mode 100644 index daa39260a76..00000000000 --- a/contrib/libs/linux-headers/asm/elf_powerpc.h +++ /dev/null @@ -1,300 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * ELF register definitions.. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -#ifndef _ASM_POWERPC_ELF_H -#define _ASM_POWERPC_ELF_H - - -#include <linux/types.h> - -#include <asm/ptrace.h> -#include <asm/cputable.h> -#include <asm/auxvec.h> - -/* PowerPC relocations defined by the ABIs */ -#define R_PPC_NONE 0 -#define R_PPC_ADDR32 1 /* 32bit absolute address */ -#define R_PPC_ADDR24 2 /* 26bit address, 2 bits ignored. */ -#define R_PPC_ADDR16 3 /* 16bit absolute address */ -#define R_PPC_ADDR16_LO 4 /* lower 16bit of absolute address */ -#define R_PPC_ADDR16_HI 5 /* high 16bit of absolute address */ -#define R_PPC_ADDR16_HA 6 /* adjusted high 16bit */ -#define R_PPC_ADDR14 7 /* 16bit address, 2 bits ignored */ -#define R_PPC_ADDR14_BRTAKEN 8 -#define R_PPC_ADDR14_BRNTAKEN 9 -#define R_PPC_REL24 10 /* PC relative 26 bit */ -#define R_PPC_REL14 11 /* PC relative 16 bit */ -#define R_PPC_REL14_BRTAKEN 12 -#define R_PPC_REL14_BRNTAKEN 13 -#define R_PPC_GOT16 14 -#define R_PPC_GOT16_LO 15 -#define R_PPC_GOT16_HI 16 -#define R_PPC_GOT16_HA 17 -#define R_PPC_PLTREL24 18 -#define R_PPC_COPY 19 -#define R_PPC_GLOB_DAT 20 -#define R_PPC_JMP_SLOT 21 -#define R_PPC_RELATIVE 22 -#define R_PPC_LOCAL24PC 23 -#define R_PPC_UADDR32 24 -#define R_PPC_UADDR16 25 -#define R_PPC_REL32 26 -#define R_PPC_PLT32 27 -#define R_PPC_PLTREL32 28 -#define R_PPC_PLT16_LO 29 -#define R_PPC_PLT16_HI 30 -#define R_PPC_PLT16_HA 31 -#define R_PPC_SDAREL16 32 -#define R_PPC_SECTOFF 33 -#define R_PPC_SECTOFF_LO 34 -#define R_PPC_SECTOFF_HI 35 -#define R_PPC_SECTOFF_HA 36 - -/* PowerPC relocations defined for the TLS access ABI. */ -#define R_PPC_TLS 67 /* none (sym+add)@tls */ -#define R_PPC_DTPMOD32 68 /* word32 (sym+add)@dtpmod */ -#define R_PPC_TPREL16 69 /* half16* (sym+add)@tprel */ -#define R_PPC_TPREL16_LO 70 /* half16 (sym+add)@tprel@l */ -#define R_PPC_TPREL16_HI 71 /* half16 (sym+add)@tprel@h */ -#define R_PPC_TPREL16_HA 72 /* half16 (sym+add)@tprel@ha */ -#define R_PPC_TPREL32 73 /* word32 (sym+add)@tprel */ -#define R_PPC_DTPREL16 74 /* half16* (sym+add)@dtprel */ -#define R_PPC_DTPREL16_LO 75 /* half16 (sym+add)@dtprel@l */ -#define R_PPC_DTPREL16_HI 76 /* half16 (sym+add)@dtprel@h */ -#define R_PPC_DTPREL16_HA 77 /* half16 (sym+add)@dtprel@ha */ -#define R_PPC_DTPREL32 78 /* word32 (sym+add)@dtprel */ -#define R_PPC_GOT_TLSGD16 79 /* half16* (sym+add)@got@tlsgd */ -#define R_PPC_GOT_TLSGD16_LO 80 /* half16 (sym+add)@got@tlsgd@l */ -#define R_PPC_GOT_TLSGD16_HI 81 /* half16 (sym+add)@got@tlsgd@h */ -#define R_PPC_GOT_TLSGD16_HA 82 /* half16 (sym+add)@got@tlsgd@ha */ -#define R_PPC_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */ -#define R_PPC_GOT_TLSLD16_LO 84 /* half16 (sym+add)@got@tlsld@l */ -#define R_PPC_GOT_TLSLD16_HI 85 /* half16 (sym+add)@got@tlsld@h */ -#define R_PPC_GOT_TLSLD16_HA 86 /* half16 (sym+add)@got@tlsld@ha */ -#define R_PPC_GOT_TPREL16 87 /* half16* (sym+add)@got@tprel */ -#define R_PPC_GOT_TPREL16_LO 88 /* half16 (sym+add)@got@tprel@l */ -#define R_PPC_GOT_TPREL16_HI 89 /* half16 (sym+add)@got@tprel@h */ -#define R_PPC_GOT_TPREL16_HA 90 /* half16 (sym+add)@got@tprel@ha */ -#define R_PPC_GOT_DTPREL16 91 /* half16* (sym+add)@got@dtprel */ -#define R_PPC_GOT_DTPREL16_LO 92 /* half16* (sym+add)@got@dtprel@l */ -#define R_PPC_GOT_DTPREL16_HI 93 /* half16* (sym+add)@got@dtprel@h */ -#define R_PPC_GOT_DTPREL16_HA 94 /* half16* (sym+add)@got@dtprel@ha */ - -/* keep this the last entry. */ -#define R_PPC_NUM 95 - - -#define ELF_NGREG 48 /* includes nip, msr, lr, etc. */ -#define ELF_NFPREG 33 /* includes fpscr */ -#define ELF_NVMX 34 /* includes all vector registers */ -#define ELF_NVSX 32 /* includes all VSX registers */ -#define ELF_NTMSPRREG 3 /* include tfhar, tfiar, texasr */ -#define ELF_NEBB 3 /* includes ebbrr, ebbhr, bescr */ -#define ELF_NPMU 5 /* includes siar, sdar, sier, mmcr2, mmcr0 */ -#define ELF_NPKEY 3 /* includes amr, iamr, uamor */ - -typedef unsigned long elf_greg_t64; -typedef elf_greg_t64 elf_gregset_t64[ELF_NGREG]; - -typedef unsigned int elf_greg_t32; -typedef elf_greg_t32 elf_gregset_t32[ELF_NGREG]; -typedef elf_gregset_t32 compat_elf_gregset_t; - -/* - * ELF_ARCH, CLASS, and DATA are used to set parameters in the core dumps. - */ -#ifdef __powerpc64__ -# define ELF_NVRREG32 33 /* includes vscr & vrsave stuffed together */ -# define ELF_NVRREG 34 /* includes vscr & vrsave in split vectors */ -# define ELF_NVSRHALFREG 32 /* Half the vsx registers */ -# define ELF_GREG_TYPE elf_greg_t64 -# define ELF_ARCH EM_PPC64 -# define ELF_CLASS ELFCLASS64 -typedef elf_greg_t64 elf_greg_t; -typedef elf_gregset_t64 elf_gregset_t; -#else -# define ELF_NEVRREG 34 /* includes acc (as 2) */ -# define ELF_NVRREG 33 /* includes vscr */ -# define ELF_GREG_TYPE elf_greg_t32 -# define ELF_ARCH EM_PPC -# define ELF_CLASS ELFCLASS32 -typedef elf_greg_t32 elf_greg_t; -typedef elf_gregset_t32 elf_gregset_t; -#endif /* __powerpc64__ */ - -#ifdef __BIG_ENDIAN__ -#define ELF_DATA ELFDATA2MSB -#else -#define ELF_DATA ELFDATA2LSB -#endif - -/* Floating point registers */ -typedef double elf_fpreg_t; -typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; - -/* Altivec registers */ -/* - * The entries 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 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. - * - * 64-bit kernel notes: The entry at index 33 contains the vrsave as the first - * word (offset 0) within the quadword. - * - * This definition of the VMX state is compatible with the current PPC32 - * ptrace interface. This allows signal handling and ptrace to use the same - * structures. This also simplifies the implementation of a bi-arch - * (combined (32- and 64-bit) gdb. - * - * Note that it's _not_ compatible with 32 bits ucontext which stuffs the - * vrsave along with vscr and so only uses 33 vectors for the register set - */ -typedef __vector128 elf_vrreg_t; -typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG]; -#ifdef __powerpc64__ -typedef elf_vrreg_t elf_vrregset_t32[ELF_NVRREG32]; -typedef elf_fpreg_t elf_vsrreghalf_t32[ELF_NVSRHALFREG]; -#endif - -/* PowerPC64 relocations defined by the ABIs */ -#define R_PPC64_NONE R_PPC_NONE -#define R_PPC64_ADDR32 R_PPC_ADDR32 /* 32bit absolute address. */ -#define R_PPC64_ADDR24 R_PPC_ADDR24 /* 26bit address, word aligned. */ -#define R_PPC64_ADDR16 R_PPC_ADDR16 /* 16bit absolute address. */ -#define R_PPC64_ADDR16_LO R_PPC_ADDR16_LO /* lower 16bits of abs. address. */ -#define R_PPC64_ADDR16_HI R_PPC_ADDR16_HI /* high 16bits of abs. address. */ -#define R_PPC64_ADDR16_HA R_PPC_ADDR16_HA /* adjusted high 16bits. */ -#define R_PPC64_ADDR14 R_PPC_ADDR14 /* 16bit address, word aligned. */ -#define R_PPC64_ADDR14_BRTAKEN R_PPC_ADDR14_BRTAKEN -#define R_PPC64_ADDR14_BRNTAKEN R_PPC_ADDR14_BRNTAKEN -#define R_PPC64_REL24 R_PPC_REL24 /* PC relative 26 bit, word aligned. */ -#define R_PPC64_REL14 R_PPC_REL14 /* PC relative 16 bit. */ -#define R_PPC64_REL14_BRTAKEN R_PPC_REL14_BRTAKEN -#define R_PPC64_REL14_BRNTAKEN R_PPC_REL14_BRNTAKEN -#define R_PPC64_GOT16 R_PPC_GOT16 -#define R_PPC64_GOT16_LO R_PPC_GOT16_LO -#define R_PPC64_GOT16_HI R_PPC_GOT16_HI -#define R_PPC64_GOT16_HA R_PPC_GOT16_HA - -#define R_PPC64_COPY R_PPC_COPY -#define R_PPC64_GLOB_DAT R_PPC_GLOB_DAT -#define R_PPC64_JMP_SLOT R_PPC_JMP_SLOT -#define R_PPC64_RELATIVE R_PPC_RELATIVE - -#define R_PPC64_UADDR32 R_PPC_UADDR32 -#define R_PPC64_UADDR16 R_PPC_UADDR16 -#define R_PPC64_REL32 R_PPC_REL32 -#define R_PPC64_PLT32 R_PPC_PLT32 -#define R_PPC64_PLTREL32 R_PPC_PLTREL32 -#define R_PPC64_PLT16_LO R_PPC_PLT16_LO -#define R_PPC64_PLT16_HI R_PPC_PLT16_HI -#define R_PPC64_PLT16_HA R_PPC_PLT16_HA - -#define R_PPC64_SECTOFF R_PPC_SECTOFF -#define R_PPC64_SECTOFF_LO R_PPC_SECTOFF_LO -#define R_PPC64_SECTOFF_HI R_PPC_SECTOFF_HI -#define R_PPC64_SECTOFF_HA R_PPC_SECTOFF_HA -#define R_PPC64_ADDR30 37 /* word30 (S + A - P) >> 2. */ -#define R_PPC64_ADDR64 38 /* doubleword64 S + A. */ -#define R_PPC64_ADDR16_HIGHER 39 /* half16 #higher(S + A). */ -#define R_PPC64_ADDR16_HIGHERA 40 /* half16 #highera(S + A). */ -#define R_PPC64_ADDR16_HIGHEST 41 /* half16 #highest(S + A). */ -#define R_PPC64_ADDR16_HIGHESTA 42 /* half16 #highesta(S + A). */ -#define R_PPC64_UADDR64 43 /* doubleword64 S + A. */ -#define R_PPC64_REL64 44 /* doubleword64 S + A - P. */ -#define R_PPC64_PLT64 45 /* doubleword64 L + A. */ -#define R_PPC64_PLTREL64 46 /* doubleword64 L + A - P. */ -#define R_PPC64_TOC16 47 /* half16* S + A - .TOC. */ -#define R_PPC64_TOC16_LO 48 /* half16 #lo(S + A - .TOC.). */ -#define R_PPC64_TOC16_HI 49 /* half16 #hi(S + A - .TOC.). */ -#define R_PPC64_TOC16_HA 50 /* half16 #ha(S + A - .TOC.). */ -#define R_PPC64_TOC 51 /* doubleword64 .TOC. */ -#define R_PPC64_PLTGOT16 52 /* half16* M + A. */ -#define R_PPC64_PLTGOT16_LO 53 /* half16 #lo(M + A). */ -#define R_PPC64_PLTGOT16_HI 54 /* half16 #hi(M + A). */ -#define R_PPC64_PLTGOT16_HA 55 /* half16 #ha(M + A). */ - -#define R_PPC64_ADDR16_DS 56 /* half16ds* (S + A) >> 2. */ -#define R_PPC64_ADDR16_LO_DS 57 /* half16ds #lo(S + A) >> 2. */ -#define R_PPC64_GOT16_DS 58 /* half16ds* (G + A) >> 2. */ -#define R_PPC64_GOT16_LO_DS 59 /* half16ds #lo(G + A) >> 2. */ -#define R_PPC64_PLT16_LO_DS 60 /* half16ds #lo(L + A) >> 2. */ -#define R_PPC64_SECTOFF_DS 61 /* half16ds* (R + A) >> 2. */ -#define R_PPC64_SECTOFF_LO_DS 62 /* half16ds #lo(R + A) >> 2. */ -#define R_PPC64_TOC16_DS 63 /* half16ds* (S + A - .TOC.) >> 2. */ -#define R_PPC64_TOC16_LO_DS 64 /* half16ds #lo(S + A - .TOC.) >> 2. */ -#define R_PPC64_PLTGOT16_DS 65 /* half16ds* (M + A) >> 2. */ -#define R_PPC64_PLTGOT16_LO_DS 66 /* half16ds #lo(M + A) >> 2. */ - -/* PowerPC64 relocations defined for the TLS access ABI. */ -#define R_PPC64_TLS 67 /* none (sym+add)@tls */ -#define R_PPC64_DTPMOD64 68 /* doubleword64 (sym+add)@dtpmod */ -#define R_PPC64_TPREL16 69 /* half16* (sym+add)@tprel */ -#define R_PPC64_TPREL16_LO 70 /* half16 (sym+add)@tprel@l */ -#define R_PPC64_TPREL16_HI 71 /* half16 (sym+add)@tprel@h */ -#define R_PPC64_TPREL16_HA 72 /* half16 (sym+add)@tprel@ha */ -#define R_PPC64_TPREL64 73 /* doubleword64 (sym+add)@tprel */ -#define R_PPC64_DTPREL16 74 /* half16* (sym+add)@dtprel */ -#define R_PPC64_DTPREL16_LO 75 /* half16 (sym+add)@dtprel@l */ -#define R_PPC64_DTPREL16_HI 76 /* half16 (sym+add)@dtprel@h */ -#define R_PPC64_DTPREL16_HA 77 /* half16 (sym+add)@dtprel@ha */ -#define R_PPC64_DTPREL64 78 /* doubleword64 (sym+add)@dtprel */ -#define R_PPC64_GOT_TLSGD16 79 /* half16* (sym+add)@got@tlsgd */ -#define R_PPC64_GOT_TLSGD16_LO 80 /* half16 (sym+add)@got@tlsgd@l */ -#define R_PPC64_GOT_TLSGD16_HI 81 /* half16 (sym+add)@got@tlsgd@h */ -#define R_PPC64_GOT_TLSGD16_HA 82 /* half16 (sym+add)@got@tlsgd@ha */ -#define R_PPC64_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */ -#define R_PPC64_GOT_TLSLD16_LO 84 /* half16 (sym+add)@got@tlsld@l */ -#define R_PPC64_GOT_TLSLD16_HI 85 /* half16 (sym+add)@got@tlsld@h */ -#define R_PPC64_GOT_TLSLD16_HA 86 /* half16 (sym+add)@got@tlsld@ha */ -#define R_PPC64_GOT_TPREL16_DS 87 /* half16ds* (sym+add)@got@tprel */ -#define R_PPC64_GOT_TPREL16_LO_DS 88 /* half16ds (sym+add)@got@tprel@l */ -#define R_PPC64_GOT_TPREL16_HI 89 /* half16 (sym+add)@got@tprel@h */ -#define R_PPC64_GOT_TPREL16_HA 90 /* half16 (sym+add)@got@tprel@ha */ -#define R_PPC64_GOT_DTPREL16_DS 91 /* half16ds* (sym+add)@got@dtprel */ -#define R_PPC64_GOT_DTPREL16_LO_DS 92 /* half16ds (sym+add)@got@dtprel@l */ -#define R_PPC64_GOT_DTPREL16_HI 93 /* half16 (sym+add)@got@dtprel@h */ -#define R_PPC64_GOT_DTPREL16_HA 94 /* half16 (sym+add)@got@dtprel@ha */ -#define R_PPC64_TPREL16_DS 95 /* half16ds* (sym+add)@tprel */ -#define R_PPC64_TPREL16_LO_DS 96 /* half16ds (sym+add)@tprel@l */ -#define R_PPC64_TPREL16_HIGHER 97 /* half16 (sym+add)@tprel@higher */ -#define R_PPC64_TPREL16_HIGHERA 98 /* half16 (sym+add)@tprel@highera */ -#define R_PPC64_TPREL16_HIGHEST 99 /* half16 (sym+add)@tprel@highest */ -#define R_PPC64_TPREL16_HIGHESTA 100 /* half16 (sym+add)@tprel@highesta */ -#define R_PPC64_DTPREL16_DS 101 /* half16ds* (sym+add)@dtprel */ -#define R_PPC64_DTPREL16_LO_DS 102 /* half16ds (sym+add)@dtprel@l */ -#define R_PPC64_DTPREL16_HIGHER 103 /* half16 (sym+add)@dtprel@higher */ -#define R_PPC64_DTPREL16_HIGHERA 104 /* half16 (sym+add)@dtprel@highera */ -#define R_PPC64_DTPREL16_HIGHEST 105 /* half16 (sym+add)@dtprel@highest */ -#define R_PPC64_DTPREL16_HIGHESTA 106 /* half16 (sym+add)@dtprel@highesta */ -#define R_PPC64_TLSGD 107 -#define R_PPC64_TLSLD 108 -#define R_PPC64_TOCSAVE 109 - -#define R_PPC64_ENTRY 118 - -#define R_PPC64_REL16 249 -#define R_PPC64_REL16_LO 250 -#define R_PPC64_REL16_HI 251 -#define R_PPC64_REL16_HA 252 - -/* Keep this the last entry. */ -#define R_PPC64_NUM 253 - -/* There's actually a third entry here, but it's unused */ -struct ppc64_opd_entry -{ - unsigned long funcaddr; - unsigned long r2; -}; - - -#endif /* _ASM_POWERPC_ELF_H */ diff --git a/contrib/libs/linux-headers/asm/epapr_hcalls.h b/contrib/libs/linux-headers/asm/epapr_hcalls.h deleted file mode 100644 index 6ea5f3370db..00000000000 --- a/contrib/libs/linux-headers/asm/epapr_hcalls.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "epapr_hcalls_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/epapr_hcalls_powerpc.h b/contrib/libs/linux-headers/asm/epapr_hcalls_powerpc.h deleted file mode 100644 index 6cca5599937..00000000000 --- a/contrib/libs/linux-headers/asm/epapr_hcalls_powerpc.h +++ /dev/null @@ -1,99 +0,0 @@ -/* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) */ -/* - * ePAPR hcall interface - * - * Copyright 2008-2011 Freescale Semiconductor, Inc. - * - * Author: Timur Tabi <timur@freescale.com> - * - * This file is provided under a dual BSD/GPL license. When using or - * redistributing this file, you may do so under either license. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * 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. - * * Neither the name of Freescale Semiconductor nor the - * names of its contributors may be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * - * ALTERNATIVELY, this software may be distributed under the terms of the - * GNU General Public License ("GPL") as published by the Free Software - * Foundation, either version 2 of that License or (at your option) any - * later version. - * - * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``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 Freescale Semiconductor 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 _ASM_POWERPC_EPAPR_HCALLS_H -#define _ASM_POWERPC_EPAPR_HCALLS_H - -#define EV_BYTE_CHANNEL_SEND 1 -#define EV_BYTE_CHANNEL_RECEIVE 2 -#define EV_BYTE_CHANNEL_POLL 3 -#define EV_INT_SET_CONFIG 4 -#define EV_INT_GET_CONFIG 5 -#define EV_INT_SET_MASK 6 -#define EV_INT_GET_MASK 7 -#define EV_INT_IACK 9 -#define EV_INT_EOI 10 -#define EV_INT_SEND_IPI 11 -#define EV_INT_SET_TASK_PRIORITY 12 -#define EV_INT_GET_TASK_PRIORITY 13 -#define EV_DOORBELL_SEND 14 -#define EV_MSGSND 15 -#define EV_IDLE 16 - -/* vendor ID: epapr */ -#define EV_LOCAL_VENDOR_ID 0 /* for private use */ -#define EV_EPAPR_VENDOR_ID 1 -#define EV_FSL_VENDOR_ID 2 /* Freescale Semiconductor */ -#define EV_IBM_VENDOR_ID 3 /* IBM */ -#define EV_GHS_VENDOR_ID 4 /* Green Hills Software */ -#define EV_ENEA_VENDOR_ID 5 /* Enea */ -#define EV_WR_VENDOR_ID 6 /* Wind River Systems */ -#define EV_AMCC_VENDOR_ID 7 /* Applied Micro Circuits */ -#define EV_KVM_VENDOR_ID 42 /* KVM */ - -/* The max number of bytes that a byte channel can send or receive per call */ -#define EV_BYTE_CHANNEL_MAX_BYTES 16 - - -#define _EV_HCALL_TOKEN(id, num) (((id) << 16) | (num)) -#define EV_HCALL_TOKEN(hcall_num) _EV_HCALL_TOKEN(EV_EPAPR_VENDOR_ID, hcall_num) - -/* epapr return codes */ -#define EV_SUCCESS 0 -#define EV_EPERM 1 /* Operation not permitted */ -#define EV_ENOENT 2 /* Entry Not Found */ -#define EV_EIO 3 /* I/O error occurred */ -#define EV_EAGAIN 4 /* The operation had insufficient - * resources to complete and should be - * retried - */ -#define EV_ENOMEM 5 /* There was insufficient memory to - * complete the operation */ -#define EV_EFAULT 6 /* Bad guest address */ -#define EV_ENODEV 7 /* No such device */ -#define EV_EINVAL 8 /* An argument supplied to the hcall - was out of range or invalid */ -#define EV_INTERNAL 9 /* An internal error occurred */ -#define EV_CONFIG 10 /* A configuration error was detected */ -#define EV_INVALID_STATE 11 /* The object is in an invalid state */ -#define EV_UNIMPLEMENTED 12 /* Unimplemented hypercall */ -#define EV_BUFFER_OVERFLOW 13 /* Caller-supplied buffer too small */ - -#endif /* _ASM_POWERPC_EPAPR_HCALLS_H */ diff --git a/contrib/libs/linux-headers/asm/errno.h b/contrib/libs/linux-headers/asm/errno.h deleted file mode 100644 index bb5e6ca124d..00000000000 --- a/contrib/libs/linux-headers/asm/errno.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "errno_arm.h" -#elif defined(__aarch64__) -#include "errno_arm64.h" -#elif defined(__powerpc__) -#include "errno_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "errno_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/errno_arm.h b/contrib/libs/linux-headers/asm/errno_arm.h deleted file mode 100644 index 4c82b503d92..00000000000 --- a/contrib/libs/linux-headers/asm/errno_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/errno.h> diff --git a/contrib/libs/linux-headers/asm/errno_arm64.h b/contrib/libs/linux-headers/asm/errno_arm64.h deleted file mode 100644 index 4c82b503d92..00000000000 --- a/contrib/libs/linux-headers/asm/errno_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/errno.h> diff --git a/contrib/libs/linux-headers/asm/errno_powerpc.h b/contrib/libs/linux-headers/asm/errno_powerpc.h deleted file mode 100644 index cc79856896a..00000000000 --- a/contrib/libs/linux-headers/asm/errno_powerpc.h +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_ERRNO_H -#define _ASM_POWERPC_ERRNO_H - -#include <asm-generic/errno.h> - -#undef EDEADLOCK -#define EDEADLOCK 58 /* File locking deadlock error */ - -#endif /* _ASM_POWERPC_ERRNO_H */ diff --git a/contrib/libs/linux-headers/asm/errno_x86.h b/contrib/libs/linux-headers/asm/errno_x86.h deleted file mode 100644 index 4c82b503d92..00000000000 --- a/contrib/libs/linux-headers/asm/errno_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/errno.h> diff --git a/contrib/libs/linux-headers/asm/fcntl.h b/contrib/libs/linux-headers/asm/fcntl.h deleted file mode 100644 index 07f74067e4f..00000000000 --- a/contrib/libs/linux-headers/asm/fcntl.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "fcntl_arm.h" -#elif defined(__aarch64__) -#include "fcntl_arm64.h" -#elif defined(__powerpc__) -#include "fcntl_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "fcntl_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/fcntl_arm.h b/contrib/libs/linux-headers/asm/fcntl_arm.h deleted file mode 100644 index e6b5d7141c0..00000000000 --- a/contrib/libs/linux-headers/asm/fcntl_arm.h +++ /dev/null @@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ARM_FCNTL_H -#define _ARM_FCNTL_H - -#define O_DIRECTORY 040000 /* must be a directory */ -#define O_NOFOLLOW 0100000 /* don't follow links */ -#define O_DIRECT 0200000 /* direct disk access hint - currently ignored */ -#define O_LARGEFILE 0400000 - -#include <asm-generic/fcntl.h> - -#endif diff --git a/contrib/libs/linux-headers/asm/fcntl_arm64.h b/contrib/libs/linux-headers/asm/fcntl_arm64.h deleted file mode 100644 index f8db34f2622..00000000000 --- a/contrib/libs/linux-headers/asm/fcntl_arm64.h +++ /dev/null @@ -1,30 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_FCNTL_H -#define __ASM_FCNTL_H - -/* - * Using our own definitions for AArch32 (compat) support. - */ -#define O_DIRECTORY 040000 /* must be a directory */ -#define O_NOFOLLOW 0100000 /* don't follow links */ -#define O_DIRECT 0200000 /* direct disk access hint - currently ignored */ -#define O_LARGEFILE 0400000 - -#include <asm-generic/fcntl.h> - -#endif diff --git a/contrib/libs/linux-headers/asm/fcntl_powerpc.h b/contrib/libs/linux-headers/asm/fcntl_powerpc.h deleted file mode 100644 index 65ce08322a8..00000000000 --- a/contrib/libs/linux-headers/asm/fcntl_powerpc.h +++ /dev/null @@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_FCNTL_H -#define _ASM_FCNTL_H - -#define O_DIRECTORY 040000 /* must be a directory */ -#define O_NOFOLLOW 0100000 /* don't follow links */ -#define O_LARGEFILE 0200000 -#define O_DIRECT 0400000 /* direct disk access hint */ - -#include <asm-generic/fcntl.h> - -#endif /* _ASM_FCNTL_H */ diff --git a/contrib/libs/linux-headers/asm/fcntl_x86.h b/contrib/libs/linux-headers/asm/fcntl_x86.h deleted file mode 100644 index 46ab12db573..00000000000 --- a/contrib/libs/linux-headers/asm/fcntl_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/fcntl.h> diff --git a/contrib/libs/linux-headers/asm/hw_breakpoint.h b/contrib/libs/linux-headers/asm/hw_breakpoint.h deleted file mode 100644 index 8e1dd2bad2a..00000000000 --- a/contrib/libs/linux-headers/asm/hw_breakpoint.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "hw_breakpoint_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/hw_breakpoint_x86.h b/contrib/libs/linux-headers/asm/hw_breakpoint_x86.h deleted file mode 100644 index 6789884c770..00000000000 --- a/contrib/libs/linux-headers/asm/hw_breakpoint_x86.h +++ /dev/null @@ -1,2 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* */ diff --git a/contrib/libs/linux-headers/asm/hwcap.h b/contrib/libs/linux-headers/asm/hwcap.h deleted file mode 100644 index e1b9b12a32d..00000000000 --- a/contrib/libs/linux-headers/asm/hwcap.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "hwcap_arm.h" -#elif defined(__aarch64__) -#include "hwcap_arm64.h" -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/hwcap2.h b/contrib/libs/linux-headers/asm/hwcap2.h deleted file mode 100644 index ac5b3f1548e..00000000000 --- a/contrib/libs/linux-headers/asm/hwcap2.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "hwcap2_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/hwcap2_x86.h b/contrib/libs/linux-headers/asm/hwcap2_x86.h deleted file mode 100644 index 8b2effe6efb..00000000000 --- a/contrib/libs/linux-headers/asm/hwcap2_x86.h +++ /dev/null @@ -1,8 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_HWCAP2_H -#define _ASM_X86_HWCAP2_H - -/* MONITOR/MWAIT enabled in Ring 3 */ -#define HWCAP2_RING3MWAIT (1 << 0) - -#endif diff --git a/contrib/libs/linux-headers/asm/hwcap_arm.h b/contrib/libs/linux-headers/asm/hwcap_arm.h deleted file mode 100644 index 7880573beb5..00000000000 --- a/contrib/libs/linux-headers/asm/hwcap_arm.h +++ /dev/null @@ -1,41 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASMARM_HWCAP_H -#define __ASMARM_HWCAP_H - -/* - * HWCAP flags - for elf_hwcap (in kernel) and AT_HWCAP - */ -#define HWCAP_SWP (1 << 0) -#define HWCAP_HALF (1 << 1) -#define HWCAP_THUMB (1 << 2) -#define HWCAP_26BIT (1 << 3) /* Play it safe */ -#define HWCAP_FAST_MULT (1 << 4) -#define HWCAP_FPA (1 << 5) -#define HWCAP_VFP (1 << 6) -#define HWCAP_EDSP (1 << 7) -#define HWCAP_JAVA (1 << 8) -#define HWCAP_IWMMXT (1 << 9) -#define HWCAP_CRUNCH (1 << 10) -#define HWCAP_THUMBEE (1 << 11) -#define HWCAP_NEON (1 << 12) -#define HWCAP_VFPv3 (1 << 13) -#define HWCAP_VFPv3D16 (1 << 14) /* also set for VFPv4-D16 */ -#define HWCAP_TLS (1 << 15) -#define HWCAP_VFPv4 (1 << 16) -#define HWCAP_IDIVA (1 << 17) -#define HWCAP_IDIVT (1 << 18) -#define HWCAP_VFPD32 (1 << 19) /* set if VFP has 32 regs (not 16) */ -#define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT) -#define HWCAP_LPAE (1 << 20) -#define HWCAP_EVTSTRM (1 << 21) - -/* - * HWCAP2 flags - for elf_hwcap2 (in kernel) and AT_HWCAP2 - */ -#define HWCAP2_AES (1 << 0) -#define HWCAP2_PMULL (1 << 1) -#define HWCAP2_SHA1 (1 << 2) -#define HWCAP2_SHA2 (1 << 3) -#define HWCAP2_CRC32 (1 << 4) - -#endif /* __ASMARM_HWCAP_H */ diff --git a/contrib/libs/linux-headers/asm/hwcap_arm64.h b/contrib/libs/linux-headers/asm/hwcap_arm64.h deleted file mode 100644 index c86862217a6..00000000000 --- a/contrib/libs/linux-headers/asm/hwcap_arm64.h +++ /dev/null @@ -1,77 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_HWCAP_H -#define __ASM_HWCAP_H - -/* - * HWCAP flags - for AT_HWCAP - */ -#define HWCAP_FP (1 << 0) -#define HWCAP_ASIMD (1 << 1) -#define HWCAP_EVTSTRM (1 << 2) -#define HWCAP_AES (1 << 3) -#define HWCAP_PMULL (1 << 4) -#define HWCAP_SHA1 (1 << 5) -#define HWCAP_SHA2 (1 << 6) -#define HWCAP_CRC32 (1 << 7) -#define HWCAP_ATOMICS (1 << 8) -#define HWCAP_FPHP (1 << 9) -#define HWCAP_ASIMDHP (1 << 10) -#define HWCAP_CPUID (1 << 11) -#define HWCAP_ASIMDRDM (1 << 12) -#define HWCAP_JSCVT (1 << 13) -#define HWCAP_FCMA (1 << 14) -#define HWCAP_LRCPC (1 << 15) -#define HWCAP_DCPOP (1 << 16) -#define HWCAP_SHA3 (1 << 17) -#define HWCAP_SM3 (1 << 18) -#define HWCAP_SM4 (1 << 19) -#define HWCAP_ASIMDDP (1 << 20) -#define HWCAP_SHA512 (1 << 21) -#define HWCAP_SVE (1 << 22) -#define HWCAP_ASIMDFHM (1 << 23) -#define HWCAP_DIT (1 << 24) -#define HWCAP_USCAT (1 << 25) -#define HWCAP_ILRCPC (1 << 26) -#define HWCAP_FLAGM (1 << 27) -#define HWCAP_SSBS (1 << 28) -#define HWCAP_SB (1 << 29) -#define HWCAP_PACA (1 << 30) -#define HWCAP_PACG (1UL << 31) - -/* - * HWCAP2 flags - for AT_HWCAP2 - */ -#define HWCAP2_DCPODP (1 << 0) -#define HWCAP2_SVE2 (1 << 1) -#define HWCAP2_SVEAES (1 << 2) -#define HWCAP2_SVEPMULL (1 << 3) -#define HWCAP2_SVEBITPERM (1 << 4) -#define HWCAP2_SVESHA3 (1 << 5) -#define HWCAP2_SVESM4 (1 << 6) -#define HWCAP2_FLAGM2 (1 << 7) -#define HWCAP2_FRINT (1 << 8) -#define HWCAP2_SVEI8MM (1 << 9) -#define HWCAP2_SVEF32MM (1 << 10) -#define HWCAP2_SVEF64MM (1 << 11) -#define HWCAP2_SVEBF16 (1 << 12) -#define HWCAP2_I8MM (1 << 13) -#define HWCAP2_BF16 (1 << 14) -#define HWCAP2_DGH (1 << 15) -#define HWCAP2_RNG (1 << 16) - -#endif /* __ASM_HWCAP_H */ diff --git a/contrib/libs/linux-headers/asm/ioctl.h b/contrib/libs/linux-headers/asm/ioctl.h deleted file mode 100644 index 1c1c3a06584..00000000000 --- a/contrib/libs/linux-headers/asm/ioctl.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "ioctl_arm.h" -#elif defined(__aarch64__) -#include "ioctl_arm64.h" -#elif defined(__powerpc__) -#include "ioctl_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "ioctl_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/ioctl_arm.h b/contrib/libs/linux-headers/asm/ioctl_arm.h deleted file mode 100644 index b279fe06dfe..00000000000 --- a/contrib/libs/linux-headers/asm/ioctl_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/ioctl.h> diff --git a/contrib/libs/linux-headers/asm/ioctl_arm64.h b/contrib/libs/linux-headers/asm/ioctl_arm64.h deleted file mode 100644 index b279fe06dfe..00000000000 --- a/contrib/libs/linux-headers/asm/ioctl_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/ioctl.h> diff --git a/contrib/libs/linux-headers/asm/ioctl_powerpc.h b/contrib/libs/linux-headers/asm/ioctl_powerpc.h deleted file mode 100644 index d623af4b9cd..00000000000 --- a/contrib/libs/linux-headers/asm/ioctl_powerpc.h +++ /dev/null @@ -1,14 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_IOCTL_H -#define _ASM_POWERPC_IOCTL_H - -#define _IOC_SIZEBITS 13 -#define _IOC_DIRBITS 3 - -#define _IOC_NONE 1U -#define _IOC_READ 2U -#define _IOC_WRITE 4U - -#include <asm-generic/ioctl.h> - -#endif /* _ASM_POWERPC_IOCTL_H */ diff --git a/contrib/libs/linux-headers/asm/ioctl_x86.h b/contrib/libs/linux-headers/asm/ioctl_x86.h deleted file mode 100644 index b279fe06dfe..00000000000 --- a/contrib/libs/linux-headers/asm/ioctl_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/ioctl.h> diff --git a/contrib/libs/linux-headers/asm/ioctls.h b/contrib/libs/linux-headers/asm/ioctls.h deleted file mode 100644 index e78f51ea58b..00000000000 --- a/contrib/libs/linux-headers/asm/ioctls.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "ioctls_arm.h" -#elif defined(__aarch64__) -#include "ioctls_arm64.h" -#elif defined(__powerpc__) -#include "ioctls_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "ioctls_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/ioctls_arm.h b/contrib/libs/linux-headers/asm/ioctls_arm.h deleted file mode 100644 index 1bfe2854fb5..00000000000 --- a/contrib/libs/linux-headers/asm/ioctls_arm.h +++ /dev/null @@ -1,9 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASM_ARM_IOCTLS_H -#define __ASM_ARM_IOCTLS_H - -#define FIOQSIZE 0x545E - -#include <asm-generic/ioctls.h> - -#endif diff --git a/contrib/libs/linux-headers/asm/ioctls_arm64.h b/contrib/libs/linux-headers/asm/ioctls_arm64.h deleted file mode 100644 index ec34c760665..00000000000 --- a/contrib/libs/linux-headers/asm/ioctls_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/ioctls.h> diff --git a/contrib/libs/linux-headers/asm/ioctls_powerpc.h b/contrib/libs/linux-headers/asm/ioctls_powerpc.h deleted file mode 100644 index a3a841d035a..00000000000 --- a/contrib/libs/linux-headers/asm/ioctls_powerpc.h +++ /dev/null @@ -1,123 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_IOCTLS_H -#define _ASM_POWERPC_IOCTLS_H - -#include <asm/ioctl.h> - -#define FIOCLEX _IO('f', 1) -#define FIONCLEX _IO('f', 2) -#define FIOASYNC _IOW('f', 125, int) -#define FIONBIO _IOW('f', 126, int) -#define FIONREAD _IOR('f', 127, int) -#define TIOCINQ FIONREAD -#define FIOQSIZE _IOR('f', 128, loff_t) - -#define TIOCGETP _IOR('t', 8, struct sgttyb) -#define TIOCSETP _IOW('t', 9, struct sgttyb) -#define TIOCSETN _IOW('t', 10, struct sgttyb) /* TIOCSETP wo flush */ - -#define TIOCSETC _IOW('t', 17, struct tchars) -#define TIOCGETC _IOR('t', 18, struct tchars) -#define TCGETS _IOR('t', 19, struct termios) -#define TCSETS _IOW('t', 20, struct termios) -#define TCSETSW _IOW('t', 21, struct termios) -#define TCSETSF _IOW('t', 22, struct termios) - -#define TCGETA _IOR('t', 23, struct termio) -#define TCSETA _IOW('t', 24, struct termio) -#define TCSETAW _IOW('t', 25, struct termio) -#define TCSETAF _IOW('t', 28, struct termio) - -#define TCSBRK _IO('t', 29) -#define TCXONC _IO('t', 30) -#define TCFLSH _IO('t', 31) - -#define TIOCSWINSZ _IOW('t', 103, struct winsize) -#define TIOCGWINSZ _IOR('t', 104, struct winsize) -#define TIOCSTART _IO('t', 110) /* start output, like ^Q */ -#define TIOCSTOP _IO('t', 111) /* stop output, like ^S */ -#define TIOCOUTQ _IOR('t', 115, int) /* output queue size */ - -#define TIOCGLTC _IOR('t', 116, struct ltchars) -#define TIOCSLTC _IOW('t', 117, struct ltchars) -#define TIOCSPGRP _IOW('t', 118, int) -#define TIOCGPGRP _IOR('t', 119, int) - -#define TIOCEXCL 0x540C -#define TIOCNXCL 0x540D -#define TIOCSCTTY 0x540E - -#define TIOCSTI 0x5412 -#define TIOCMGET 0x5415 -#define TIOCMBIS 0x5416 -#define TIOCMBIC 0x5417 -#define TIOCMSET 0x5418 -# define TIOCM_LE 0x001 -# define TIOCM_DTR 0x002 -# define TIOCM_RTS 0x004 -# define TIOCM_ST 0x008 -# define TIOCM_SR 0x010 -# define TIOCM_CTS 0x020 -# define TIOCM_CAR 0x040 -# define TIOCM_RNG 0x080 -# define TIOCM_DSR 0x100 -# define TIOCM_CD TIOCM_CAR -# define TIOCM_RI TIOCM_RNG -#define TIOCM_OUT1 0x2000 -#define TIOCM_OUT2 0x4000 -#define TIOCM_LOOP 0x8000 - -#define TIOCGSOFTCAR 0x5419 -#define TIOCSSOFTCAR 0x541A -#define TIOCLINUX 0x541C -#define TIOCCONS 0x541D -#define TIOCGSERIAL 0x541E -#define TIOCSSERIAL 0x541F -#define TIOCPKT 0x5420 -# define TIOCPKT_DATA 0 -# define TIOCPKT_FLUSHREAD 1 -# define TIOCPKT_FLUSHWRITE 2 -# define TIOCPKT_STOP 4 -# define TIOCPKT_START 8 -# define TIOCPKT_NOSTOP 16 -# define TIOCPKT_DOSTOP 32 -# define TIOCPKT_IOCTL 64 - - -#define TIOCNOTTY 0x5422 -#define TIOCSETD 0x5423 -#define TIOCGETD 0x5424 -#define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */ -#define TIOCSBRK 0x5427 /* BSD compatibility */ -#define TIOCCBRK 0x5428 /* BSD compatibility */ -#define TIOCGSID 0x5429 /* Return the session ID of FD */ -#define TIOCGRS485 0x542e -#define TIOCSRS485 0x542f -#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ -#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ -#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get primary device node of /dev/console */ -#define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */ -#define TIOCVHANGUP 0x5437 -#define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */ -#define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */ -#define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */ -#define TIOCGPTPEER _IO('T', 0x41) /* Safely open the slave */ -#define TIOCGISO7816 _IOR('T', 0x42, struct serial_iso7816) -#define TIOCSISO7816 _IOWR('T', 0x43, struct serial_iso7816) - -#define TIOCSERCONFIG 0x5453 -#define TIOCSERGWILD 0x5454 -#define TIOCSERSWILD 0x5455 -#define TIOCGLCKTRMIOS 0x5456 -#define TIOCSLCKTRMIOS 0x5457 -#define TIOCSERGSTRUCT 0x5458 /* For debugging only */ -#define TIOCSERGETLSR 0x5459 /* Get line status register */ - /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ -# define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ -#define TIOCSERGETMULTI 0x545A /* Get multiport config */ -#define TIOCSERSETMULTI 0x545B /* Set multiport config */ - -#define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */ -#define TIOCGICOUNT 0x545D /* read serial port __inline__ interrupt counts */ - -#endif /* _ASM_POWERPC_IOCTLS_H */ diff --git a/contrib/libs/linux-headers/asm/ioctls_x86.h b/contrib/libs/linux-headers/asm/ioctls_x86.h deleted file mode 100644 index ec34c760665..00000000000 --- a/contrib/libs/linux-headers/asm/ioctls_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/ioctls.h> diff --git a/contrib/libs/linux-headers/asm/ipcbuf.h b/contrib/libs/linux-headers/asm/ipcbuf.h deleted file mode 100644 index d5abd91c359..00000000000 --- a/contrib/libs/linux-headers/asm/ipcbuf.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "ipcbuf_arm.h" -#elif defined(__aarch64__) -#include "ipcbuf_arm64.h" -#elif defined(__powerpc__) -#include "ipcbuf_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "ipcbuf_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/ipcbuf_arm.h b/contrib/libs/linux-headers/asm/ipcbuf_arm.h deleted file mode 100644 index 84c7e51cb6d..00000000000 --- a/contrib/libs/linux-headers/asm/ipcbuf_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/ipcbuf.h> diff --git a/contrib/libs/linux-headers/asm/ipcbuf_arm64.h b/contrib/libs/linux-headers/asm/ipcbuf_arm64.h deleted file mode 100644 index 84c7e51cb6d..00000000000 --- a/contrib/libs/linux-headers/asm/ipcbuf_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/ipcbuf.h> diff --git a/contrib/libs/linux-headers/asm/ipcbuf_powerpc.h b/contrib/libs/linux-headers/asm/ipcbuf_powerpc.h deleted file mode 100644 index 21e1e0ec0ba..00000000000 --- a/contrib/libs/linux-headers/asm/ipcbuf_powerpc.h +++ /dev/null @@ -1,35 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_IPCBUF_H -#define _ASM_POWERPC_IPCBUF_H - -/* - * The ipc64_perm structure for the powerpc is identical to - * kern_ipc_perm as we have always had 32-bit UIDs and GIDs in the - * kernel. Note extra padding because this structure is passed back - * and forth between kernel and user space. Pad space is left for: - * - 1 32-bit value to fill up for 8-byte alignment - * - 2 miscellaneous 64-bit values - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ - -#include <linux/types.h> - -struct ipc64_perm -{ - __kernel_key_t key; - __kernel_uid_t uid; - __kernel_gid_t gid; - __kernel_uid_t cuid; - __kernel_gid_t cgid; - __kernel_mode_t mode; - unsigned int seq; - unsigned int __pad1; - unsigned long long __unused1; - unsigned long long __unused2; -}; - -#endif /* _ASM_POWERPC_IPCBUF_H */ diff --git a/contrib/libs/linux-headers/asm/ipcbuf_x86.h b/contrib/libs/linux-headers/asm/ipcbuf_x86.h deleted file mode 100644 index 84c7e51cb6d..00000000000 --- a/contrib/libs/linux-headers/asm/ipcbuf_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/ipcbuf.h> diff --git a/contrib/libs/linux-headers/asm/ist.h b/contrib/libs/linux-headers/asm/ist.h deleted file mode 100644 index 5670418851f..00000000000 --- a/contrib/libs/linux-headers/asm/ist.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "ist_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/ist_x86.h b/contrib/libs/linux-headers/asm/ist_x86.h deleted file mode 100644 index 68c03db87df..00000000000 --- a/contrib/libs/linux-headers/asm/ist_x86.h +++ /dev/null @@ -1,30 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * Include file for the interface to IST BIOS - * Copyright 2002 Andy Grover <andrew.grover@intel.com> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2, or (at your option) any - * later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - */ -#ifndef _ASM_X86_IST_H -#define _ASM_X86_IST_H - - - -#include <linux/types.h> - -struct ist_info { - __u32 signature; - __u32 command; - __u32 event; - __u32 perf_level; -}; - -#endif /* _ASM_X86_IST_H */ diff --git a/contrib/libs/linux-headers/asm/kvm.h b/contrib/libs/linux-headers/asm/kvm.h deleted file mode 100644 index 4bdab1d7d49..00000000000 --- a/contrib/libs/linux-headers/asm/kvm.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#include "kvm_arm64.h" -#elif defined(__powerpc__) -#include "kvm_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "kvm_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/kvm_arm64.h b/contrib/libs/linux-headers/asm/kvm_arm64.h deleted file mode 100644 index 9e34f0f875a..00000000000 --- a/contrib/libs/linux-headers/asm/kvm_arm64.h +++ /dev/null @@ -1,383 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012,2013 - ARM Ltd - * Author: Marc Zyngier <marc.zyngier@arm.com> - * - * Derived from arch/arm/include/uapi/asm/kvm.h: - * Copyright (C) 2012 - Virtual Open Systems and Columbia University - * Author: Christoffer Dall <c.dall@virtualopensystems.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef __ARM_KVM_H__ -#define __ARM_KVM_H__ - -#define KVM_SPSR_EL1 0 -#define KVM_SPSR_SVC KVM_SPSR_EL1 -#define KVM_SPSR_ABT 1 -#define KVM_SPSR_UND 2 -#define KVM_SPSR_IRQ 3 -#define KVM_SPSR_FIQ 4 -#define KVM_NR_SPSR 5 - -#ifndef __ASSEMBLY__ -#include <linux/psci.h> -#include <linux/types.h> -#include <asm/ptrace.h> -#include <asm/sve_context.h> - -#define __KVM_HAVE_GUEST_DEBUG -#define __KVM_HAVE_IRQ_LINE -#define __KVM_HAVE_READONLY_MEM -#define __KVM_HAVE_VCPU_EVENTS - -#define KVM_COALESCED_MMIO_PAGE_OFFSET 1 - -#define KVM_REG_SIZE(id) \ - (1U << (((id) & KVM_REG_SIZE_MASK) >> KVM_REG_SIZE_SHIFT)) - -struct kvm_regs { - struct user_pt_regs regs; /* sp = sp_el0 */ - - __u64 sp_el1; - __u64 elr_el1; - - __u64 spsr[KVM_NR_SPSR]; - - struct user_fpsimd_state fp_regs; -}; - -/* - * Supported CPU Targets - Adding a new target type is not recommended, - * unless there are some special registers not supported by the - * genericv8 syreg table. - */ -#define KVM_ARM_TARGET_AEM_V8 0 -#define KVM_ARM_TARGET_FOUNDATION_V8 1 -#define KVM_ARM_TARGET_CORTEX_A57 2 -#define KVM_ARM_TARGET_XGENE_POTENZA 3 -#define KVM_ARM_TARGET_CORTEX_A53 4 -/* Generic ARM v8 target */ -#define KVM_ARM_TARGET_GENERIC_V8 5 - -#define KVM_ARM_NUM_TARGETS 6 - -/* KVM_ARM_SET_DEVICE_ADDR ioctl id encoding */ -#define KVM_ARM_DEVICE_TYPE_SHIFT 0 -#define KVM_ARM_DEVICE_TYPE_MASK (0xffff << KVM_ARM_DEVICE_TYPE_SHIFT) -#define KVM_ARM_DEVICE_ID_SHIFT 16 -#define KVM_ARM_DEVICE_ID_MASK (0xffff << KVM_ARM_DEVICE_ID_SHIFT) - -/* Supported device IDs */ -#define KVM_ARM_DEVICE_VGIC_V2 0 - -/* Supported VGIC address types */ -#define KVM_VGIC_V2_ADDR_TYPE_DIST 0 -#define KVM_VGIC_V2_ADDR_TYPE_CPU 1 - -#define KVM_VGIC_V2_DIST_SIZE 0x1000 -#define KVM_VGIC_V2_CPU_SIZE 0x2000 - -/* Supported VGICv3 address types */ -#define KVM_VGIC_V3_ADDR_TYPE_DIST 2 -#define KVM_VGIC_V3_ADDR_TYPE_REDIST 3 -#define KVM_VGIC_ITS_ADDR_TYPE 4 -#define KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION 5 - -#define KVM_VGIC_V3_DIST_SIZE SZ_64K -#define KVM_VGIC_V3_REDIST_SIZE (2 * SZ_64K) -#define KVM_VGIC_V3_ITS_SIZE (2 * SZ_64K) - -#define KVM_ARM_VCPU_POWER_OFF 0 /* CPU is started in OFF state */ -#define KVM_ARM_VCPU_EL1_32BIT 1 /* CPU running a 32bit VM */ -#define KVM_ARM_VCPU_PSCI_0_2 2 /* CPU uses PSCI v0.2 */ -#define KVM_ARM_VCPU_PMU_V3 3 /* Support guest PMUv3 */ -#define KVM_ARM_VCPU_SVE 4 /* enable SVE for this CPU */ -#define KVM_ARM_VCPU_PTRAUTH_ADDRESS 5 /* VCPU uses address authentication */ -#define KVM_ARM_VCPU_PTRAUTH_GENERIC 6 /* VCPU uses generic authentication */ - -struct kvm_vcpu_init { - __u32 target; - __u32 features[7]; -}; - -struct kvm_sregs { -}; - -struct kvm_fpu { -}; - -/* - * See v8 ARM ARM D7.3: Debug Registers - * - * The architectural limit is 16 debug registers of each type although - * in practice there are usually less (see ID_AA64DFR0_EL1). - * - * Although the control registers are architecturally defined as 32 - * bits wide we use a 64 bit structure here to keep parity with - * KVM_GET/SET_ONE_REG behaviour which treats all system registers as - * 64 bit values. It also allows for the possibility of the - * architecture expanding the control registers without having to - * change the userspace ABI. - */ -#define KVM_ARM_MAX_DBG_REGS 16 -struct kvm_guest_debug_arch { - __u64 dbg_bcr[KVM_ARM_MAX_DBG_REGS]; - __u64 dbg_bvr[KVM_ARM_MAX_DBG_REGS]; - __u64 dbg_wcr[KVM_ARM_MAX_DBG_REGS]; - __u64 dbg_wvr[KVM_ARM_MAX_DBG_REGS]; -}; - -struct kvm_debug_exit_arch { - __u32 hsr; - __u64 far; /* used for watchpoints */ -}; - -/* - * Architecture specific defines for kvm_guest_debug->control - */ - -#define KVM_GUESTDBG_USE_SW_BP (1 << 16) -#define KVM_GUESTDBG_USE_HW (1 << 17) - -struct kvm_sync_regs { - /* Used with KVM_CAP_ARM_USER_IRQ */ - __u64 device_irq_level; -}; - -struct kvm_arch_memory_slot { -}; - -/* for KVM_GET/SET_VCPU_EVENTS */ -struct kvm_vcpu_events { - struct { - __u8 serror_pending; - __u8 serror_has_esr; - __u8 ext_dabt_pending; - /* Align it to 8 bytes */ - __u8 pad[5]; - __u64 serror_esr; - } exception; - __u32 reserved[12]; -}; - -/* If you need to interpret the index values, here is the key: */ -#define KVM_REG_ARM_COPROC_MASK 0x000000000FFF0000 -#define KVM_REG_ARM_COPROC_SHIFT 16 - -/* Normal registers are mapped as coprocessor 16. */ -#define KVM_REG_ARM_CORE (0x0010 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_CORE_REG(name) (offsetof(struct kvm_regs, name) / sizeof(__u32)) - -/* Some registers need more space to represent values. */ -#define KVM_REG_ARM_DEMUX (0x0011 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_DEMUX_ID_MASK 0x000000000000FF00 -#define KVM_REG_ARM_DEMUX_ID_SHIFT 8 -#define KVM_REG_ARM_DEMUX_ID_CCSIDR (0x00 << KVM_REG_ARM_DEMUX_ID_SHIFT) -#define KVM_REG_ARM_DEMUX_VAL_MASK 0x00000000000000FF -#define KVM_REG_ARM_DEMUX_VAL_SHIFT 0 - -/* AArch64 system registers */ -#define KVM_REG_ARM64_SYSREG (0x0013 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM64_SYSREG_OP0_MASK 0x000000000000c000 -#define KVM_REG_ARM64_SYSREG_OP0_SHIFT 14 -#define KVM_REG_ARM64_SYSREG_OP1_MASK 0x0000000000003800 -#define KVM_REG_ARM64_SYSREG_OP1_SHIFT 11 -#define KVM_REG_ARM64_SYSREG_CRN_MASK 0x0000000000000780 -#define KVM_REG_ARM64_SYSREG_CRN_SHIFT 7 -#define KVM_REG_ARM64_SYSREG_CRM_MASK 0x0000000000000078 -#define KVM_REG_ARM64_SYSREG_CRM_SHIFT 3 -#define KVM_REG_ARM64_SYSREG_OP2_MASK 0x0000000000000007 -#define KVM_REG_ARM64_SYSREG_OP2_SHIFT 0 - -#define ARM64_SYS_REG_SHIFT_MASK(x,n) \ - (((x) << KVM_REG_ARM64_SYSREG_ ## n ## _SHIFT) & \ - KVM_REG_ARM64_SYSREG_ ## n ## _MASK) - -#define __ARM64_SYS_REG(op0,op1,crn,crm,op2) \ - (KVM_REG_ARM64 | KVM_REG_ARM64_SYSREG | \ - ARM64_SYS_REG_SHIFT_MASK(op0, OP0) | \ - ARM64_SYS_REG_SHIFT_MASK(op1, OP1) | \ - ARM64_SYS_REG_SHIFT_MASK(crn, CRN) | \ - ARM64_SYS_REG_SHIFT_MASK(crm, CRM) | \ - ARM64_SYS_REG_SHIFT_MASK(op2, OP2)) - -#define ARM64_SYS_REG(...) (__ARM64_SYS_REG(__VA_ARGS__) | KVM_REG_SIZE_U64) - -/* Physical Timer EL0 Registers */ -#define KVM_REG_ARM_PTIMER_CTL ARM64_SYS_REG(3, 3, 14, 2, 1) -#define KVM_REG_ARM_PTIMER_CVAL ARM64_SYS_REG(3, 3, 14, 2, 2) -#define KVM_REG_ARM_PTIMER_CNT ARM64_SYS_REG(3, 3, 14, 0, 1) - -/* - * EL0 Virtual Timer Registers - * - * WARNING: - * KVM_REG_ARM_TIMER_CVAL and KVM_REG_ARM_TIMER_CNT are not defined - * with the appropriate register encodings. Their values have been - * accidentally swapped. As this is set API, the definitions here - * must be used, rather than ones derived from the encodings. - */ -#define KVM_REG_ARM_TIMER_CTL ARM64_SYS_REG(3, 3, 14, 3, 1) -#define KVM_REG_ARM_TIMER_CVAL ARM64_SYS_REG(3, 3, 14, 0, 2) -#define KVM_REG_ARM_TIMER_CNT ARM64_SYS_REG(3, 3, 14, 3, 2) - -/* KVM-as-firmware specific pseudo-registers */ -#define KVM_REG_ARM_FW (0x0014 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_FW_REG(r) (KVM_REG_ARM64 | KVM_REG_SIZE_U64 | \ - KVM_REG_ARM_FW | ((r) & 0xffff)) -#define KVM_REG_ARM_PSCI_VERSION KVM_REG_ARM_FW_REG(0) -#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_1 KVM_REG_ARM_FW_REG(1) -#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_1_NOT_AVAIL 0 -#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_1_AVAIL 1 -#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_1_NOT_REQUIRED 2 -#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2 KVM_REG_ARM_FW_REG(2) -#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_NOT_AVAIL 0 -#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_UNKNOWN 1 -#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_AVAIL 2 -#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_NOT_REQUIRED 3 -#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_ENABLED (1U << 4) - -/* SVE registers */ -#define KVM_REG_ARM64_SVE (0x15 << KVM_REG_ARM_COPROC_SHIFT) - -/* Z- and P-regs occupy blocks at the following offsets within this range: */ -#define KVM_REG_ARM64_SVE_ZREG_BASE 0 -#define KVM_REG_ARM64_SVE_PREG_BASE 0x400 -#define KVM_REG_ARM64_SVE_FFR_BASE 0x600 - -#define KVM_ARM64_SVE_NUM_ZREGS __SVE_NUM_ZREGS -#define KVM_ARM64_SVE_NUM_PREGS __SVE_NUM_PREGS - -#define KVM_ARM64_SVE_MAX_SLICES 32 - -#define KVM_REG_ARM64_SVE_ZREG(n, i) \ - (KVM_REG_ARM64 | KVM_REG_ARM64_SVE | KVM_REG_ARM64_SVE_ZREG_BASE | \ - KVM_REG_SIZE_U2048 | \ - (((n) & (KVM_ARM64_SVE_NUM_ZREGS - 1)) << 5) | \ - ((i) & (KVM_ARM64_SVE_MAX_SLICES - 1))) - -#define KVM_REG_ARM64_SVE_PREG(n, i) \ - (KVM_REG_ARM64 | KVM_REG_ARM64_SVE | KVM_REG_ARM64_SVE_PREG_BASE | \ - KVM_REG_SIZE_U256 | \ - (((n) & (KVM_ARM64_SVE_NUM_PREGS - 1)) << 5) | \ - ((i) & (KVM_ARM64_SVE_MAX_SLICES - 1))) - -#define KVM_REG_ARM64_SVE_FFR(i) \ - (KVM_REG_ARM64 | KVM_REG_ARM64_SVE | KVM_REG_ARM64_SVE_FFR_BASE | \ - KVM_REG_SIZE_U256 | \ - ((i) & (KVM_ARM64_SVE_MAX_SLICES - 1))) - -/* - * Register values for KVM_REG_ARM64_SVE_ZREG(), KVM_REG_ARM64_SVE_PREG() and - * KVM_REG_ARM64_SVE_FFR() are represented in memory in an endianness- - * invariant layout which differs from the layout used for the FPSIMD - * V-registers on big-endian systems: see sigcontext.h for more explanation. - */ - -#define KVM_ARM64_SVE_VQ_MIN __SVE_VQ_MIN -#define KVM_ARM64_SVE_VQ_MAX __SVE_VQ_MAX - -/* Vector lengths pseudo-register: */ -#define KVM_REG_ARM64_SVE_VLS (KVM_REG_ARM64 | KVM_REG_ARM64_SVE | \ - KVM_REG_SIZE_U512 | 0xffff) -#define KVM_ARM64_SVE_VLS_WORDS \ - ((KVM_ARM64_SVE_VQ_MAX - KVM_ARM64_SVE_VQ_MIN) / 64 + 1) - -/* Device Control API: ARM VGIC */ -#define KVM_DEV_ARM_VGIC_GRP_ADDR 0 -#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1 -#define KVM_DEV_ARM_VGIC_GRP_CPU_REGS 2 -#define KVM_DEV_ARM_VGIC_CPUID_SHIFT 32 -#define KVM_DEV_ARM_VGIC_CPUID_MASK (0xffULL << KVM_DEV_ARM_VGIC_CPUID_SHIFT) -#define KVM_DEV_ARM_VGIC_V3_MPIDR_SHIFT 32 -#define KVM_DEV_ARM_VGIC_V3_MPIDR_MASK \ - (0xffffffffULL << KVM_DEV_ARM_VGIC_V3_MPIDR_SHIFT) -#define KVM_DEV_ARM_VGIC_OFFSET_SHIFT 0 -#define KVM_DEV_ARM_VGIC_OFFSET_MASK (0xffffffffULL << KVM_DEV_ARM_VGIC_OFFSET_SHIFT) -#define KVM_DEV_ARM_VGIC_SYSREG_INSTR_MASK (0xffff) -#define KVM_DEV_ARM_VGIC_GRP_NR_IRQS 3 -#define KVM_DEV_ARM_VGIC_GRP_CTRL 4 -#define KVM_DEV_ARM_VGIC_GRP_REDIST_REGS 5 -#define KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS 6 -#define KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO 7 -#define KVM_DEV_ARM_VGIC_GRP_ITS_REGS 8 -#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT 10 -#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_MASK \ - (0x3fffffULL << KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT) -#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INTID_MASK 0x3ff -#define VGIC_LEVEL_INFO_LINE_LEVEL 0 - -#define KVM_DEV_ARM_VGIC_CTRL_INIT 0 -#define KVM_DEV_ARM_ITS_SAVE_TABLES 1 -#define KVM_DEV_ARM_ITS_RESTORE_TABLES 2 -#define KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES 3 -#define KVM_DEV_ARM_ITS_CTRL_RESET 4 - -/* Device Control API on vcpu fd */ -#define KVM_ARM_VCPU_PMU_V3_CTRL 0 -#define KVM_ARM_VCPU_PMU_V3_IRQ 0 -#define KVM_ARM_VCPU_PMU_V3_INIT 1 -#define KVM_ARM_VCPU_TIMER_CTRL 1 -#define KVM_ARM_VCPU_TIMER_IRQ_VTIMER 0 -#define KVM_ARM_VCPU_TIMER_IRQ_PTIMER 1 -#define KVM_ARM_VCPU_PVTIME_CTRL 2 -#define KVM_ARM_VCPU_PVTIME_IPA 0 - -/* KVM_IRQ_LINE irq field index values */ -#define KVM_ARM_IRQ_VCPU2_SHIFT 28 -#define KVM_ARM_IRQ_VCPU2_MASK 0xf -#define KVM_ARM_IRQ_TYPE_SHIFT 24 -#define KVM_ARM_IRQ_TYPE_MASK 0xf -#define KVM_ARM_IRQ_VCPU_SHIFT 16 -#define KVM_ARM_IRQ_VCPU_MASK 0xff -#define KVM_ARM_IRQ_NUM_SHIFT 0 -#define KVM_ARM_IRQ_NUM_MASK 0xffff - -/* irq_type field */ -#define KVM_ARM_IRQ_TYPE_CPU 0 -#define KVM_ARM_IRQ_TYPE_SPI 1 -#define KVM_ARM_IRQ_TYPE_PPI 2 - -/* out-of-kernel GIC cpu interrupt injection irq_number field */ -#define KVM_ARM_IRQ_CPU_IRQ 0 -#define KVM_ARM_IRQ_CPU_FIQ 1 - -/* - * This used to hold the highest supported SPI, but it is now obsolete - * and only here to provide source code level compatibility with older - * userland. The highest SPI number can be set via KVM_DEV_ARM_VGIC_GRP_NR_IRQS. - */ -#define KVM_ARM_IRQ_GIC_MAX 127 - -/* One single KVM irqchip, ie. the VGIC */ -#define KVM_NR_IRQCHIPS 1 - -/* PSCI interface */ -#define KVM_PSCI_FN_BASE 0x95c1ba5e -#define KVM_PSCI_FN(n) (KVM_PSCI_FN_BASE + (n)) - -#define KVM_PSCI_FN_CPU_SUSPEND KVM_PSCI_FN(0) -#define KVM_PSCI_FN_CPU_OFF KVM_PSCI_FN(1) -#define KVM_PSCI_FN_CPU_ON KVM_PSCI_FN(2) -#define KVM_PSCI_FN_MIGRATE KVM_PSCI_FN(3) - -#define KVM_PSCI_RET_SUCCESS PSCI_RET_SUCCESS -#define KVM_PSCI_RET_NI PSCI_RET_NOT_SUPPORTED -#define KVM_PSCI_RET_INVAL PSCI_RET_INVALID_PARAMS -#define KVM_PSCI_RET_DENIED PSCI_RET_DENIED - -#endif - -#endif /* __ARM_KVM_H__ */ diff --git a/contrib/libs/linux-headers/asm/kvm_para.h b/contrib/libs/linux-headers/asm/kvm_para.h deleted file mode 100644 index 73d0bcdc6ee..00000000000 --- a/contrib/libs/linux-headers/asm/kvm_para.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "kvm_para_arm.h" -#elif defined(__aarch64__) -#include "kvm_para_arm64.h" -#elif defined(__powerpc__) -#include "kvm_para_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "kvm_para_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/kvm_para_arm.h b/contrib/libs/linux-headers/asm/kvm_para_arm.h deleted file mode 100644 index 14fab8f0b95..00000000000 --- a/contrib/libs/linux-headers/asm/kvm_para_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/kvm_para.h> diff --git a/contrib/libs/linux-headers/asm/kvm_para_arm64.h b/contrib/libs/linux-headers/asm/kvm_para_arm64.h deleted file mode 100644 index 14fab8f0b95..00000000000 --- a/contrib/libs/linux-headers/asm/kvm_para_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/kvm_para.h> diff --git a/contrib/libs/linux-headers/asm/kvm_para_powerpc.h b/contrib/libs/linux-headers/asm/kvm_para_powerpc.h deleted file mode 100644 index 4ee5c39ed33..00000000000 --- a/contrib/libs/linux-headers/asm/kvm_para_powerpc.h +++ /dev/null @@ -1,98 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * Copyright IBM Corp. 2008 - * - * Authors: Hollis Blanchard <hollisb@us.ibm.com> - */ - -#ifndef __POWERPC_KVM_PARA_H__ -#define __POWERPC_KVM_PARA_H__ - -#include <linux/types.h> - -/* - * Additions to this struct must only occur at the end, and should be - * accompanied by a KVM_MAGIC_FEAT flag to advertise that they are present - * (albeit not necessarily relevant to the current target hardware platform). - * - * Struct fields are always 32 or 64 bit aligned, depending on them being 32 - * or 64 bit wide respectively. - * - * See Documentation/virt/kvm/ppc-pv.txt - */ -struct kvm_vcpu_arch_shared { - __u64 scratch1; - __u64 scratch2; - __u64 scratch3; - __u64 critical; /* Guest may not get interrupts if == r1 */ - __u64 sprg0; - __u64 sprg1; - __u64 sprg2; - __u64 sprg3; - __u64 srr0; - __u64 srr1; - __u64 dar; /* dear on BookE */ - __u64 msr; - __u32 dsisr; - __u32 int_pending; /* Tells the guest if we have an interrupt */ - __u32 sr[16]; - __u32 mas0; - __u32 mas1; - __u64 mas7_3; - __u64 mas2; - __u32 mas4; - __u32 mas6; - __u32 esr; - __u32 pir; - - /* - * SPRG4-7 are user-readable, so we can only keep these consistent - * between the shared area and the real registers when there's an - * intervening exit to KVM. This also applies to SPRG3 on some - * chips. - * - * This suffices for access by guest userspace, since in PR-mode - * KVM, an exit must occur when changing the guest's MSR[PR]. - * If the guest kernel writes to SPRG3-7 via the shared area, it - * must also use the shared area for reading while in kernel space. - */ - __u64 sprg4; - __u64 sprg5; - __u64 sprg6; - __u64 sprg7; -}; - -#define KVM_SC_MAGIC_R0 0x4b564d21 /* "KVM!" */ - -#define KVM_HCALL_TOKEN(num) _EV_HCALL_TOKEN(EV_KVM_VENDOR_ID, num) - -#include <asm/epapr_hcalls.h> - -#define KVM_FEATURE_MAGIC_PAGE 1 - -/* Magic page flags from host to guest */ - -#define KVM_MAGIC_FEAT_SR (1 << 0) - -/* MASn, ESR, PIR, and high SPRGs */ -#define KVM_MAGIC_FEAT_MAS0_TO_SPRG7 (1 << 1) - -/* Magic page flags from guest to host */ - -#define MAGIC_PAGE_FLAG_NOT_MAPPED_NX (1 << 0) - - -#endif /* __POWERPC_KVM_PARA_H__ */ diff --git a/contrib/libs/linux-headers/asm/kvm_para_x86.h b/contrib/libs/linux-headers/asm/kvm_para_x86.h deleted file mode 100644 index a33ddc7e8da..00000000000 --- a/contrib/libs/linux-headers/asm/kvm_para_x86.h +++ /dev/null @@ -1,125 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_KVM_PARA_H -#define _ASM_X86_KVM_PARA_H - -#include <linux/types.h> - -/* This CPUID returns the signature 'KVMKVMKVM' in ebx, ecx, and edx. It - * should be used to determine that a VM is running under KVM. - */ -#define KVM_CPUID_SIGNATURE 0x40000000 - -/* This CPUID returns two feature bitmaps in eax, edx. Before enabling - * a particular paravirtualization, the appropriate feature bit should - * be checked in eax. The performance hint feature bit should be checked - * in edx. - */ -#define KVM_CPUID_FEATURES 0x40000001 -#define KVM_FEATURE_CLOCKSOURCE 0 -#define KVM_FEATURE_NOP_IO_DELAY 1 -#define KVM_FEATURE_MMU_OP 2 -/* This indicates that the new set of kvmclock msrs - * are available. The use of 0x11 and 0x12 is deprecated - */ -#define KVM_FEATURE_CLOCKSOURCE2 3 -#define KVM_FEATURE_ASYNC_PF 4 -#define KVM_FEATURE_STEAL_TIME 5 -#define KVM_FEATURE_PV_EOI 6 -#define KVM_FEATURE_PV_UNHALT 7 -#define KVM_FEATURE_PV_TLB_FLUSH 9 -#define KVM_FEATURE_ASYNC_PF_VMEXIT 10 -#define KVM_FEATURE_PV_SEND_IPI 11 -#define KVM_FEATURE_POLL_CONTROL 12 -#define KVM_FEATURE_PV_SCHED_YIELD 13 - -#define KVM_HINTS_REALTIME 0 - -/* The last 8 bits are used to indicate how to interpret the flags field - * in pvclock structure. If no bits are set, all flags are ignored. - */ -#define KVM_FEATURE_CLOCKSOURCE_STABLE_BIT 24 - -#define MSR_KVM_WALL_CLOCK 0x11 -#define MSR_KVM_SYSTEM_TIME 0x12 - -#define KVM_MSR_ENABLED 1 -/* Custom MSRs falls in the range 0x4b564d00-0x4b564dff */ -#define MSR_KVM_WALL_CLOCK_NEW 0x4b564d00 -#define MSR_KVM_SYSTEM_TIME_NEW 0x4b564d01 -#define MSR_KVM_ASYNC_PF_EN 0x4b564d02 -#define MSR_KVM_STEAL_TIME 0x4b564d03 -#define MSR_KVM_PV_EOI_EN 0x4b564d04 -#define MSR_KVM_POLL_CONTROL 0x4b564d05 - -struct kvm_steal_time { - __u64 steal; - __u32 version; - __u32 flags; - __u8 preempted; - __u8 u8_pad[3]; - __u32 pad[11]; -}; - -#define KVM_VCPU_PREEMPTED (1 << 0) -#define KVM_VCPU_FLUSH_TLB (1 << 1) - -#define KVM_CLOCK_PAIRING_WALLCLOCK 0 -struct kvm_clock_pairing { - __s64 sec; - __s64 nsec; - __u64 tsc; - __u32 flags; - __u32 pad[9]; -}; - -#define KVM_STEAL_ALIGNMENT_BITS 5 -#define KVM_STEAL_VALID_BITS ((-1ULL << (KVM_STEAL_ALIGNMENT_BITS + 1))) -#define KVM_STEAL_RESERVED_MASK (((1 << KVM_STEAL_ALIGNMENT_BITS) - 1 ) << 1) - -#define KVM_MAX_MMU_OP_BATCH 32 - -#define KVM_ASYNC_PF_ENABLED (1 << 0) -#define KVM_ASYNC_PF_SEND_ALWAYS (1 << 1) -#define KVM_ASYNC_PF_DELIVERY_AS_PF_VMEXIT (1 << 2) - -/* Operations for KVM_HC_MMU_OP */ -#define KVM_MMU_OP_WRITE_PTE 1 -#define KVM_MMU_OP_FLUSH_TLB 2 -#define KVM_MMU_OP_RELEASE_PT 3 - -/* Payload for KVM_HC_MMU_OP */ -struct kvm_mmu_op_header { - __u32 op; - __u32 pad; -}; - -struct kvm_mmu_op_write_pte { - struct kvm_mmu_op_header header; - __u64 pte_phys; - __u64 pte_val; -}; - -struct kvm_mmu_op_flush_tlb { - struct kvm_mmu_op_header header; -}; - -struct kvm_mmu_op_release_pt { - struct kvm_mmu_op_header header; - __u64 pt_phys; -}; - -#define KVM_PV_REASON_PAGE_NOT_PRESENT 1 -#define KVM_PV_REASON_PAGE_READY 2 - -struct kvm_vcpu_pv_apf_data { - __u32 reason; - __u8 pad[60]; - __u32 enabled; -}; - -#define KVM_PV_EOI_BIT 0 -#define KVM_PV_EOI_MASK (0x1 << KVM_PV_EOI_BIT) -#define KVM_PV_EOI_ENABLED KVM_PV_EOI_MASK -#define KVM_PV_EOI_DISABLED 0x0 - -#endif /* _ASM_X86_KVM_PARA_H */ diff --git a/contrib/libs/linux-headers/asm/kvm_perf.h b/contrib/libs/linux-headers/asm/kvm_perf.h deleted file mode 100644 index 1d4f5354569..00000000000 --- a/contrib/libs/linux-headers/asm/kvm_perf.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "kvm_perf_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/kvm_perf_x86.h b/contrib/libs/linux-headers/asm/kvm_perf_x86.h deleted file mode 100644 index 125cf5cdf6c..00000000000 --- a/contrib/libs/linux-headers/asm/kvm_perf_x86.h +++ /dev/null @@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_KVM_PERF_H -#define _ASM_X86_KVM_PERF_H - -#include <asm/svm.h> -#include <asm/vmx.h> -#include <asm/kvm.h> - -#define DECODE_STR_LEN 20 - -#define VCPU_ID "vcpu_id" - -#define KVM_ENTRY_TRACE "kvm:kvm_entry" -#define KVM_EXIT_TRACE "kvm:kvm_exit" -#define KVM_EXIT_REASON "exit_reason" - -#endif /* _ASM_X86_KVM_PERF_H */ diff --git a/contrib/libs/linux-headers/asm/kvm_powerpc.h b/contrib/libs/linux-headers/asm/kvm_powerpc.h deleted file mode 100644 index 264e266a85b..00000000000 --- a/contrib/libs/linux-headers/asm/kvm_powerpc.h +++ /dev/null @@ -1,729 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * Copyright IBM Corp. 2007 - * - * Authors: Hollis Blanchard <hollisb@us.ibm.com> - */ - -#ifndef __LINUX_KVM_POWERPC_H -#define __LINUX_KVM_POWERPC_H - -#include <linux/types.h> - -/* Select powerpc specific features in <linux/kvm.h> */ -#define __KVM_HAVE_SPAPR_TCE -#define __KVM_HAVE_PPC_SMT -#define __KVM_HAVE_IRQCHIP -#define __KVM_HAVE_IRQ_LINE -#define __KVM_HAVE_GUEST_DEBUG - -/* Not always available, but if it is, this is the correct offset. */ -#define KVM_COALESCED_MMIO_PAGE_OFFSET 1 - -struct kvm_regs { - __u64 pc; - __u64 cr; - __u64 ctr; - __u64 lr; - __u64 xer; - __u64 msr; - __u64 srr0; - __u64 srr1; - __u64 pid; - - __u64 sprg0; - __u64 sprg1; - __u64 sprg2; - __u64 sprg3; - __u64 sprg4; - __u64 sprg5; - __u64 sprg6; - __u64 sprg7; - - __u64 gpr[32]; -}; - -#define KVM_SREGS_E_IMPL_NONE 0 -#define KVM_SREGS_E_IMPL_FSL 1 - -#define KVM_SREGS_E_FSL_PIDn (1 << 0) /* PID1/PID2 */ - -/* flags for kvm_run.flags */ -#define KVM_RUN_PPC_NMI_DISP_MASK (3 << 0) -#define KVM_RUN_PPC_NMI_DISP_FULLY_RECOV (1 << 0) -#define KVM_RUN_PPC_NMI_DISP_LIMITED_RECOV (2 << 0) -#define KVM_RUN_PPC_NMI_DISP_NOT_RECOV (3 << 0) - -/* - * Feature bits indicate which sections of the sregs struct are valid, - * both in KVM_GET_SREGS and KVM_SET_SREGS. On KVM_SET_SREGS, registers - * corresponding to unset feature bits will not be modified. This allows - * restoring a checkpoint made without that feature, while keeping the - * default values of the new registers. - * - * KVM_SREGS_E_BASE contains: - * CSRR0/1 (refers to SRR2/3 on 40x) - * ESR - * DEAR - * MCSR - * TSR - * TCR - * DEC - * TB - * VRSAVE (USPRG0) - */ -#define KVM_SREGS_E_BASE (1 << 0) - -/* - * KVM_SREGS_E_ARCH206 contains: - * - * PIR - * MCSRR0/1 - * DECAR - * IVPR - */ -#define KVM_SREGS_E_ARCH206 (1 << 1) - -/* - * Contains EPCR, plus the upper half of 64-bit registers - * that are 32-bit on 32-bit implementations. - */ -#define KVM_SREGS_E_64 (1 << 2) - -#define KVM_SREGS_E_SPRG8 (1 << 3) -#define KVM_SREGS_E_MCIVPR (1 << 4) - -/* - * IVORs are used -- contains IVOR0-15, plus additional IVORs - * in combination with an appropriate feature bit. - */ -#define KVM_SREGS_E_IVOR (1 << 5) - -/* - * Contains MAS0-4, MAS6-7, TLBnCFG, MMUCFG. - * Also TLBnPS if MMUCFG[MAVN] = 1. - */ -#define KVM_SREGS_E_ARCH206_MMU (1 << 6) - -/* DBSR, DBCR, IAC, DAC, DVC */ -#define KVM_SREGS_E_DEBUG (1 << 7) - -/* Enhanced debug -- DSRR0/1, SPRG9 */ -#define KVM_SREGS_E_ED (1 << 8) - -/* Embedded Floating Point (SPE) -- IVOR32-34 if KVM_SREGS_E_IVOR */ -#define KVM_SREGS_E_SPE (1 << 9) - -/* - * DEPRECATED! USE ONE_REG FOR THIS ONE! - * External Proxy (EXP) -- EPR - */ -#define KVM_SREGS_EXP (1 << 10) - -/* External PID (E.PD) -- EPSC/EPLC */ -#define KVM_SREGS_E_PD (1 << 11) - -/* Processor Control (E.PC) -- IVOR36-37 if KVM_SREGS_E_IVOR */ -#define KVM_SREGS_E_PC (1 << 12) - -/* Page table (E.PT) -- EPTCFG */ -#define KVM_SREGS_E_PT (1 << 13) - -/* Embedded Performance Monitor (E.PM) -- IVOR35 if KVM_SREGS_E_IVOR */ -#define KVM_SREGS_E_PM (1 << 14) - -/* - * Special updates: - * - * Some registers may change even while a vcpu is not running. - * To avoid losing these changes, by default these registers are - * not updated by KVM_SET_SREGS. To force an update, set the bit - * in u.e.update_special corresponding to the register to be updated. - * - * The update_special field is zero on return from KVM_GET_SREGS. - * - * When restoring a checkpoint, the caller can set update_special - * to 0xffffffff to ensure that everything is restored, even new features - * that the caller doesn't know about. - */ -#define KVM_SREGS_E_UPDATE_MCSR (1 << 0) -#define KVM_SREGS_E_UPDATE_TSR (1 << 1) -#define KVM_SREGS_E_UPDATE_DEC (1 << 2) -#define KVM_SREGS_E_UPDATE_DBSR (1 << 3) - -/* - * In KVM_SET_SREGS, reserved/pad fields must be left untouched from a - * previous KVM_GET_REGS. - * - * Unless otherwise indicated, setting any register with KVM_SET_SREGS - * directly sets its value. It does not trigger any special semantics such - * as write-one-to-clear. Calling KVM_SET_SREGS on an unmodified struct - * just received from KVM_GET_SREGS is always a no-op. - */ -struct kvm_sregs { - __u32 pvr; - union { - struct { - __u64 sdr1; - struct { - struct { - __u64 slbe; - __u64 slbv; - } slb[64]; - } ppc64; - struct { - __u32 sr[16]; - __u64 ibat[8]; - __u64 dbat[8]; - } ppc32; - } s; - struct { - union { - struct { /* KVM_SREGS_E_IMPL_FSL */ - __u32 features; /* KVM_SREGS_E_FSL_ */ - __u32 svr; - __u64 mcar; - __u32 hid0; - - /* KVM_SREGS_E_FSL_PIDn */ - __u32 pid1, pid2; - } fsl; - __u8 pad[256]; - } impl; - - __u32 features; /* KVM_SREGS_E_ */ - __u32 impl_id; /* KVM_SREGS_E_IMPL_ */ - __u32 update_special; /* KVM_SREGS_E_UPDATE_ */ - __u32 pir; /* read-only */ - __u64 sprg8; - __u64 sprg9; /* E.ED */ - __u64 csrr0; - __u64 dsrr0; /* E.ED */ - __u64 mcsrr0; - __u32 csrr1; - __u32 dsrr1; /* E.ED */ - __u32 mcsrr1; - __u32 esr; - __u64 dear; - __u64 ivpr; - __u64 mcivpr; - __u64 mcsr; /* KVM_SREGS_E_UPDATE_MCSR */ - - __u32 tsr; /* KVM_SREGS_E_UPDATE_TSR */ - __u32 tcr; - __u32 decar; - __u32 dec; /* KVM_SREGS_E_UPDATE_DEC */ - - /* - * Userspace can read TB directly, but the - * value reported here is consistent with "dec". - * - * Read-only. - */ - __u64 tb; - - __u32 dbsr; /* KVM_SREGS_E_UPDATE_DBSR */ - __u32 dbcr[3]; - /* - * iac/dac registers are 64bit wide, while this API - * interface provides only lower 32 bits on 64 bit - * processors. ONE_REG interface is added for 64bit - * iac/dac registers. - */ - __u32 iac[4]; - __u32 dac[2]; - __u32 dvc[2]; - __u8 num_iac; /* read-only */ - __u8 num_dac; /* read-only */ - __u8 num_dvc; /* read-only */ - __u8 pad; - - __u32 epr; /* EXP */ - __u32 vrsave; /* a.k.a. USPRG0 */ - __u32 epcr; /* KVM_SREGS_E_64 */ - - __u32 mas0; - __u32 mas1; - __u64 mas2; - __u64 mas7_3; - __u32 mas4; - __u32 mas6; - - __u32 ivor_low[16]; /* IVOR0-15 */ - __u32 ivor_high[18]; /* IVOR32+, plus room to expand */ - - __u32 mmucfg; /* read-only */ - __u32 eptcfg; /* E.PT, read-only */ - __u32 tlbcfg[4];/* read-only */ - __u32 tlbps[4]; /* read-only */ - - __u32 eplc, epsc; /* E.PD */ - } e; - __u8 pad[1020]; - } u; -}; - -struct kvm_fpu { - __u64 fpr[32]; -}; - -/* - * Defines for h/w breakpoint, watchpoint (read, write or both) and - * software breakpoint. - * These are used as "type" in KVM_SET_GUEST_DEBUG ioctl and "status" - * for KVM_DEBUG_EXIT. - */ -#define KVMPPC_DEBUG_NONE 0x0 -#define KVMPPC_DEBUG_BREAKPOINT (1UL << 1) -#define KVMPPC_DEBUG_WATCH_WRITE (1UL << 2) -#define KVMPPC_DEBUG_WATCH_READ (1UL << 3) -struct kvm_debug_exit_arch { - __u64 address; - /* - * exiting to userspace because of h/w breakpoint, watchpoint - * (read, write or both) and software breakpoint. - */ - __u32 status; - __u32 reserved; -}; - -/* for KVM_SET_GUEST_DEBUG */ -struct kvm_guest_debug_arch { - struct { - /* H/W breakpoint/watchpoint address */ - __u64 addr; - /* - * Type denotes h/w breakpoint, read watchpoint, write - * watchpoint or watchpoint (both read and write). - */ - __u32 type; - __u32 reserved; - } bp[16]; -}; - -/* Debug related defines */ -/* - * kvm_guest_debug->control is a 32 bit field. The lower 16 bits are generic - * and upper 16 bits are architecture specific. Architecture specific defines - * that ioctl is for setting hardware breakpoint or software breakpoint. - */ -#define KVM_GUESTDBG_USE_SW_BP 0x00010000 -#define KVM_GUESTDBG_USE_HW_BP 0x00020000 - -/* definition of registers in kvm_run */ -struct kvm_sync_regs { -}; - -#define KVM_INTERRUPT_SET -1U -#define KVM_INTERRUPT_UNSET -2U -#define KVM_INTERRUPT_SET_LEVEL -3U - -#define KVM_CPU_440 1 -#define KVM_CPU_E500V2 2 -#define KVM_CPU_3S_32 3 -#define KVM_CPU_3S_64 4 -#define KVM_CPU_E500MC 5 - -/* for KVM_CAP_SPAPR_TCE */ -struct kvm_create_spapr_tce { - __u64 liobn; - __u32 window_size; -}; - -/* for KVM_CAP_SPAPR_TCE_64 */ -struct kvm_create_spapr_tce_64 { - __u64 liobn; - __u32 page_shift; - __u32 flags; - __u64 offset; /* in pages */ - __u64 size; /* in pages */ -}; - -/* for KVM_ALLOCATE_RMA */ -struct kvm_allocate_rma { - __u64 rma_size; -}; - -/* for KVM_CAP_PPC_RTAS */ -struct kvm_rtas_token_args { - char name[120]; - __u64 token; /* Use a token of 0 to undefine a mapping */ -}; - -struct kvm_book3e_206_tlb_entry { - __u32 mas8; - __u32 mas1; - __u64 mas2; - __u64 mas7_3; -}; - -struct kvm_book3e_206_tlb_params { - /* - * For mmu types KVM_MMU_FSL_BOOKE_NOHV and KVM_MMU_FSL_BOOKE_HV: - * - * - The number of ways of TLB0 must be a power of two between 2 and - * 16. - * - TLB1 must be fully associative. - * - The size of TLB0 must be a multiple of the number of ways, and - * the number of sets must be a power of two. - * - The size of TLB1 may not exceed 64 entries. - * - TLB0 supports 4 KiB pages. - * - The page sizes supported by TLB1 are as indicated by - * TLB1CFG (if MMUCFG[MAVN] = 0) or TLB1PS (if MMUCFG[MAVN] = 1) - * as returned by KVM_GET_SREGS. - * - TLB2 and TLB3 are reserved, and their entries in tlb_sizes[] - * and tlb_ways[] must be zero. - * - * tlb_ways[n] = tlb_sizes[n] means the array is fully associative. - * - * KVM will adjust TLBnCFG based on the sizes configured here, - * though arrays greater than 2048 entries will have TLBnCFG[NENTRY] - * set to zero. - */ - __u32 tlb_sizes[4]; - __u32 tlb_ways[4]; - __u32 reserved[8]; -}; - -/* For KVM_PPC_GET_HTAB_FD */ -struct kvm_get_htab_fd { - __u64 flags; - __u64 start_index; - __u64 reserved[2]; -}; - -/* Values for kvm_get_htab_fd.flags */ -#define KVM_GET_HTAB_BOLTED_ONLY ((__u64)0x1) -#define KVM_GET_HTAB_WRITE ((__u64)0x2) - -/* - * Data read on the file descriptor is formatted as a series of - * records, each consisting of a header followed by a series of - * `n_valid' HPTEs (16 bytes each), which are all valid. Following - * those valid HPTEs there are `n_invalid' invalid HPTEs, which - * are not represented explicitly in the stream. The same format - * is used for writing. - */ -struct kvm_get_htab_header { - __u32 index; - __u16 n_valid; - __u16 n_invalid; -}; - -/* For KVM_PPC_CONFIGURE_V3_MMU */ -struct kvm_ppc_mmuv3_cfg { - __u64 flags; - __u64 process_table; /* second doubleword of partition table entry */ -}; - -/* Flag values for KVM_PPC_CONFIGURE_V3_MMU */ -#define KVM_PPC_MMUV3_RADIX 1 /* 1 = radix mode, 0 = HPT */ -#define KVM_PPC_MMUV3_GTSE 2 /* global translation shootdown enb. */ - -/* For KVM_PPC_GET_RMMU_INFO */ -struct kvm_ppc_rmmu_info { - struct kvm_ppc_radix_geom { - __u8 page_shift; - __u8 level_bits[4]; - __u8 pad[3]; - } geometries[8]; - __u32 ap_encodings[8]; -}; - -/* For KVM_PPC_GET_CPU_CHAR */ -struct kvm_ppc_cpu_char { - __u64 character; /* characteristics of the CPU */ - __u64 behaviour; /* recommended software behaviour */ - __u64 character_mask; /* valid bits in character */ - __u64 behaviour_mask; /* valid bits in behaviour */ -}; - -/* - * Values for character and character_mask. - * These are identical to the values used by H_GET_CPU_CHARACTERISTICS. - */ -#define KVM_PPC_CPU_CHAR_SPEC_BAR_ORI31 (1ULL << 63) -#define KVM_PPC_CPU_CHAR_BCCTRL_SERIALISED (1ULL << 62) -#define KVM_PPC_CPU_CHAR_L1D_FLUSH_ORI30 (1ULL << 61) -#define KVM_PPC_CPU_CHAR_L1D_FLUSH_TRIG2 (1ULL << 60) -#define KVM_PPC_CPU_CHAR_L1D_THREAD_PRIV (1ULL << 59) -#define KVM_PPC_CPU_CHAR_BR_HINT_HONOURED (1ULL << 58) -#define KVM_PPC_CPU_CHAR_MTTRIG_THR_RECONF (1ULL << 57) -#define KVM_PPC_CPU_CHAR_COUNT_CACHE_DIS (1ULL << 56) -#define KVM_PPC_CPU_CHAR_BCCTR_FLUSH_ASSIST (1ull << 54) - -#define KVM_PPC_CPU_BEHAV_FAVOUR_SECURITY (1ULL << 63) -#define KVM_PPC_CPU_BEHAV_L1D_FLUSH_PR (1ULL << 62) -#define KVM_PPC_CPU_BEHAV_BNDS_CHK_SPEC_BAR (1ULL << 61) -#define KVM_PPC_CPU_BEHAV_FLUSH_COUNT_CACHE (1ull << 58) - -/* Per-vcpu XICS interrupt controller state */ -#define KVM_REG_PPC_ICP_STATE (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x8c) - -#define KVM_REG_PPC_ICP_CPPR_SHIFT 56 /* current proc priority */ -#define KVM_REG_PPC_ICP_CPPR_MASK 0xff -#define KVM_REG_PPC_ICP_XISR_SHIFT 32 /* interrupt status field */ -#define KVM_REG_PPC_ICP_XISR_MASK 0xffffff -#define KVM_REG_PPC_ICP_MFRR_SHIFT 24 /* pending IPI priority */ -#define KVM_REG_PPC_ICP_MFRR_MASK 0xff -#define KVM_REG_PPC_ICP_PPRI_SHIFT 16 /* pending irq priority */ -#define KVM_REG_PPC_ICP_PPRI_MASK 0xff - -#define KVM_REG_PPC_VP_STATE (KVM_REG_PPC | KVM_REG_SIZE_U128 | 0x8d) - -/* Device control API: PPC-specific devices */ -#define KVM_DEV_MPIC_GRP_MISC 1 -#define KVM_DEV_MPIC_BASE_ADDR 0 /* 64-bit */ - -#define KVM_DEV_MPIC_GRP_REGISTER 2 /* 32-bit */ -#define KVM_DEV_MPIC_GRP_IRQ_ACTIVE 3 /* 32-bit */ - -/* One-Reg API: PPC-specific registers */ -#define KVM_REG_PPC_HIOR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x1) -#define KVM_REG_PPC_IAC1 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x2) -#define KVM_REG_PPC_IAC2 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x3) -#define KVM_REG_PPC_IAC3 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x4) -#define KVM_REG_PPC_IAC4 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x5) -#define KVM_REG_PPC_DAC1 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x6) -#define KVM_REG_PPC_DAC2 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x7) -#define KVM_REG_PPC_DABR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x8) -#define KVM_REG_PPC_DSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x9) -#define KVM_REG_PPC_PURR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xa) -#define KVM_REG_PPC_SPURR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xb) -#define KVM_REG_PPC_DAR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xc) -#define KVM_REG_PPC_DSISR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xd) -#define KVM_REG_PPC_AMR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xe) -#define KVM_REG_PPC_UAMOR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xf) - -#define KVM_REG_PPC_MMCR0 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x10) -#define KVM_REG_PPC_MMCR1 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x11) -#define KVM_REG_PPC_MMCRA (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x12) -#define KVM_REG_PPC_MMCR2 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x13) -#define KVM_REG_PPC_MMCRS (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x14) -#define KVM_REG_PPC_SIAR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x15) -#define KVM_REG_PPC_SDAR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x16) -#define KVM_REG_PPC_SIER (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x17) - -#define KVM_REG_PPC_PMC1 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x18) -#define KVM_REG_PPC_PMC2 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x19) -#define KVM_REG_PPC_PMC3 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x1a) -#define KVM_REG_PPC_PMC4 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x1b) -#define KVM_REG_PPC_PMC5 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x1c) -#define KVM_REG_PPC_PMC6 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x1d) -#define KVM_REG_PPC_PMC7 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x1e) -#define KVM_REG_PPC_PMC8 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x1f) - -/* 32 floating-point registers */ -#define KVM_REG_PPC_FPR0 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x20) -#define KVM_REG_PPC_FPR(n) (KVM_REG_PPC_FPR0 + (n)) -#define KVM_REG_PPC_FPR31 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x3f) - -/* 32 VMX/Altivec vector registers */ -#define KVM_REG_PPC_VR0 (KVM_REG_PPC | KVM_REG_SIZE_U128 | 0x40) -#define KVM_REG_PPC_VR(n) (KVM_REG_PPC_VR0 + (n)) -#define KVM_REG_PPC_VR31 (KVM_REG_PPC | KVM_REG_SIZE_U128 | 0x5f) - -/* 32 double-width FP registers for VSX */ -/* High-order halves overlap with FP regs */ -#define KVM_REG_PPC_VSR0 (KVM_REG_PPC | KVM_REG_SIZE_U128 | 0x60) -#define KVM_REG_PPC_VSR(n) (KVM_REG_PPC_VSR0 + (n)) -#define KVM_REG_PPC_VSR31 (KVM_REG_PPC | KVM_REG_SIZE_U128 | 0x7f) - -/* FP and vector status/control registers */ -#define KVM_REG_PPC_FPSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x80) -/* - * VSCR register is documented as a 32-bit register in the ISA, but it can - * only be accesses via a vector register. Expose VSCR as a 32-bit register - * even though the kernel represents it as a 128-bit vector. - */ -#define KVM_REG_PPC_VSCR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x81) - -/* Virtual processor areas */ -/* For SLB & DTL, address in high (first) half, length in low half */ -#define KVM_REG_PPC_VPA_ADDR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x82) -#define KVM_REG_PPC_VPA_SLB (KVM_REG_PPC | KVM_REG_SIZE_U128 | 0x83) -#define KVM_REG_PPC_VPA_DTL (KVM_REG_PPC | KVM_REG_SIZE_U128 | 0x84) - -#define KVM_REG_PPC_EPCR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x85) -#define KVM_REG_PPC_EPR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x86) - -/* Timer Status Register OR/CLEAR interface */ -#define KVM_REG_PPC_OR_TSR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x87) -#define KVM_REG_PPC_CLEAR_TSR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x88) -#define KVM_REG_PPC_TCR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x89) -#define KVM_REG_PPC_TSR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x8a) - -/* Debugging: Special instruction for software breakpoint */ -#define KVM_REG_PPC_DEBUG_INST (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x8b) - -/* MMU registers */ -#define KVM_REG_PPC_MAS0 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x8c) -#define KVM_REG_PPC_MAS1 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x8d) -#define KVM_REG_PPC_MAS2 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x8e) -#define KVM_REG_PPC_MAS7_3 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x8f) -#define KVM_REG_PPC_MAS4 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x90) -#define KVM_REG_PPC_MAS6 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x91) -#define KVM_REG_PPC_MMUCFG (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x92) -/* - * TLBnCFG fields TLBnCFG_N_ENTRY and TLBnCFG_ASSOC can be changed only using - * KVM_CAP_SW_TLB ioctl - */ -#define KVM_REG_PPC_TLB0CFG (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x93) -#define KVM_REG_PPC_TLB1CFG (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x94) -#define KVM_REG_PPC_TLB2CFG (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x95) -#define KVM_REG_PPC_TLB3CFG (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x96) -#define KVM_REG_PPC_TLB0PS (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x97) -#define KVM_REG_PPC_TLB1PS (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x98) -#define KVM_REG_PPC_TLB2PS (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x99) -#define KVM_REG_PPC_TLB3PS (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x9a) -#define KVM_REG_PPC_EPTCFG (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x9b) - -/* Timebase offset */ -#define KVM_REG_PPC_TB_OFFSET (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x9c) - -/* POWER8 registers */ -#define KVM_REG_PPC_SPMC1 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x9d) -#define KVM_REG_PPC_SPMC2 (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x9e) -#define KVM_REG_PPC_IAMR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x9f) -#define KVM_REG_PPC_TFHAR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xa0) -#define KVM_REG_PPC_TFIAR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xa1) -#define KVM_REG_PPC_TEXASR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xa2) -#define KVM_REG_PPC_FSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xa3) -#define KVM_REG_PPC_PSPB (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xa4) -#define KVM_REG_PPC_EBBHR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xa5) -#define KVM_REG_PPC_EBBRR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xa6) -#define KVM_REG_PPC_BESCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xa7) -#define KVM_REG_PPC_TAR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xa8) -#define KVM_REG_PPC_DPDES (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xa9) -#define KVM_REG_PPC_DAWR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xaa) -#define KVM_REG_PPC_DAWRX (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xab) -#define KVM_REG_PPC_CIABR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xac) -#define KVM_REG_PPC_IC (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xad) -#define KVM_REG_PPC_VTB (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xae) -#define KVM_REG_PPC_CSIGR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xaf) -#define KVM_REG_PPC_TACR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xb0) -#define KVM_REG_PPC_TCSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xb1) -#define KVM_REG_PPC_PID (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xb2) -#define KVM_REG_PPC_ACOP (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xb3) - -#define KVM_REG_PPC_VRSAVE (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xb4) -#define KVM_REG_PPC_LPCR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xb5) -#define KVM_REG_PPC_LPCR_64 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xb5) -#define KVM_REG_PPC_PPR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xb6) - -/* Architecture compatibility level */ -#define KVM_REG_PPC_ARCH_COMPAT (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xb7) - -#define KVM_REG_PPC_DABRX (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xb8) -#define KVM_REG_PPC_WORT (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xb9) -#define KVM_REG_PPC_SPRG9 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xba) -#define KVM_REG_PPC_DBSR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xbb) - -/* POWER9 registers */ -#define KVM_REG_PPC_TIDR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbc) -#define KVM_REG_PPC_PSSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbd) - -#define KVM_REG_PPC_DEC_EXPIRY (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbe) -#define KVM_REG_PPC_ONLINE (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xbf) -#define KVM_REG_PPC_PTCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xc0) - -/* Transactional Memory checkpointed state: - * This is all GPRs, all VSX regs and a subset of SPRs - */ -#define KVM_REG_PPC_TM (KVM_REG_PPC | 0x80000000) -/* TM GPRs */ -#define KVM_REG_PPC_TM_GPR0 (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0) -#define KVM_REG_PPC_TM_GPR(n) (KVM_REG_PPC_TM_GPR0 + (n)) -#define KVM_REG_PPC_TM_GPR31 (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x1f) -/* TM VSX */ -#define KVM_REG_PPC_TM_VSR0 (KVM_REG_PPC_TM | KVM_REG_SIZE_U128 | 0x20) -#define KVM_REG_PPC_TM_VSR(n) (KVM_REG_PPC_TM_VSR0 + (n)) -#define KVM_REG_PPC_TM_VSR63 (KVM_REG_PPC_TM | KVM_REG_SIZE_U128 | 0x5f) -/* TM SPRS */ -#define KVM_REG_PPC_TM_CR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x60) -#define KVM_REG_PPC_TM_LR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x61) -#define KVM_REG_PPC_TM_CTR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x62) -#define KVM_REG_PPC_TM_FPSCR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x63) -#define KVM_REG_PPC_TM_AMR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x64) -#define KVM_REG_PPC_TM_PPR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x65) -#define KVM_REG_PPC_TM_VRSAVE (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x66) -#define KVM_REG_PPC_TM_VSCR (KVM_REG_PPC_TM | KVM_REG_SIZE_U32 | 0x67) -#define KVM_REG_PPC_TM_DSCR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x68) -#define KVM_REG_PPC_TM_TAR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x69) -#define KVM_REG_PPC_TM_XER (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x6a) - -/* PPC64 eXternal Interrupt Controller Specification */ -#define KVM_DEV_XICS_GRP_SOURCES 1 /* 64-bit source attributes */ -#define KVM_DEV_XICS_GRP_CTRL 2 -#define KVM_DEV_XICS_NR_SERVERS 1 - -/* Layout of 64-bit source attribute values */ -#define KVM_XICS_DESTINATION_SHIFT 0 -#define KVM_XICS_DESTINATION_MASK 0xffffffffULL -#define KVM_XICS_PRIORITY_SHIFT 32 -#define KVM_XICS_PRIORITY_MASK 0xff -#define KVM_XICS_LEVEL_SENSITIVE (1ULL << 40) -#define KVM_XICS_MASKED (1ULL << 41) -#define KVM_XICS_PENDING (1ULL << 42) -#define KVM_XICS_PRESENTED (1ULL << 43) -#define KVM_XICS_QUEUED (1ULL << 44) - -/* POWER9 XIVE Native Interrupt Controller */ -#define KVM_DEV_XIVE_GRP_CTRL 1 -#define KVM_DEV_XIVE_RESET 1 -#define KVM_DEV_XIVE_EQ_SYNC 2 -#define KVM_DEV_XIVE_NR_SERVERS 3 -#define KVM_DEV_XIVE_GRP_SOURCE 2 /* 64-bit source identifier */ -#define KVM_DEV_XIVE_GRP_SOURCE_CONFIG 3 /* 64-bit source identifier */ -#define KVM_DEV_XIVE_GRP_EQ_CONFIG 4 /* 64-bit EQ identifier */ -#define KVM_DEV_XIVE_GRP_SOURCE_SYNC 5 /* 64-bit source identifier */ - -/* Layout of 64-bit XIVE source attribute values */ -#define KVM_XIVE_LEVEL_SENSITIVE (1ULL << 0) -#define KVM_XIVE_LEVEL_ASSERTED (1ULL << 1) - -/* Layout of 64-bit XIVE source configuration attribute values */ -#define KVM_XIVE_SOURCE_PRIORITY_SHIFT 0 -#define KVM_XIVE_SOURCE_PRIORITY_MASK 0x7 -#define KVM_XIVE_SOURCE_SERVER_SHIFT 3 -#define KVM_XIVE_SOURCE_SERVER_MASK 0xfffffff8ULL -#define KVM_XIVE_SOURCE_MASKED_SHIFT 32 -#define KVM_XIVE_SOURCE_MASKED_MASK 0x100000000ULL -#define KVM_XIVE_SOURCE_EISN_SHIFT 33 -#define KVM_XIVE_SOURCE_EISN_MASK 0xfffffffe00000000ULL - -/* Layout of 64-bit EQ identifier */ -#define KVM_XIVE_EQ_PRIORITY_SHIFT 0 -#define KVM_XIVE_EQ_PRIORITY_MASK 0x7 -#define KVM_XIVE_EQ_SERVER_SHIFT 3 -#define KVM_XIVE_EQ_SERVER_MASK 0xfffffff8ULL - -/* Layout of EQ configuration values (64 bytes) */ -struct kvm_ppc_xive_eq { - __u32 flags; - __u32 qshift; - __u64 qaddr; - __u32 qtoggle; - __u32 qindex; - __u8 pad[40]; -}; - -#define KVM_XIVE_EQ_ALWAYS_NOTIFY 0x00000001 - -#define KVM_XIVE_TIMA_PAGE_OFFSET 0 -#define KVM_XIVE_ESB_PAGE_OFFSET 4 - -#endif /* __LINUX_KVM_POWERPC_H */ diff --git a/contrib/libs/linux-headers/asm/kvm_x86.h b/contrib/libs/linux-headers/asm/kvm_x86.h deleted file mode 100644 index 3f3f780c8c6..00000000000 --- a/contrib/libs/linux-headers/asm/kvm_x86.h +++ /dev/null @@ -1,450 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_KVM_H -#define _ASM_X86_KVM_H - -/* - * KVM x86 specific structures and definitions - * - */ - -#include <linux/types.h> -#include <linux/ioctl.h> - -#define KVM_PIO_PAGE_OFFSET 1 -#define KVM_COALESCED_MMIO_PAGE_OFFSET 2 - -#define DE_VECTOR 0 -#define DB_VECTOR 1 -#define BP_VECTOR 3 -#define OF_VECTOR 4 -#define BR_VECTOR 5 -#define UD_VECTOR 6 -#define NM_VECTOR 7 -#define DF_VECTOR 8 -#define TS_VECTOR 10 -#define NP_VECTOR 11 -#define SS_VECTOR 12 -#define GP_VECTOR 13 -#define PF_VECTOR 14 -#define MF_VECTOR 16 -#define AC_VECTOR 17 -#define MC_VECTOR 18 -#define XM_VECTOR 19 -#define VE_VECTOR 20 - -/* Select x86 specific features in <linux/kvm.h> */ -#define __KVM_HAVE_PIT -#define __KVM_HAVE_IOAPIC -#define __KVM_HAVE_IRQ_LINE -#define __KVM_HAVE_MSI -#define __KVM_HAVE_USER_NMI -#define __KVM_HAVE_GUEST_DEBUG -#define __KVM_HAVE_MSIX -#define __KVM_HAVE_MCE -#define __KVM_HAVE_PIT_STATE2 -#define __KVM_HAVE_XEN_HVM -#define __KVM_HAVE_VCPU_EVENTS -#define __KVM_HAVE_DEBUGREGS -#define __KVM_HAVE_XSAVE -#define __KVM_HAVE_XCRS -#define __KVM_HAVE_READONLY_MEM - -/* Architectural interrupt line count. */ -#define KVM_NR_INTERRUPTS 256 - -struct kvm_memory_alias { - __u32 slot; /* this has a different namespace than memory slots */ - __u32 flags; - __u64 guest_phys_addr; - __u64 memory_size; - __u64 target_phys_addr; -}; - -/* for KVM_GET_IRQCHIP and KVM_SET_IRQCHIP */ -struct kvm_pic_state { - __u8 last_irr; /* edge detection */ - __u8 irr; /* interrupt request register */ - __u8 imr; /* interrupt mask register */ - __u8 isr; /* interrupt service register */ - __u8 priority_add; /* highest irq priority */ - __u8 irq_base; - __u8 read_reg_select; - __u8 poll; - __u8 special_mask; - __u8 init_state; - __u8 auto_eoi; - __u8 rotate_on_auto_eoi; - __u8 special_fully_nested_mode; - __u8 init4; /* true if 4 byte init */ - __u8 elcr; /* PIIX edge/trigger selection */ - __u8 elcr_mask; -}; - -#define KVM_IOAPIC_NUM_PINS 24 -struct kvm_ioapic_state { - __u64 base_address; - __u32 ioregsel; - __u32 id; - __u32 irr; - __u32 pad; - union { - __u64 bits; - struct { - __u8 vector; - __u8 delivery_mode:3; - __u8 dest_mode:1; - __u8 delivery_status:1; - __u8 polarity:1; - __u8 remote_irr:1; - __u8 trig_mode:1; - __u8 mask:1; - __u8 reserve:7; - __u8 reserved[4]; - __u8 dest_id; - } fields; - } redirtbl[KVM_IOAPIC_NUM_PINS]; -}; - -#define KVM_IRQCHIP_PIC_MASTER 0 -#define KVM_IRQCHIP_PIC_SLAVE 1 -#define KVM_IRQCHIP_IOAPIC 2 -#define KVM_NR_IRQCHIPS 3 - -#define KVM_RUN_X86_SMM (1 << 0) - -/* for KVM_GET_REGS and KVM_SET_REGS */ -struct kvm_regs { - /* out (KVM_GET_REGS) / in (KVM_SET_REGS) */ - __u64 rax, rbx, rcx, rdx; - __u64 rsi, rdi, rsp, rbp; - __u64 r8, r9, r10, r11; - __u64 r12, r13, r14, r15; - __u64 rip, rflags; -}; - -/* for KVM_GET_LAPIC and KVM_SET_LAPIC */ -#define KVM_APIC_REG_SIZE 0x400 -struct kvm_lapic_state { - char regs[KVM_APIC_REG_SIZE]; -}; - -struct kvm_segment { - __u64 base; - __u32 limit; - __u16 selector; - __u8 type; - __u8 present, dpl, db, s, l, g, avl; - __u8 unusable; - __u8 padding; -}; - -struct kvm_dtable { - __u64 base; - __u16 limit; - __u16 padding[3]; -}; - - -/* for KVM_GET_SREGS and KVM_SET_SREGS */ -struct kvm_sregs { - /* out (KVM_GET_SREGS) / in (KVM_SET_SREGS) */ - struct kvm_segment cs, ds, es, fs, gs, ss; - struct kvm_segment tr, ldt; - struct kvm_dtable gdt, idt; - __u64 cr0, cr2, cr3, cr4, cr8; - __u64 efer; - __u64 apic_base; - __u64 interrupt_bitmap[(KVM_NR_INTERRUPTS + 63) / 64]; -}; - -/* for KVM_GET_FPU and KVM_SET_FPU */ -struct kvm_fpu { - __u8 fpr[8][16]; - __u16 fcw; - __u16 fsw; - __u8 ftwx; /* in fxsave format */ - __u8 pad1; - __u16 last_opcode; - __u64 last_ip; - __u64 last_dp; - __u8 xmm[16][16]; - __u32 mxcsr; - __u32 pad2; -}; - -struct kvm_msr_entry { - __u32 index; - __u32 reserved; - __u64 data; -}; - -/* for KVM_GET_MSRS and KVM_SET_MSRS */ -struct kvm_msrs { - __u32 nmsrs; /* number of msrs in entries */ - __u32 pad; - - struct kvm_msr_entry entries[0]; -}; - -/* for KVM_GET_MSR_INDEX_LIST */ -struct kvm_msr_list { - __u32 nmsrs; /* number of msrs in entries */ - __u32 indices[0]; -}; - - -struct kvm_cpuid_entry { - __u32 function; - __u32 eax; - __u32 ebx; - __u32 ecx; - __u32 edx; - __u32 padding; -}; - -/* for KVM_SET_CPUID */ -struct kvm_cpuid { - __u32 nent; - __u32 padding; - struct kvm_cpuid_entry entries[0]; -}; - -struct kvm_cpuid_entry2 { - __u32 function; - __u32 index; - __u32 flags; - __u32 eax; - __u32 ebx; - __u32 ecx; - __u32 edx; - __u32 padding[3]; -}; - -#define KVM_CPUID_FLAG_SIGNIFCANT_INDEX (1 << 0) -#define KVM_CPUID_FLAG_STATEFUL_FUNC (1 << 1) -#define KVM_CPUID_FLAG_STATE_READ_NEXT (1 << 2) - -/* for KVM_SET_CPUID2 */ -struct kvm_cpuid2 { - __u32 nent; - __u32 padding; - struct kvm_cpuid_entry2 entries[0]; -}; - -/* for KVM_GET_PIT and KVM_SET_PIT */ -struct kvm_pit_channel_state { - __u32 count; /* can be 65536 */ - __u16 latched_count; - __u8 count_latched; - __u8 status_latched; - __u8 status; - __u8 read_state; - __u8 write_state; - __u8 write_latch; - __u8 rw_mode; - __u8 mode; - __u8 bcd; - __u8 gate; - __s64 count_load_time; -}; - -struct kvm_debug_exit_arch { - __u32 exception; - __u32 pad; - __u64 pc; - __u64 dr6; - __u64 dr7; -}; - -#define KVM_GUESTDBG_USE_SW_BP 0x00010000 -#define KVM_GUESTDBG_USE_HW_BP 0x00020000 -#define KVM_GUESTDBG_INJECT_DB 0x00040000 -#define KVM_GUESTDBG_INJECT_BP 0x00080000 - -/* for KVM_SET_GUEST_DEBUG */ -struct kvm_guest_debug_arch { - __u64 debugreg[8]; -}; - -struct kvm_pit_state { - struct kvm_pit_channel_state channels[3]; -}; - -#define KVM_PIT_FLAGS_HPET_LEGACY 0x00000001 - -struct kvm_pit_state2 { - struct kvm_pit_channel_state channels[3]; - __u32 flags; - __u32 reserved[9]; -}; - -struct kvm_reinject_control { - __u8 pit_reinject; - __u8 reserved[31]; -}; - -/* When set in flags, include corresponding fields on KVM_SET_VCPU_EVENTS */ -#define KVM_VCPUEVENT_VALID_NMI_PENDING 0x00000001 -#define KVM_VCPUEVENT_VALID_SIPI_VECTOR 0x00000002 -#define KVM_VCPUEVENT_VALID_SHADOW 0x00000004 -#define KVM_VCPUEVENT_VALID_SMM 0x00000008 -#define KVM_VCPUEVENT_VALID_PAYLOAD 0x00000010 - -/* Interrupt shadow states */ -#define KVM_X86_SHADOW_INT_MOV_SS 0x01 -#define KVM_X86_SHADOW_INT_STI 0x02 - -/* for KVM_GET/SET_VCPU_EVENTS */ -struct kvm_vcpu_events { - struct { - __u8 injected; - __u8 nr; - __u8 has_error_code; - __u8 pending; - __u32 error_code; - } exception; - struct { - __u8 injected; - __u8 nr; - __u8 soft; - __u8 shadow; - } interrupt; - struct { - __u8 injected; - __u8 pending; - __u8 masked; - __u8 pad; - } nmi; - __u32 sipi_vector; - __u32 flags; - struct { - __u8 smm; - __u8 pending; - __u8 smm_inside_nmi; - __u8 latched_init; - } smi; - __u8 reserved[27]; - __u8 exception_has_payload; - __u64 exception_payload; -}; - -/* for KVM_GET/SET_DEBUGREGS */ -struct kvm_debugregs { - __u64 db[4]; - __u64 dr6; - __u64 dr7; - __u64 flags; - __u64 reserved[9]; -}; - -/* for KVM_CAP_XSAVE */ -struct kvm_xsave { - __u32 region[1024]; -}; - -#define KVM_MAX_XCRS 16 - -struct kvm_xcr { - __u32 xcr; - __u32 reserved; - __u64 value; -}; - -struct kvm_xcrs { - __u32 nr_xcrs; - __u32 flags; - struct kvm_xcr xcrs[KVM_MAX_XCRS]; - __u64 padding[16]; -}; - -#define KVM_SYNC_X86_REGS (1UL << 0) -#define KVM_SYNC_X86_SREGS (1UL << 1) -#define KVM_SYNC_X86_EVENTS (1UL << 2) - -#define KVM_SYNC_X86_VALID_FIELDS \ - (KVM_SYNC_X86_REGS| \ - KVM_SYNC_X86_SREGS| \ - KVM_SYNC_X86_EVENTS) - -/* kvm_sync_regs struct included by kvm_run struct */ -struct kvm_sync_regs { - /* Members of this structure are potentially malicious. - * Care must be taken by code reading, esp. interpreting, - * data fields from them inside KVM to prevent TOCTOU and - * double-fetch types of vulnerabilities. - */ - struct kvm_regs regs; - struct kvm_sregs sregs; - struct kvm_vcpu_events events; -}; - -#define KVM_X86_QUIRK_LINT0_REENABLED (1 << 0) -#define KVM_X86_QUIRK_CD_NW_CLEARED (1 << 1) -#define KVM_X86_QUIRK_LAPIC_MMIO_HOLE (1 << 2) -#define KVM_X86_QUIRK_OUT_7E_INC_RIP (1 << 3) -#define KVM_X86_QUIRK_MISC_ENABLE_NO_MWAIT (1 << 4) - -#define KVM_STATE_NESTED_FORMAT_VMX 0 -#define KVM_STATE_NESTED_FORMAT_SVM 1 /* unused */ - -#define KVM_STATE_NESTED_GUEST_MODE 0x00000001 -#define KVM_STATE_NESTED_RUN_PENDING 0x00000002 -#define KVM_STATE_NESTED_EVMCS 0x00000004 -#define KVM_STATE_NESTED_MTF_PENDING 0x00000008 - -#define KVM_STATE_NESTED_SMM_GUEST_MODE 0x00000001 -#define KVM_STATE_NESTED_SMM_VMXON 0x00000002 - -#define KVM_STATE_NESTED_VMX_VMCS_SIZE 0x1000 - -struct kvm_vmx_nested_state_data { - __u8 vmcs12[KVM_STATE_NESTED_VMX_VMCS_SIZE]; - __u8 shadow_vmcs12[KVM_STATE_NESTED_VMX_VMCS_SIZE]; -}; - -struct kvm_vmx_nested_state_hdr { - __u64 vmxon_pa; - __u64 vmcs12_pa; - - struct { - __u16 flags; - } smm; -}; - -/* for KVM_CAP_NESTED_STATE */ -struct kvm_nested_state { - __u16 flags; - __u16 format; - __u32 size; - - union { - struct kvm_vmx_nested_state_hdr vmx; - - /* Pad the header to 128 bytes. */ - __u8 pad[120]; - } hdr; - - /* - * Define data region as 0 bytes to preserve backwards-compatability - * to old definition of kvm_nested_state in order to avoid changing - * KVM_{GET,PUT}_NESTED_STATE ioctl values. - */ - union { - struct kvm_vmx_nested_state_data vmx[0]; - } data; -}; - -/* for KVM_CAP_PMU_EVENT_FILTER */ -struct kvm_pmu_event_filter { - __u32 action; - __u32 nevents; - __u32 fixed_counter_bitmap; - __u32 flags; - __u32 pad[4]; - __u64 events[0]; -}; - -#define KVM_PMU_EVENT_ALLOW 0 -#define KVM_PMU_EVENT_DENY 1 - -#endif /* _ASM_X86_KVM_H */ diff --git a/contrib/libs/linux-headers/asm/ldt.h b/contrib/libs/linux-headers/asm/ldt.h deleted file mode 100644 index 7c50bb0c0b6..00000000000 --- a/contrib/libs/linux-headers/asm/ldt.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "ldt_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/ldt_x86.h b/contrib/libs/linux-headers/asm/ldt_x86.h deleted file mode 100644 index d62ac5db093..00000000000 --- a/contrib/libs/linux-headers/asm/ldt_x86.h +++ /dev/null @@ -1,48 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * ldt.h - * - * Definitions of structures used with the modify_ldt system call. - */ -#ifndef _ASM_X86_LDT_H -#define _ASM_X86_LDT_H - -/* Maximum number of LDT entries supported. */ -#define LDT_ENTRIES 8192 -/* The size of each LDT entry. */ -#define LDT_ENTRY_SIZE 8 - -#ifndef __ASSEMBLY__ -/* - * Note on 64bit base and limit is ignored and you cannot set DS/ES/CS - * not to the default values if you still want to do syscalls. This - * call is more for 32bit mode therefore. - */ -struct user_desc { - unsigned int entry_number; - unsigned int base_addr; - unsigned int limit; - unsigned int seg_32bit:1; - unsigned int contents:2; - unsigned int read_exec_only:1; - unsigned int limit_in_pages:1; - unsigned int seg_not_present:1; - unsigned int useable:1; -#ifdef __x86_64__ - /* - * Because this bit is not present in 32-bit user code, user - * programs can pass uninitialized values here. Therefore, in - * any context in which a user_desc comes from a 32-bit program, - * the kernel must act as though lm == 0, regardless of the - * actual value. - */ - unsigned int lm:1; -#endif -}; - -#define MODIFY_LDT_CONTENTS_DATA 0 -#define MODIFY_LDT_CONTENTS_STACK 1 -#define MODIFY_LDT_CONTENTS_CODE 2 - -#endif /* !__ASSEMBLY__ */ -#endif /* _ASM_X86_LDT_H */ diff --git a/contrib/libs/linux-headers/asm/mce.h b/contrib/libs/linux-headers/asm/mce.h deleted file mode 100644 index dcb8309673a..00000000000 --- a/contrib/libs/linux-headers/asm/mce.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "mce_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/mce_x86.h b/contrib/libs/linux-headers/asm/mce_x86.h deleted file mode 100644 index 8d1a0548fa4..00000000000 --- a/contrib/libs/linux-headers/asm/mce_x86.h +++ /dev/null @@ -1,44 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_MCE_H -#define _ASM_X86_MCE_H - -#include <linux/types.h> -#include <linux/ioctl.h> - -/* - * Fields are zero when not available. Also, this struct is shared with - * userspace mcelog and thus must keep existing fields at current offsets. - * Only add new fields to the end of the structure - */ -struct mce { - __u64 status; /* Bank's MCi_STATUS MSR */ - __u64 misc; /* Bank's MCi_MISC MSR */ - __u64 addr; /* Bank's MCi_ADDR MSR */ - __u64 mcgstatus; /* Machine Check Global Status MSR */ - __u64 ip; /* Instruction Pointer when the error happened */ - __u64 tsc; /* CPU time stamp counter */ - __u64 time; /* Wall time_t when error was detected */ - __u8 cpuvendor; /* Kernel's X86_VENDOR enum */ - __u8 inject_flags; /* Software inject flags */ - __u8 severity; /* Error severity */ - __u8 pad; - __u32 cpuid; /* CPUID 1 EAX */ - __u8 cs; /* Code segment */ - __u8 bank; /* Machine check bank reporting the error */ - __u8 cpu; /* CPU number; obsoleted by extcpu */ - __u8 finished; /* Entry is valid */ - __u32 extcpu; /* Linux CPU number that detected the error */ - __u32 socketid; /* CPU socket ID */ - __u32 apicid; /* CPU initial APIC ID */ - __u64 mcgcap; /* MCGCAP MSR: machine check capabilities of CPU */ - __u64 synd; /* MCA_SYND MSR: only valid on SMCA systems */ - __u64 ipid; /* MCA_IPID MSR: only valid on SMCA systems */ - __u64 ppin; /* Protected Processor Inventory Number */ - __u32 microcode; /* Microcode revision */ -}; - -#define MCE_GET_RECORD_LEN _IOR('M', 1, int) -#define MCE_GET_LOG_LEN _IOR('M', 2, int) -#define MCE_GETCLEAR_FLAGS _IOR('M', 3, int) - -#endif /* _ASM_X86_MCE_H */ diff --git a/contrib/libs/linux-headers/asm/mman.h b/contrib/libs/linux-headers/asm/mman.h deleted file mode 100644 index b1c508ea17b..00000000000 --- a/contrib/libs/linux-headers/asm/mman.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "mman_arm.h" -#elif defined(__aarch64__) -#include "mman_arm64.h" -#elif defined(__powerpc__) -#include "mman_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "mman_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/mman_arm.h b/contrib/libs/linux-headers/asm/mman_arm.h deleted file mode 100644 index 41f99c573b9..00000000000 --- a/contrib/libs/linux-headers/asm/mman_arm.h +++ /dev/null @@ -1,4 +0,0 @@ -#include <asm-generic/mman.h> - -#define arch_mmap_check(addr, len, flags) \ - (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0) diff --git a/contrib/libs/linux-headers/asm/mman_arm64.h b/contrib/libs/linux-headers/asm/mman_arm64.h deleted file mode 100644 index 8eebf89f5ab..00000000000 --- a/contrib/libs/linux-headers/asm/mman_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/mman.h> diff --git a/contrib/libs/linux-headers/asm/mman_powerpc.h b/contrib/libs/linux-headers/asm/mman_powerpc.h deleted file mode 100644 index 8db7c2a3be3..00000000000 --- a/contrib/libs/linux-headers/asm/mman_powerpc.h +++ /dev/null @@ -1,35 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -#ifndef _ASM_POWERPC_MMAN_H -#define _ASM_POWERPC_MMAN_H - -#include <asm-generic/mman-common.h> - - -#define PROT_SAO 0x10 /* Strong Access Ordering */ - -#define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ -#define MAP_NORESERVE 0x40 /* don't reserve swap pages */ -#define MAP_LOCKED 0x80 - -#define MAP_GROWSDOWN 0x0100 /* stack-like segment */ -#define MAP_DENYWRITE 0x0800 /* ETXTBSY */ -#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ - - -#define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ -#define MCL_FUTURE 0x4000 /* lock all additions to address space */ -#define MCL_ONFAULT 0x8000 /* lock all pages that are faulted in */ - -/* Override any generic PKEY permission defines */ -#define PKEY_DISABLE_EXECUTE 0x4 -#undef PKEY_ACCESS_MASK -#define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS |\ - PKEY_DISABLE_WRITE |\ - PKEY_DISABLE_EXECUTE) -#endif /* _ASM_POWERPC_MMAN_H */ diff --git a/contrib/libs/linux-headers/asm/mman_x86.h b/contrib/libs/linux-headers/asm/mman_x86.h deleted file mode 100644 index d4a8d0424bf..00000000000 --- a/contrib/libs/linux-headers/asm/mman_x86.h +++ /dev/null @@ -1,31 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_MMAN_H -#define _ASM_X86_MMAN_H - -#define MAP_32BIT 0x40 /* only give out 32bit addresses */ - -#ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS -/* - * Take the 4 protection key bits out of the vma->vm_flags - * value and turn them in to the bits that we can put in - * to a pte. - * - * Only override these if Protection Keys are available - * (which is only on 64-bit). - */ -#define arch_vm_get_page_prot(vm_flags) __pgprot( \ - ((vm_flags) & VM_PKEY_BIT0 ? _PAGE_PKEY_BIT0 : 0) | \ - ((vm_flags) & VM_PKEY_BIT1 ? _PAGE_PKEY_BIT1 : 0) | \ - ((vm_flags) & VM_PKEY_BIT2 ? _PAGE_PKEY_BIT2 : 0) | \ - ((vm_flags) & VM_PKEY_BIT3 ? _PAGE_PKEY_BIT3 : 0)) - -#define arch_calc_vm_prot_bits(prot, key) ( \ - ((key) & 0x1 ? VM_PKEY_BIT0 : 0) | \ - ((key) & 0x2 ? VM_PKEY_BIT1 : 0) | \ - ((key) & 0x4 ? VM_PKEY_BIT2 : 0) | \ - ((key) & 0x8 ? VM_PKEY_BIT3 : 0)) -#endif - -#include <asm-generic/mman.h> - -#endif /* _ASM_X86_MMAN_H */ diff --git a/contrib/libs/linux-headers/asm/msgbuf.h b/contrib/libs/linux-headers/asm/msgbuf.h deleted file mode 100644 index c3a71b7ef0e..00000000000 --- a/contrib/libs/linux-headers/asm/msgbuf.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "msgbuf_arm.h" -#elif defined(__aarch64__) -#include "msgbuf_arm64.h" -#elif defined(__powerpc__) -#include "msgbuf_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "msgbuf_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/msgbuf_arm.h b/contrib/libs/linux-headers/asm/msgbuf_arm.h deleted file mode 100644 index 809134c644a..00000000000 --- a/contrib/libs/linux-headers/asm/msgbuf_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/msgbuf.h> diff --git a/contrib/libs/linux-headers/asm/msgbuf_arm64.h b/contrib/libs/linux-headers/asm/msgbuf_arm64.h deleted file mode 100644 index 809134c644a..00000000000 --- a/contrib/libs/linux-headers/asm/msgbuf_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/msgbuf.h> diff --git a/contrib/libs/linux-headers/asm/msgbuf_powerpc.h b/contrib/libs/linux-headers/asm/msgbuf_powerpc.h deleted file mode 100644 index 7919b2ba41b..00000000000 --- a/contrib/libs/linux-headers/asm/msgbuf_powerpc.h +++ /dev/null @@ -1,36 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_MSGBUF_H -#define _ASM_POWERPC_MSGBUF_H - -#include <asm/ipcbuf.h> - -/* - * The msqid64_ds structure for the PowerPC architecture. - * Note extra padding because this structure is passed back and forth - * between kernel and user space. - */ - -struct msqid64_ds { - struct ipc64_perm msg_perm; -#ifdef __powerpc64__ - long msg_stime; /* last msgsnd time */ - long msg_rtime; /* last msgrcv time */ - long msg_ctime; /* last change time */ -#else - unsigned long msg_stime_high; - unsigned long msg_stime; /* last msgsnd time */ - unsigned long msg_rtime_high; - unsigned long msg_rtime; /* last msgrcv time */ - unsigned long msg_ctime_high; - unsigned long msg_ctime; /* last change time */ -#endif - unsigned long msg_cbytes; /* current number of bytes on queue */ - unsigned long msg_qnum; /* number of messages in queue */ - unsigned long msg_qbytes; /* max number of bytes on queue */ - __kernel_pid_t msg_lspid; /* pid of last msgsnd */ - __kernel_pid_t msg_lrpid; /* last receive pid */ - unsigned long __unused4; - unsigned long __unused5; -}; - -#endif /* _ASM_POWERPC_MSGBUF_H */ diff --git a/contrib/libs/linux-headers/asm/msgbuf_x86.h b/contrib/libs/linux-headers/asm/msgbuf_x86.h deleted file mode 100644 index b3d0664fadc..00000000000 --- a/contrib/libs/linux-headers/asm/msgbuf_x86.h +++ /dev/null @@ -1,35 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASM_X64_MSGBUF_H -#define __ASM_X64_MSGBUF_H - -#if !defined(__x86_64__) || !defined(__ILP32__) -#include <asm-generic/msgbuf.h> -#else - -#include <asm/ipcbuf.h> - -/* - * The msqid64_ds structure for x86 architecture with x32 ABI. - * - * On x86-32 and x86-64 we can just use the generic definition, but - * x32 uses the same binary layout as x86_64, which is differnet - * from other 32-bit architectures. - */ - -struct msqid64_ds { - struct ipc64_perm msg_perm; - __kernel_long_t msg_stime; /* last msgsnd time */ - __kernel_long_t msg_rtime; /* last msgrcv time */ - __kernel_long_t msg_ctime; /* last change time */ - __kernel_ulong_t msg_cbytes; /* current number of bytes on queue */ - __kernel_ulong_t msg_qnum; /* number of messages in queue */ - __kernel_ulong_t msg_qbytes; /* max number of bytes on queue */ - __kernel_pid_t msg_lspid; /* pid of last msgsnd */ - __kernel_pid_t msg_lrpid; /* last receive pid */ - __kernel_ulong_t __unused4; - __kernel_ulong_t __unused5; -}; - -#endif - -#endif /* __ASM_GENERIC_MSGBUF_H */ diff --git a/contrib/libs/linux-headers/asm/msr.h b/contrib/libs/linux-headers/asm/msr.h deleted file mode 100644 index d63f5aee67e..00000000000 --- a/contrib/libs/linux-headers/asm/msr.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "msr_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/msr_x86.h b/contrib/libs/linux-headers/asm/msr_x86.h deleted file mode 100644 index a3e0fed3d5e..00000000000 --- a/contrib/libs/linux-headers/asm/msr_x86.h +++ /dev/null @@ -1,14 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_MSR_H -#define _ASM_X86_MSR_H - -#ifndef __ASSEMBLY__ - -#include <linux/types.h> -#include <linux/ioctl.h> - -#define X86_IOC_RDMSR_REGS _IOWR('c', 0xA0, __u32[8]) -#define X86_IOC_WRMSR_REGS _IOWR('c', 0xA1, __u32[8]) - -#endif /* __ASSEMBLY__ */ -#endif /* _ASM_X86_MSR_H */ diff --git a/contrib/libs/linux-headers/asm/mtrr.h b/contrib/libs/linux-headers/asm/mtrr.h deleted file mode 100644 index edab54cc0ea..00000000000 --- a/contrib/libs/linux-headers/asm/mtrr.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "mtrr_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/mtrr_x86.h b/contrib/libs/linux-headers/asm/mtrr_x86.h deleted file mode 100644 index 43a3868c90c..00000000000 --- a/contrib/libs/linux-headers/asm/mtrr_x86.h +++ /dev/null @@ -1,124 +0,0 @@ -/* SPDX-License-Identifier: LGPL-2.0+ WITH Linux-syscall-note */ -/* Generic MTRR (Memory Type Range Register) ioctls. - - Copyright (C) 1997-1999 Richard Gooch - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free - Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - Richard Gooch may be reached by email at rgooch@atnf.csiro.au - The postal address is: - Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia. -*/ -#ifndef _ASM_X86_MTRR_H -#define _ASM_X86_MTRR_H - -#include <linux/types.h> -#include <linux/ioctl.h> -#include <linux/errno.h> - -#define MTRR_IOCTL_BASE 'M' - -/* Warning: this structure has a different order from i386 - on x86-64. The 32bit emulation code takes care of that. - But you need to use this for 64bit, otherwise your X server - will break. */ - -#ifdef __i386__ -struct mtrr_sentry { - unsigned long base; /* Base address */ - unsigned int size; /* Size of region */ - unsigned int type; /* Type of region */ -}; - -struct mtrr_gentry { - unsigned int regnum; /* Register number */ - unsigned long base; /* Base address */ - unsigned int size; /* Size of region */ - unsigned int type; /* Type of region */ -}; - -#else /* __i386__ */ - -struct mtrr_sentry { - __u64 base; /* Base address */ - __u32 size; /* Size of region */ - __u32 type; /* Type of region */ -}; - -struct mtrr_gentry { - __u64 base; /* Base address */ - __u32 size; /* Size of region */ - __u32 regnum; /* Register number */ - __u32 type; /* Type of region */ - __u32 _pad; /* Unused */ -}; - -#endif /* !__i386__ */ - -struct mtrr_var_range { - __u32 base_lo; - __u32 base_hi; - __u32 mask_lo; - __u32 mask_hi; -}; - -/* In the Intel processor's MTRR interface, the MTRR type is always held in - an 8 bit field: */ -typedef __u8 mtrr_type; - -#define MTRR_NUM_FIXED_RANGES 88 -#define MTRR_MAX_VAR_RANGES 256 - -struct mtrr_state_type { - struct mtrr_var_range var_ranges[MTRR_MAX_VAR_RANGES]; - mtrr_type fixed_ranges[MTRR_NUM_FIXED_RANGES]; - unsigned char enabled; - unsigned char have_fixed; - mtrr_type def_type; -}; - -#define MTRRphysBase_MSR(reg) (0x200 + 2 * (reg)) -#define MTRRphysMask_MSR(reg) (0x200 + 2 * (reg) + 1) - -/* These are the various ioctls */ -#define MTRRIOC_ADD_ENTRY _IOW(MTRR_IOCTL_BASE, 0, struct mtrr_sentry) -#define MTRRIOC_SET_ENTRY _IOW(MTRR_IOCTL_BASE, 1, struct mtrr_sentry) -#define MTRRIOC_DEL_ENTRY _IOW(MTRR_IOCTL_BASE, 2, struct mtrr_sentry) -#define MTRRIOC_GET_ENTRY _IOWR(MTRR_IOCTL_BASE, 3, struct mtrr_gentry) -#define MTRRIOC_KILL_ENTRY _IOW(MTRR_IOCTL_BASE, 4, struct mtrr_sentry) -#define MTRRIOC_ADD_PAGE_ENTRY _IOW(MTRR_IOCTL_BASE, 5, struct mtrr_sentry) -#define MTRRIOC_SET_PAGE_ENTRY _IOW(MTRR_IOCTL_BASE, 6, struct mtrr_sentry) -#define MTRRIOC_DEL_PAGE_ENTRY _IOW(MTRR_IOCTL_BASE, 7, struct mtrr_sentry) -#define MTRRIOC_GET_PAGE_ENTRY _IOWR(MTRR_IOCTL_BASE, 8, struct mtrr_gentry) -#define MTRRIOC_KILL_PAGE_ENTRY _IOW(MTRR_IOCTL_BASE, 9, struct mtrr_sentry) - -/* MTRR memory types, which are defined in SDM */ -#define MTRR_TYPE_UNCACHABLE 0 -#define MTRR_TYPE_WRCOMB 1 -/*#define MTRR_TYPE_ 2*/ -/*#define MTRR_TYPE_ 3*/ -#define MTRR_TYPE_WRTHROUGH 4 -#define MTRR_TYPE_WRPROT 5 -#define MTRR_TYPE_WRBACK 6 -#define MTRR_NUM_TYPES 7 - -/* - * Invalid MTRR memory type. mtrr_type_lookup() returns this value when - * MTRRs are disabled. Note, this value is allocated from the reserved - * values (0x7-0xff) of the MTRR memory types. - */ -#define MTRR_TYPE_INVALID 0xff - -#endif /* _ASM_X86_MTRR_H */ diff --git a/contrib/libs/linux-headers/asm/nvram.h b/contrib/libs/linux-headers/asm/nvram.h deleted file mode 100644 index fba6d0f6bc0..00000000000 --- a/contrib/libs/linux-headers/asm/nvram.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "nvram_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/nvram_powerpc.h b/contrib/libs/linux-headers/asm/nvram_powerpc.h deleted file mode 100644 index 1053113249f..00000000000 --- a/contrib/libs/linux-headers/asm/nvram_powerpc.h +++ /dev/null @@ -1,63 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * NVRAM definitions and access functions. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ - -#ifndef _ASM_POWERPC_NVRAM_H -#define _ASM_POWERPC_NVRAM_H - -/* Signatures for nvram partitions */ -#define NVRAM_SIG_SP 0x02 /* support processor */ -#define NVRAM_SIG_OF 0x50 /* open firmware config */ -#define NVRAM_SIG_FW 0x51 /* general firmware */ -#define NVRAM_SIG_HW 0x52 /* hardware (VPD) */ -#define NVRAM_SIG_FLIP 0x5a /* Apple flip/flop header */ -#define NVRAM_SIG_APPL 0x5f /* Apple "system" (???) */ -#define NVRAM_SIG_SYS 0x70 /* system env vars */ -#define NVRAM_SIG_CFG 0x71 /* config data */ -#define NVRAM_SIG_ELOG 0x72 /* error log */ -#define NVRAM_SIG_VEND 0x7e /* vendor defined */ -#define NVRAM_SIG_FREE 0x7f /* Free space */ -#define NVRAM_SIG_OS 0xa0 /* OS defined */ -#define NVRAM_SIG_PANIC 0xa1 /* Apple OSX "panic" */ - - -/* PowerMac specific nvram stuffs */ - -enum { - pmac_nvram_OF, /* Open Firmware partition */ - pmac_nvram_XPRAM, /* MacOS XPRAM partition */ - pmac_nvram_NR /* MacOS Name Registry partition */ -}; - - -/* Some offsets in XPRAM */ -#define PMAC_XPRAM_MACHINE_LOC 0xe4 -#define PMAC_XPRAM_SOUND_VOLUME 0x08 - -/* Machine location structure in PowerMac XPRAM */ -struct pmac_machine_location { - unsigned int latitude; /* 2+30 bit Fractional number */ - unsigned int longitude; /* 2+30 bit Fractional number */ - unsigned int delta; /* mix of GMT delta and DLS */ -}; - -/* - * /dev/nvram ioctls - * - * Note that PMAC_NVRAM_GET_OFFSET is still supported, but is - * definitely obsolete. Do not use it if you can avoid it - */ - -#define OBSOLETE_PMAC_NVRAM_GET_OFFSET \ - _IOWR('p', 0x40, int) - -#define IOC_NVRAM_GET_OFFSET _IOWR('p', 0x42, int) /* Get NVRAM partition offset */ -#define IOC_NVRAM_SYNC _IO('p', 0x43) /* Sync NVRAM image */ - -#endif /* _ASM_POWERPC_NVRAM_H */ diff --git a/contrib/libs/linux-headers/asm/opal-prd.h b/contrib/libs/linux-headers/asm/opal-prd.h deleted file mode 100644 index 18923eedde3..00000000000 --- a/contrib/libs/linux-headers/asm/opal-prd.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "opal-prd_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/opal-prd_powerpc.h b/contrib/libs/linux-headers/asm/opal-prd_powerpc.h deleted file mode 100644 index 9b540f02663..00000000000 --- a/contrib/libs/linux-headers/asm/opal-prd_powerpc.h +++ /dev/null @@ -1,59 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * OPAL Runtime Diagnostics interface driver - * Supported on POWERNV platform - * - * (C) Copyright IBM 2015 - * - * Author: Vaidyanathan Srinivasan <svaidy at linux.vnet.ibm.com> - * Author: Jeremy Kerr <jk@ozlabs.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#ifndef _ASM_POWERPC_OPAL_PRD_H_ -#define _ASM_POWERPC_OPAL_PRD_H_ - -#include <linux/types.h> - -/** - * The version of the kernel interface of the PRD system. This describes the - * interface available for the /dev/opal-prd device. The actual PRD message - * layout and content is private to the firmware <--> userspace interface, so - * is not covered by this versioning. - * - * Future interface versions are backwards-compatible; if a later kernel - * version is encountered, functionality provided in earlier versions - * will work. - */ -#define OPAL_PRD_KERNEL_VERSION 1 - -#define OPAL_PRD_GET_INFO _IOR('o', 0x01, struct opal_prd_info) -#define OPAL_PRD_SCOM_READ _IOR('o', 0x02, struct opal_prd_scom) -#define OPAL_PRD_SCOM_WRITE _IOW('o', 0x03, struct opal_prd_scom) - -#ifndef __ASSEMBLY__ - -struct opal_prd_info { - __u64 version; - __u64 reserved[3]; -}; - -struct opal_prd_scom { - __u64 chip; - __u64 addr; - __u64 data; - __s64 rc; -}; - -#endif /* __ASSEMBLY__ */ - -#endif /* _ASM_POWERPC_OPAL_PRD_H */ diff --git a/contrib/libs/linux-headers/asm/param.h b/contrib/libs/linux-headers/asm/param.h deleted file mode 100644 index 9dc9f433bf5..00000000000 --- a/contrib/libs/linux-headers/asm/param.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "param_arm.h" -#elif defined(__aarch64__) -#include "param_arm64.h" -#elif defined(__powerpc__) -#include "param_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "param_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/param_arm.h b/contrib/libs/linux-headers/asm/param_arm.h deleted file mode 100644 index 965d4542797..00000000000 --- a/contrib/libs/linux-headers/asm/param_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/param.h> diff --git a/contrib/libs/linux-headers/asm/param_arm64.h b/contrib/libs/linux-headers/asm/param_arm64.h deleted file mode 100644 index b115c555778..00000000000 --- a/contrib/libs/linux-headers/asm/param_arm64.h +++ /dev/null @@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_PARAM_H -#define __ASM_PARAM_H - -#define EXEC_PAGESIZE 65536 - -#include <asm-generic/param.h> - -#endif diff --git a/contrib/libs/linux-headers/asm/param_powerpc.h b/contrib/libs/linux-headers/asm/param_powerpc.h deleted file mode 100644 index 965d4542797..00000000000 --- a/contrib/libs/linux-headers/asm/param_powerpc.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/param.h> diff --git a/contrib/libs/linux-headers/asm/param_x86.h b/contrib/libs/linux-headers/asm/param_x86.h deleted file mode 100644 index 965d4542797..00000000000 --- a/contrib/libs/linux-headers/asm/param_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/param.h> diff --git a/contrib/libs/linux-headers/asm/perf_event.h b/contrib/libs/linux-headers/asm/perf_event.h deleted file mode 100644 index d26d23a3a60..00000000000 --- a/contrib/libs/linux-headers/asm/perf_event.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "perf_event_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/perf_event_powerpc.h b/contrib/libs/linux-headers/asm/perf_event_powerpc.h deleted file mode 100644 index 50375c96e7b..00000000000 --- a/contrib/libs/linux-headers/asm/perf_event_powerpc.h +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright 2013 Michael Ellerman, IBM Corp. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; version 2 of the - * License. - */ - -#ifndef _ASM_POWERPC_PERF_EVENT_H -#define _ASM_POWERPC_PERF_EVENT_H - -/* - * We use bit 63 of perf_event_attr.config as a flag to request EBB. - */ -#define PERF_EVENT_CONFIG_EBB_SHIFT 63 - -#endif /* _ASM_POWERPC_PERF_EVENT_H */ diff --git a/contrib/libs/linux-headers/asm/perf_regs.h b/contrib/libs/linux-headers/asm/perf_regs.h deleted file mode 100644 index c339151bc30..00000000000 --- a/contrib/libs/linux-headers/asm/perf_regs.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "perf_regs_arm.h" -#elif defined(__aarch64__) -#include "perf_regs_arm64.h" -#elif defined(__powerpc__) -#include "perf_regs_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "perf_regs_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/perf_regs_arm.h b/contrib/libs/linux-headers/asm/perf_regs_arm.h deleted file mode 100644 index a3c046174e6..00000000000 --- a/contrib/libs/linux-headers/asm/perf_regs_arm.h +++ /dev/null @@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_ARM_PERF_REGS_H -#define _ASM_ARM_PERF_REGS_H - -enum perf_event_arm_regs { - PERF_REG_ARM_R0, - PERF_REG_ARM_R1, - PERF_REG_ARM_R2, - PERF_REG_ARM_R3, - PERF_REG_ARM_R4, - PERF_REG_ARM_R5, - PERF_REG_ARM_R6, - PERF_REG_ARM_R7, - PERF_REG_ARM_R8, - PERF_REG_ARM_R9, - PERF_REG_ARM_R10, - PERF_REG_ARM_FP, - PERF_REG_ARM_IP, - PERF_REG_ARM_SP, - PERF_REG_ARM_LR, - PERF_REG_ARM_PC, - PERF_REG_ARM_MAX, -}; -#endif /* _ASM_ARM_PERF_REGS_H */ diff --git a/contrib/libs/linux-headers/asm/perf_regs_arm64.h b/contrib/libs/linux-headers/asm/perf_regs_arm64.h deleted file mode 100644 index d54daafa89e..00000000000 --- a/contrib/libs/linux-headers/asm/perf_regs_arm64.h +++ /dev/null @@ -1,41 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_ARM64_PERF_REGS_H -#define _ASM_ARM64_PERF_REGS_H - -enum perf_event_arm_regs { - PERF_REG_ARM64_X0, - PERF_REG_ARM64_X1, - PERF_REG_ARM64_X2, - PERF_REG_ARM64_X3, - PERF_REG_ARM64_X4, - PERF_REG_ARM64_X5, - PERF_REG_ARM64_X6, - PERF_REG_ARM64_X7, - PERF_REG_ARM64_X8, - PERF_REG_ARM64_X9, - PERF_REG_ARM64_X10, - PERF_REG_ARM64_X11, - PERF_REG_ARM64_X12, - PERF_REG_ARM64_X13, - PERF_REG_ARM64_X14, - PERF_REG_ARM64_X15, - PERF_REG_ARM64_X16, - PERF_REG_ARM64_X17, - PERF_REG_ARM64_X18, - PERF_REG_ARM64_X19, - PERF_REG_ARM64_X20, - PERF_REG_ARM64_X21, - PERF_REG_ARM64_X22, - PERF_REG_ARM64_X23, - PERF_REG_ARM64_X24, - PERF_REG_ARM64_X25, - PERF_REG_ARM64_X26, - PERF_REG_ARM64_X27, - PERF_REG_ARM64_X28, - PERF_REG_ARM64_X29, - PERF_REG_ARM64_LR, - PERF_REG_ARM64_SP, - PERF_REG_ARM64_PC, - PERF_REG_ARM64_MAX, -}; -#endif /* _ASM_ARM64_PERF_REGS_H */ diff --git a/contrib/libs/linux-headers/asm/perf_regs_powerpc.h b/contrib/libs/linux-headers/asm/perf_regs_powerpc.h deleted file mode 100644 index 9baddd1d271..00000000000 --- a/contrib/libs/linux-headers/asm/perf_regs_powerpc.h +++ /dev/null @@ -1,53 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_PERF_REGS_H -#define _ASM_POWERPC_PERF_REGS_H - -enum perf_event_powerpc_regs { - PERF_REG_POWERPC_R0, - PERF_REG_POWERPC_R1, - PERF_REG_POWERPC_R2, - PERF_REG_POWERPC_R3, - PERF_REG_POWERPC_R4, - PERF_REG_POWERPC_R5, - PERF_REG_POWERPC_R6, - PERF_REG_POWERPC_R7, - PERF_REG_POWERPC_R8, - PERF_REG_POWERPC_R9, - PERF_REG_POWERPC_R10, - PERF_REG_POWERPC_R11, - PERF_REG_POWERPC_R12, - PERF_REG_POWERPC_R13, - PERF_REG_POWERPC_R14, - PERF_REG_POWERPC_R15, - PERF_REG_POWERPC_R16, - PERF_REG_POWERPC_R17, - PERF_REG_POWERPC_R18, - PERF_REG_POWERPC_R19, - PERF_REG_POWERPC_R20, - PERF_REG_POWERPC_R21, - PERF_REG_POWERPC_R22, - PERF_REG_POWERPC_R23, - PERF_REG_POWERPC_R24, - PERF_REG_POWERPC_R25, - PERF_REG_POWERPC_R26, - PERF_REG_POWERPC_R27, - PERF_REG_POWERPC_R28, - PERF_REG_POWERPC_R29, - PERF_REG_POWERPC_R30, - PERF_REG_POWERPC_R31, - PERF_REG_POWERPC_NIP, - PERF_REG_POWERPC_MSR, - PERF_REG_POWERPC_ORIG_R3, - PERF_REG_POWERPC_CTR, - PERF_REG_POWERPC_LINK, - PERF_REG_POWERPC_XER, - PERF_REG_POWERPC_CCR, - PERF_REG_POWERPC_SOFTE, - PERF_REG_POWERPC_TRAP, - PERF_REG_POWERPC_DAR, - PERF_REG_POWERPC_DSISR, - PERF_REG_POWERPC_SIER, - PERF_REG_POWERPC_MMCRA, - PERF_REG_POWERPC_MAX, -}; -#endif /* _ASM_POWERPC_PERF_REGS_H */ diff --git a/contrib/libs/linux-headers/asm/perf_regs_x86.h b/contrib/libs/linux-headers/asm/perf_regs_x86.h deleted file mode 100644 index 7c9d2bb3833..00000000000 --- a/contrib/libs/linux-headers/asm/perf_regs_x86.h +++ /dev/null @@ -1,58 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_PERF_REGS_H -#define _ASM_X86_PERF_REGS_H - -enum perf_event_x86_regs { - PERF_REG_X86_AX, - PERF_REG_X86_BX, - PERF_REG_X86_CX, - PERF_REG_X86_DX, - PERF_REG_X86_SI, - PERF_REG_X86_DI, - PERF_REG_X86_BP, - PERF_REG_X86_SP, - PERF_REG_X86_IP, - PERF_REG_X86_FLAGS, - PERF_REG_X86_CS, - PERF_REG_X86_SS, - PERF_REG_X86_DS, - PERF_REG_X86_ES, - PERF_REG_X86_FS, - PERF_REG_X86_GS, - PERF_REG_X86_R8, - PERF_REG_X86_R9, - PERF_REG_X86_R10, - PERF_REG_X86_R11, - PERF_REG_X86_R12, - PERF_REG_X86_R13, - PERF_REG_X86_R14, - PERF_REG_X86_R15, - /* These are the limits for the GPRs. */ - PERF_REG_X86_32_MAX = PERF_REG_X86_GS + 1, - PERF_REG_X86_64_MAX = PERF_REG_X86_R15 + 1, - - /* These all need two bits set because they are 128bit */ - PERF_REG_X86_XMM0 = 32, - PERF_REG_X86_XMM1 = 34, - PERF_REG_X86_XMM2 = 36, - PERF_REG_X86_XMM3 = 38, - PERF_REG_X86_XMM4 = 40, - PERF_REG_X86_XMM5 = 42, - PERF_REG_X86_XMM6 = 44, - PERF_REG_X86_XMM7 = 46, - PERF_REG_X86_XMM8 = 48, - PERF_REG_X86_XMM9 = 50, - PERF_REG_X86_XMM10 = 52, - PERF_REG_X86_XMM11 = 54, - PERF_REG_X86_XMM12 = 56, - PERF_REG_X86_XMM13 = 58, - PERF_REG_X86_XMM14 = 60, - PERF_REG_X86_XMM15 = 62, - - /* These include both GPRs and XMMX registers */ - PERF_REG_X86_XMM_MAX = PERF_REG_X86_XMM15 + 2, -}; - -#define PERF_REG_EXTENDED_MASK (~((1ULL << PERF_REG_X86_XMM0) - 1)) - -#endif /* _ASM_X86_PERF_REGS_H */ diff --git a/contrib/libs/linux-headers/asm/poll.h b/contrib/libs/linux-headers/asm/poll.h deleted file mode 100644 index c98509d3149..00000000000 --- a/contrib/libs/linux-headers/asm/poll.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/poll.h> diff --git a/contrib/libs/linux-headers/asm/posix_types.h b/contrib/libs/linux-headers/asm/posix_types.h deleted file mode 100644 index a7b2c94b277..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "posix_types_arm.h" -#elif defined(__aarch64__) -#include "posix_types_arm64.h" -#elif defined(__powerpc__) -#include "posix_types_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "posix_types_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/posix_types_32.h b/contrib/libs/linux-headers/asm/posix_types_32.h deleted file mode 100644 index 07b06099750..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types_32.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "posix_types_32_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/posix_types_32_x86.h b/contrib/libs/linux-headers/asm/posix_types_32_x86.h deleted file mode 100644 index 840659f4b96..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types_32_x86.h +++ /dev/null @@ -1,26 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_POSIX_TYPES_32_H -#define _ASM_X86_POSIX_TYPES_32_H - -/* - * This file is generally used by user-level software, so you need to - * be a little careful about namespace pollution etc. Also, we cannot - * assume GCC is being used. - */ - -typedef unsigned short __kernel_mode_t; -#define __kernel_mode_t __kernel_mode_t - -typedef unsigned short __kernel_ipc_pid_t; -#define __kernel_ipc_pid_t __kernel_ipc_pid_t - -typedef unsigned short __kernel_uid_t; -typedef unsigned short __kernel_gid_t; -#define __kernel_uid_t __kernel_uid_t - -typedef unsigned short __kernel_old_dev_t; -#define __kernel_old_dev_t __kernel_old_dev_t - -#include <asm-generic/posix_types.h> - -#endif /* _ASM_X86_POSIX_TYPES_32_H */ diff --git a/contrib/libs/linux-headers/asm/posix_types_64.h b/contrib/libs/linux-headers/asm/posix_types_64.h deleted file mode 100644 index 3b0ed29e77f..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types_64.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "posix_types_64_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/posix_types_64_x86.h b/contrib/libs/linux-headers/asm/posix_types_64_x86.h deleted file mode 100644 index 515afb8059c..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types_64_x86.h +++ /dev/null @@ -1,20 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_POSIX_TYPES_64_H -#define _ASM_X86_POSIX_TYPES_64_H - -/* - * This file is generally used by user-level software, so you need to - * be a little careful about namespace pollution etc. Also, we cannot - * assume GCC is being used. - */ - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; -#define __kernel_old_uid_t __kernel_old_uid_t - -typedef unsigned long __kernel_old_dev_t; -#define __kernel_old_dev_t __kernel_old_dev_t - -#include <asm-generic/posix_types.h> - -#endif /* _ASM_X86_POSIX_TYPES_64_H */ diff --git a/contrib/libs/linux-headers/asm/posix_types_arm.h b/contrib/libs/linux-headers/asm/posix_types_arm.h deleted file mode 100644 index 6bf11ad5d6b..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types_arm.h +++ /dev/null @@ -1,38 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * arch/arm/include/asm/posix_types.h - * - * Copyright (C) 1996-1998 Russell King. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Changelog: - * 27-06-1996 RMK Created - */ -#ifndef __ARCH_ARM_POSIX_TYPES_H -#define __ARCH_ARM_POSIX_TYPES_H - -/* - * This file is generally used by user-level software, so you need to - * be a little careful about namespace pollution etc. Also, we cannot - * assume GCC is being used. - */ - -typedef unsigned short __kernel_mode_t; -#define __kernel_mode_t __kernel_mode_t - -typedef unsigned short __kernel_ipc_pid_t; -#define __kernel_ipc_pid_t __kernel_ipc_pid_t - -typedef unsigned short __kernel_uid_t; -typedef unsigned short __kernel_gid_t; -#define __kernel_uid_t __kernel_uid_t - -typedef unsigned short __kernel_old_dev_t; -#define __kernel_old_dev_t __kernel_old_dev_t - -#include <asm-generic/posix_types.h> - -#endif diff --git a/contrib/libs/linux-headers/asm/posix_types_arm64.h b/contrib/libs/linux-headers/asm/posix_types_arm64.h deleted file mode 100644 index b1c2e0df92d..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types_arm64.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASM_POSIX_TYPES_H -#define __ASM_POSIX_TYPES_H - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; -#define __kernel_old_uid_t __kernel_old_uid_t - -#include <asm-generic/posix_types.h> - -#endif /* __ASM_POSIX_TYPES_H */ diff --git a/contrib/libs/linux-headers/asm/posix_types_powerpc.h b/contrib/libs/linux-headers/asm/posix_types_powerpc.h deleted file mode 100644 index f698400e4bb..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types_powerpc.h +++ /dev/null @@ -1,26 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_POSIX_TYPES_H -#define _ASM_POWERPC_POSIX_TYPES_H - -/* - * This file is generally used by user-level software, so you need to - * be a little careful about namespace pollution etc. Also, we cannot - * assume GCC is being used. - */ - -#ifdef __powerpc64__ -typedef unsigned long __kernel_old_dev_t; -#define __kernel_old_dev_t __kernel_old_dev_t -#else -typedef unsigned int __kernel_size_t; -typedef int __kernel_ssize_t; -typedef long __kernel_ptrdiff_t; -#define __kernel_size_t __kernel_size_t - -typedef short __kernel_ipc_pid_t; -#define __kernel_ipc_pid_t __kernel_ipc_pid_t -#endif - -#include <asm-generic/posix_types.h> - -#endif /* _ASM_POWERPC_POSIX_TYPES_H */ diff --git a/contrib/libs/linux-headers/asm/posix_types_x32.h b/contrib/libs/linux-headers/asm/posix_types_x32.h deleted file mode 100644 index 3254895815c..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types_x32.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "posix_types_x32_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/posix_types_x32_x86.h b/contrib/libs/linux-headers/asm/posix_types_x32_x86.h deleted file mode 100644 index f60479b07fc..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types_x32_x86.h +++ /dev/null @@ -1,20 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_POSIX_TYPES_X32_H -#define _ASM_X86_POSIX_TYPES_X32_H - -/* - * This file is only used by user-level software, so you need to - * be a little careful about namespace pollution etc. Also, we cannot - * assume GCC is being used. - * - * These types should generally match the ones used by the 64-bit kernel, - * - */ - -typedef long long __kernel_long_t; -typedef unsigned long long __kernel_ulong_t; -#define __kernel_long_t __kernel_long_t - -#include <asm/posix_types_64.h> - -#endif /* _ASM_X86_POSIX_TYPES_X32_H */ diff --git a/contrib/libs/linux-headers/asm/posix_types_x86.h b/contrib/libs/linux-headers/asm/posix_types_x86.h deleted file mode 100644 index fe9e6aa97b4..00000000000 --- a/contrib/libs/linux-headers/asm/posix_types_x86.h +++ /dev/null @@ -1,8 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -# ifdef __i386__ -# include <asm/posix_types_32.h> -# elif defined(__ILP32__) -# include <asm/posix_types_x32.h> -# else -# include <asm/posix_types_64.h> -# endif diff --git a/contrib/libs/linux-headers/asm/prctl.h b/contrib/libs/linux-headers/asm/prctl.h deleted file mode 100644 index fc4a1cfd370..00000000000 --- a/contrib/libs/linux-headers/asm/prctl.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "prctl_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/prctl_x86.h b/contrib/libs/linux-headers/asm/prctl_x86.h deleted file mode 100644 index 5a6aac9fa41..00000000000 --- a/contrib/libs/linux-headers/asm/prctl_x86.h +++ /dev/null @@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_PRCTL_H -#define _ASM_X86_PRCTL_H - -#define ARCH_SET_GS 0x1001 -#define ARCH_SET_FS 0x1002 -#define ARCH_GET_FS 0x1003 -#define ARCH_GET_GS 0x1004 - -#define ARCH_GET_CPUID 0x1011 -#define ARCH_SET_CPUID 0x1012 - -#define ARCH_MAP_VDSO_X32 0x2001 -#define ARCH_MAP_VDSO_32 0x2002 -#define ARCH_MAP_VDSO_64 0x2003 - -#endif /* _ASM_X86_PRCTL_H */ diff --git a/contrib/libs/linux-headers/asm/processor-flags.h b/contrib/libs/linux-headers/asm/processor-flags.h deleted file mode 100644 index 0c98cc4eda3..00000000000 --- a/contrib/libs/linux-headers/asm/processor-flags.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "processor-flags_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/processor-flags_x86.h b/contrib/libs/linux-headers/asm/processor-flags_x86.h deleted file mode 100644 index aa17036bd42..00000000000 --- a/contrib/libs/linux-headers/asm/processor-flags_x86.h +++ /dev/null @@ -1,166 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_PROCESSOR_FLAGS_H -#define _ASM_X86_PROCESSOR_FLAGS_H -/* Various flags defined: can be included from assembler. */ - -#include <linux/const.h> - -/* - * EFLAGS bits - */ -#define X86_EFLAGS_CF_BIT 0 /* Carry Flag */ -#define X86_EFLAGS_CF _BITUL(X86_EFLAGS_CF_BIT) -#define X86_EFLAGS_FIXED_BIT 1 /* Bit 1 - always on */ -#define X86_EFLAGS_FIXED _BITUL(X86_EFLAGS_FIXED_BIT) -#define X86_EFLAGS_PF_BIT 2 /* Parity Flag */ -#define X86_EFLAGS_PF _BITUL(X86_EFLAGS_PF_BIT) -#define X86_EFLAGS_AF_BIT 4 /* Auxiliary carry Flag */ -#define X86_EFLAGS_AF _BITUL(X86_EFLAGS_AF_BIT) -#define X86_EFLAGS_ZF_BIT 6 /* Zero Flag */ -#define X86_EFLAGS_ZF _BITUL(X86_EFLAGS_ZF_BIT) -#define X86_EFLAGS_SF_BIT 7 /* Sign Flag */ -#define X86_EFLAGS_SF _BITUL(X86_EFLAGS_SF_BIT) -#define X86_EFLAGS_TF_BIT 8 /* Trap Flag */ -#define X86_EFLAGS_TF _BITUL(X86_EFLAGS_TF_BIT) -#define X86_EFLAGS_IF_BIT 9 /* Interrupt Flag */ -#define X86_EFLAGS_IF _BITUL(X86_EFLAGS_IF_BIT) -#define X86_EFLAGS_DF_BIT 10 /* Direction Flag */ -#define X86_EFLAGS_DF _BITUL(X86_EFLAGS_DF_BIT) -#define X86_EFLAGS_OF_BIT 11 /* Overflow Flag */ -#define X86_EFLAGS_OF _BITUL(X86_EFLAGS_OF_BIT) -#define X86_EFLAGS_IOPL_BIT 12 /* I/O Privilege Level (2 bits) */ -#define X86_EFLAGS_IOPL (_AC(3,UL) << X86_EFLAGS_IOPL_BIT) -#define X86_EFLAGS_NT_BIT 14 /* Nested Task */ -#define X86_EFLAGS_NT _BITUL(X86_EFLAGS_NT_BIT) -#define X86_EFLAGS_RF_BIT 16 /* Resume Flag */ -#define X86_EFLAGS_RF _BITUL(X86_EFLAGS_RF_BIT) -#define X86_EFLAGS_VM_BIT 17 /* Virtual Mode */ -#define X86_EFLAGS_VM _BITUL(X86_EFLAGS_VM_BIT) -#define X86_EFLAGS_AC_BIT 18 /* Alignment Check/Access Control */ -#define X86_EFLAGS_AC _BITUL(X86_EFLAGS_AC_BIT) -#define X86_EFLAGS_VIF_BIT 19 /* Virtual Interrupt Flag */ -#define X86_EFLAGS_VIF _BITUL(X86_EFLAGS_VIF_BIT) -#define X86_EFLAGS_VIP_BIT 20 /* Virtual Interrupt Pending */ -#define X86_EFLAGS_VIP _BITUL(X86_EFLAGS_VIP_BIT) -#define X86_EFLAGS_ID_BIT 21 /* CPUID detection */ -#define X86_EFLAGS_ID _BITUL(X86_EFLAGS_ID_BIT) - -/* - * Basic CPU control in CR0 - */ -#define X86_CR0_PE_BIT 0 /* Protection Enable */ -#define X86_CR0_PE _BITUL(X86_CR0_PE_BIT) -#define X86_CR0_MP_BIT 1 /* Monitor Coprocessor */ -#define X86_CR0_MP _BITUL(X86_CR0_MP_BIT) -#define X86_CR0_EM_BIT 2 /* Emulation */ -#define X86_CR0_EM _BITUL(X86_CR0_EM_BIT) -#define X86_CR0_TS_BIT 3 /* Task Switched */ -#define X86_CR0_TS _BITUL(X86_CR0_TS_BIT) -#define X86_CR0_ET_BIT 4 /* Extension Type */ -#define X86_CR0_ET _BITUL(X86_CR0_ET_BIT) -#define X86_CR0_NE_BIT 5 /* Numeric Error */ -#define X86_CR0_NE _BITUL(X86_CR0_NE_BIT) -#define X86_CR0_WP_BIT 16 /* Write Protect */ -#define X86_CR0_WP _BITUL(X86_CR0_WP_BIT) -#define X86_CR0_AM_BIT 18 /* Alignment Mask */ -#define X86_CR0_AM _BITUL(X86_CR0_AM_BIT) -#define X86_CR0_NW_BIT 29 /* Not Write-through */ -#define X86_CR0_NW _BITUL(X86_CR0_NW_BIT) -#define X86_CR0_CD_BIT 30 /* Cache Disable */ -#define X86_CR0_CD _BITUL(X86_CR0_CD_BIT) -#define X86_CR0_PG_BIT 31 /* Paging */ -#define X86_CR0_PG _BITUL(X86_CR0_PG_BIT) - -/* - * Paging options in CR3 - */ -#define X86_CR3_PWT_BIT 3 /* Page Write Through */ -#define X86_CR3_PWT _BITUL(X86_CR3_PWT_BIT) -#define X86_CR3_PCD_BIT 4 /* Page Cache Disable */ -#define X86_CR3_PCD _BITUL(X86_CR3_PCD_BIT) - -#define X86_CR3_PCID_BITS 12 -#define X86_CR3_PCID_MASK (_AC((1UL << X86_CR3_PCID_BITS) - 1, UL)) - -#define X86_CR3_PCID_NOFLUSH_BIT 63 /* Preserve old PCID */ -#define X86_CR3_PCID_NOFLUSH _BITULL(X86_CR3_PCID_NOFLUSH_BIT) - -/* - * Intel CPU features in CR4 - */ -#define X86_CR4_VME_BIT 0 /* enable vm86 extensions */ -#define X86_CR4_VME _BITUL(X86_CR4_VME_BIT) -#define X86_CR4_PVI_BIT 1 /* virtual interrupts flag enable */ -#define X86_CR4_PVI _BITUL(X86_CR4_PVI_BIT) -#define X86_CR4_TSD_BIT 2 /* disable time stamp at ipl 3 */ -#define X86_CR4_TSD _BITUL(X86_CR4_TSD_BIT) -#define X86_CR4_DE_BIT 3 /* enable debugging extensions */ -#define X86_CR4_DE _BITUL(X86_CR4_DE_BIT) -#define X86_CR4_PSE_BIT 4 /* enable page size extensions */ -#define X86_CR4_PSE _BITUL(X86_CR4_PSE_BIT) -#define X86_CR4_PAE_BIT 5 /* enable physical address extensions */ -#define X86_CR4_PAE _BITUL(X86_CR4_PAE_BIT) -#define X86_CR4_MCE_BIT 6 /* Machine check enable */ -#define X86_CR4_MCE _BITUL(X86_CR4_MCE_BIT) -#define X86_CR4_PGE_BIT 7 /* enable global pages */ -#define X86_CR4_PGE _BITUL(X86_CR4_PGE_BIT) -#define X86_CR4_PCE_BIT 8 /* enable performance counters at ipl 3 */ -#define X86_CR4_PCE _BITUL(X86_CR4_PCE_BIT) -#define X86_CR4_OSFXSR_BIT 9 /* enable fast FPU save and restore */ -#define X86_CR4_OSFXSR _BITUL(X86_CR4_OSFXSR_BIT) -#define X86_CR4_OSXMMEXCPT_BIT 10 /* enable unmasked SSE exceptions */ -#define X86_CR4_OSXMMEXCPT _BITUL(X86_CR4_OSXMMEXCPT_BIT) -#define X86_CR4_UMIP_BIT 11 /* enable UMIP support */ -#define X86_CR4_UMIP _BITUL(X86_CR4_UMIP_BIT) -#define X86_CR4_LA57_BIT 12 /* enable 5-level page tables */ -#define X86_CR4_LA57 _BITUL(X86_CR4_LA57_BIT) -#define X86_CR4_VMXE_BIT 13 /* enable VMX virtualization */ -#define X86_CR4_VMXE _BITUL(X86_CR4_VMXE_BIT) -#define X86_CR4_SMXE_BIT 14 /* enable safer mode (TXT) */ -#define X86_CR4_SMXE _BITUL(X86_CR4_SMXE_BIT) -#define X86_CR4_FSGSBASE_BIT 16 /* enable RDWRFSGS support */ -#define X86_CR4_FSGSBASE _BITUL(X86_CR4_FSGSBASE_BIT) -#define X86_CR4_PCIDE_BIT 17 /* enable PCID support */ -#define X86_CR4_PCIDE _BITUL(X86_CR4_PCIDE_BIT) -#define X86_CR4_OSXSAVE_BIT 18 /* enable xsave and xrestore */ -#define X86_CR4_OSXSAVE _BITUL(X86_CR4_OSXSAVE_BIT) -#define X86_CR4_SMEP_BIT 20 /* enable SMEP support */ -#define X86_CR4_SMEP _BITUL(X86_CR4_SMEP_BIT) -#define X86_CR4_SMAP_BIT 21 /* enable SMAP support */ -#define X86_CR4_SMAP _BITUL(X86_CR4_SMAP_BIT) -#define X86_CR4_PKE_BIT 22 /* enable Protection Keys support */ -#define X86_CR4_PKE _BITUL(X86_CR4_PKE_BIT) - -/* - * x86-64 Task Priority Register, CR8 - */ -#define X86_CR8_TPR _AC(0x0000000f,UL) /* task priority register */ - -/* - * AMD and Transmeta use MSRs for configuration; see <asm/msr-index.h> - */ - -/* - * NSC/Cyrix CPU configuration register indexes - */ -#define CX86_PCR0 0x20 -#define CX86_GCR 0xb8 -#define CX86_CCR0 0xc0 -#define CX86_CCR1 0xc1 -#define CX86_CCR2 0xc2 -#define CX86_CCR3 0xc3 -#define CX86_CCR4 0xe8 -#define CX86_CCR5 0xe9 -#define CX86_CCR6 0xea -#define CX86_CCR7 0xeb -#define CX86_PCR1 0xf0 -#define CX86_DIR0 0xfe -#define CX86_DIR1 0xff -#define CX86_ARR_BASE 0xc4 -#define CX86_RCR_BASE 0xdc - -#define CR0_STATE (X86_CR0_PE | X86_CR0_MP | X86_CR0_ET | \ - X86_CR0_NE | X86_CR0_WP | X86_CR0_AM | \ - X86_CR0_PG) - -#endif /* _ASM_X86_PROCESSOR_FLAGS_H */ diff --git a/contrib/libs/linux-headers/asm/ps3fb.h b/contrib/libs/linux-headers/asm/ps3fb.h deleted file mode 100644 index 2f891054cb7..00000000000 --- a/contrib/libs/linux-headers/asm/ps3fb.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "ps3fb_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/ps3fb_powerpc.h b/contrib/libs/linux-headers/asm/ps3fb_powerpc.h deleted file mode 100644 index fd7e3a0d35d..00000000000 --- a/contrib/libs/linux-headers/asm/ps3fb_powerpc.h +++ /dev/null @@ -1,46 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2006 Sony Computer Entertainment Inc. - * Copyright 2006, 2007 Sony Corporation - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published - * by the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#ifndef _ASM_POWERPC_PS3FB_H_ -#define _ASM_POWERPC_PS3FB_H_ - -#include <linux/types.h> -#include <linux/ioctl.h> - -/* ioctl */ -#define PS3FB_IOCTL_SETMODE _IOW('r', 1, int) /* set video mode */ -#define PS3FB_IOCTL_GETMODE _IOR('r', 2, int) /* get video mode */ -#define PS3FB_IOCTL_SCREENINFO _IOR('r', 3, int) /* get screen info */ -#define PS3FB_IOCTL_ON _IO('r', 4) /* use IOCTL_FSEL */ -#define PS3FB_IOCTL_OFF _IO('r', 5) /* return to normal-flip */ -#define PS3FB_IOCTL_FSEL _IOW('r', 6, int) /* blit and flip request */ - -#ifndef FBIO_WAITFORVSYNC -#define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) /* wait for vsync */ -#endif - -struct ps3fb_ioctl_res { - __u32 xres; /* frame buffer x_size */ - __u32 yres; /* frame buffer y_size */ - __u32 xoff; /* margine x */ - __u32 yoff; /* margine y */ - __u32 num_frames; /* num of frame buffers */ -}; - -#endif /* _ASM_POWERPC_PS3FB_H_ */ diff --git a/contrib/libs/linux-headers/asm/ptrace-abi.h b/contrib/libs/linux-headers/asm/ptrace-abi.h deleted file mode 100644 index a56485ba874..00000000000 --- a/contrib/libs/linux-headers/asm/ptrace-abi.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "ptrace-abi_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/ptrace-abi_x86.h b/contrib/libs/linux-headers/asm/ptrace-abi_x86.h deleted file mode 100644 index 16074b9c93b..00000000000 --- a/contrib/libs/linux-headers/asm/ptrace-abi_x86.h +++ /dev/null @@ -1,94 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_PTRACE_ABI_H -#define _ASM_X86_PTRACE_ABI_H - -#ifdef __i386__ - -#define EBX 0 -#define ECX 1 -#define EDX 2 -#define ESI 3 -#define EDI 4 -#define EBP 5 -#define EAX 6 -#define DS 7 -#define ES 8 -#define FS 9 -#define GS 10 -#define ORIG_EAX 11 -#define EIP 12 -#define CS 13 -#define EFL 14 -#define UESP 15 -#define SS 16 -#define FRAME_SIZE 17 - -#else /* __i386__ */ - -#if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS) -/* - * C ABI says these regs are callee-preserved. They aren't saved on kernel entry - * unless syscall needs a complete, fully filled "struct pt_regs". - */ -#define R15 0 -#define R14 8 -#define R13 16 -#define R12 24 -#define RBP 32 -#define RBX 40 -/* These regs are callee-clobbered. Always saved on kernel entry. */ -#define R11 48 -#define R10 56 -#define R9 64 -#define R8 72 -#define RAX 80 -#define RCX 88 -#define RDX 96 -#define RSI 104 -#define RDI 112 -/* - * On syscall entry, this is syscall#. On CPU exception, this is error code. - * On hw interrupt, it's IRQ number: - */ -#define ORIG_RAX 120 -/* Return frame for iretq */ -#define RIP 128 -#define CS 136 -#define EFLAGS 144 -#define RSP 152 -#define SS 160 -#endif /* __ASSEMBLY__ */ - -/* top of stack page */ -#define FRAME_SIZE 168 - -#endif /* !__i386__ */ - -/* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ -#define PTRACE_GETREGS 12 -#define PTRACE_SETREGS 13 -#define PTRACE_GETFPREGS 14 -#define PTRACE_SETFPREGS 15 -#define PTRACE_GETFPXREGS 18 -#define PTRACE_SETFPXREGS 19 - -#define PTRACE_OLDSETOPTIONS 21 - -/* only useful for access 32bit programs / kernels */ -#define PTRACE_GET_THREAD_AREA 25 -#define PTRACE_SET_THREAD_AREA 26 - -#ifdef __x86_64__ -# define PTRACE_ARCH_PRCTL 30 -#endif - -#define PTRACE_SYSEMU 31 -#define PTRACE_SYSEMU_SINGLESTEP 32 - -#define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */ - -#ifndef __ASSEMBLY__ -#include <linux/types.h> -#endif - -#endif /* _ASM_X86_PTRACE_ABI_H */ diff --git a/contrib/libs/linux-headers/asm/ptrace.h b/contrib/libs/linux-headers/asm/ptrace.h deleted file mode 100644 index 449121c5bdf..00000000000 --- a/contrib/libs/linux-headers/asm/ptrace.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "ptrace_arm.h" -#elif defined(__aarch64__) -#include "ptrace_arm64.h" -#elif defined(__powerpc__) -#include "ptrace_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "ptrace_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/ptrace_arm.h b/contrib/libs/linux-headers/asm/ptrace_arm.h deleted file mode 100644 index c9b966c8f39..00000000000 --- a/contrib/libs/linux-headers/asm/ptrace_arm.h +++ /dev/null @@ -1,148 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * arch/arm/include/asm/ptrace.h - * - * Copyright (C) 1996-2003 Russell King - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ -#ifndef __ASM_ARM_PTRACE_H -#define __ASM_ARM_PTRACE_H - -#include <asm/hwcap.h> - -#define PTRACE_GETREGS 12 -#define PTRACE_SETREGS 13 -#define PTRACE_GETFPREGS 14 -#define PTRACE_SETFPREGS 15 -/* PTRACE_ATTACH is 16 */ -/* PTRACE_DETACH is 17 */ -#define PTRACE_GETWMMXREGS 18 -#define PTRACE_SETWMMXREGS 19 -/* 20 is unused */ -#define PTRACE_OLDSETOPTIONS 21 -#define PTRACE_GET_THREAD_AREA 22 -#define PTRACE_SET_SYSCALL 23 -/* PTRACE_SYSCALL is 24 */ -#define PTRACE_GETCRUNCHREGS 25 -#define PTRACE_SETCRUNCHREGS 26 -#define PTRACE_GETVFPREGS 27 -#define PTRACE_SETVFPREGS 28 -#define PTRACE_GETHBPREGS 29 -#define PTRACE_SETHBPREGS 30 -#define PTRACE_GETFDPIC 31 - -#define PTRACE_GETFDPIC_EXEC 0 -#define PTRACE_GETFDPIC_INTERP 1 - -/* - * PSR bits - * Note on V7M there is no mode contained in the PSR - */ -#define USR26_MODE 0x00000000 -#define FIQ26_MODE 0x00000001 -#define IRQ26_MODE 0x00000002 -#define SVC26_MODE 0x00000003 -#define USR_MODE 0x00000010 -#define SVC_MODE 0x00000013 -#define FIQ_MODE 0x00000011 -#define IRQ_MODE 0x00000012 -#define MON_MODE 0x00000016 -#define ABT_MODE 0x00000017 -#define HYP_MODE 0x0000001a -#define UND_MODE 0x0000001b -#define SYSTEM_MODE 0x0000001f -#define MODE32_BIT 0x00000010 -#define MODE_MASK 0x0000001f - -#define V4_PSR_T_BIT 0x00000020 /* >= V4T, but not V7M */ -#define V7M_PSR_T_BIT 0x01000000 -/* for compatibility */ -#define PSR_T_BIT V4_PSR_T_BIT - -#define PSR_F_BIT 0x00000040 /* >= V4, but not V7M */ -#define PSR_I_BIT 0x00000080 /* >= V4, but not V7M */ -#define PSR_A_BIT 0x00000100 /* >= V6, but not V7M */ -#define PSR_E_BIT 0x00000200 /* >= V6, but not V7M */ -#define PSR_J_BIT 0x01000000 /* >= V5J, but not V7M */ -#define PSR_Q_BIT 0x08000000 /* >= V5E, including V7M */ -#define PSR_V_BIT 0x10000000 -#define PSR_C_BIT 0x20000000 -#define PSR_Z_BIT 0x40000000 -#define PSR_N_BIT 0x80000000 - -/* - * Groups of PSR bits - */ -#define PSR_f 0xff000000 /* Flags */ -#define PSR_s 0x00ff0000 /* Status */ -#define PSR_x 0x0000ff00 /* Extension */ -#define PSR_c 0x000000ff /* Control */ - -/* - * ARMv7 groups of PSR bits - */ -#define APSR_MASK 0xf80f0000 /* N, Z, C, V, Q and GE flags */ -#define PSR_ISET_MASK 0x01000010 /* ISA state (J, T) mask */ -#define PSR_IT_MASK 0x0600fc00 /* If-Then execution state mask */ -#define PSR_ENDIAN_MASK 0x00000200 /* Endianness state mask */ - -/* - * Default endianness state - */ -#ifdef CONFIG_CPU_ENDIAN_BE8 -#define PSR_ENDSTATE PSR_E_BIT -#else -#define PSR_ENDSTATE 0 -#endif - -/* - * These are 'magic' values for PTRACE_PEEKUSR that return info about where a - * process is located in memory. - */ -#define PT_TEXT_ADDR 0x10000 -#define PT_DATA_ADDR 0x10004 -#define PT_TEXT_END_ADDR 0x10008 - -#ifndef __ASSEMBLY__ - -/* - * This struct defines the way the registers are stored on the - * stack during a system call. Note that sizeof(struct pt_regs) - * has to be a multiple of 8. - */ -struct pt_regs { - long uregs[18]; -}; - -#define ARM_cpsr uregs[16] -#define ARM_pc uregs[15] -#define ARM_lr uregs[14] -#define ARM_sp uregs[13] -#define ARM_ip uregs[12] -#define ARM_fp uregs[11] -#define ARM_r10 uregs[10] -#define ARM_r9 uregs[9] -#define ARM_r8 uregs[8] -#define ARM_r7 uregs[7] -#define ARM_r6 uregs[6] -#define ARM_r5 uregs[5] -#define ARM_r4 uregs[4] -#define ARM_r3 uregs[3] -#define ARM_r2 uregs[2] -#define ARM_r1 uregs[1] -#define ARM_r0 uregs[0] -#define ARM_ORIG_r0 uregs[17] - -/* - * The size of the user-visible VFP state as seen by PTRACE_GET/SETVFPREGS - * and core dumps. - */ -#define ARM_VFPREGS_SIZE ( 32 * 8 /*fpregs*/ + 4 /*fpscr*/ ) - - -#endif /* __ASSEMBLY__ */ - -#endif /* __ASM_ARM_PTRACE_H */ diff --git a/contrib/libs/linux-headers/asm/ptrace_arm64.h b/contrib/libs/linux-headers/asm/ptrace_arm64.h deleted file mode 100644 index 0f8ae8899b2..00000000000 --- a/contrib/libs/linux-headers/asm/ptrace_arm64.h +++ /dev/null @@ -1,257 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Based on arch/arm/include/asm/ptrace.h - * - * Copyright (C) 1996-2003 Russell King - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_PTRACE_H -#define __ASM_PTRACE_H - -#include <linux/types.h> - -#include <asm/hwcap.h> -#include <asm/sve_context.h> - - -/* - * PSR bits - */ -#define PSR_MODE_EL0t 0x00000000 -#define PSR_MODE_EL1t 0x00000004 -#define PSR_MODE_EL1h 0x00000005 -#define PSR_MODE_EL2t 0x00000008 -#define PSR_MODE_EL2h 0x00000009 -#define PSR_MODE_EL3t 0x0000000c -#define PSR_MODE_EL3h 0x0000000d -#define PSR_MODE_MASK 0x0000000f - -/* AArch32 CPSR bits */ -#define PSR_MODE32_BIT 0x00000010 - -/* AArch64 SPSR bits */ -#define PSR_F_BIT 0x00000040 -#define PSR_I_BIT 0x00000080 -#define PSR_A_BIT 0x00000100 -#define PSR_D_BIT 0x00000200 -#define PSR_SSBS_BIT 0x00001000 -#define PSR_PAN_BIT 0x00400000 -#define PSR_UAO_BIT 0x00800000 -#define PSR_DIT_BIT 0x01000000 -#define PSR_V_BIT 0x10000000 -#define PSR_C_BIT 0x20000000 -#define PSR_Z_BIT 0x40000000 -#define PSR_N_BIT 0x80000000 - -/* - * Groups of PSR bits - */ -#define PSR_f 0xff000000 /* Flags */ -#define PSR_s 0x00ff0000 /* Status */ -#define PSR_x 0x0000ff00 /* Extension */ -#define PSR_c 0x000000ff /* Control */ - -/* syscall emulation path in ptrace */ -#define PTRACE_SYSEMU 31 -#define PTRACE_SYSEMU_SINGLESTEP 32 - -#ifndef __ASSEMBLY__ - -/* - * User structures for general purpose, floating point and debug registers. - */ -struct user_pt_regs { - __u64 regs[31]; - __u64 sp; - __u64 pc; - __u64 pstate; -}; - -struct user_fpsimd_state { - __uint128_t vregs[32]; - __u32 fpsr; - __u32 fpcr; - __u32 __reserved[2]; -}; - -struct user_hwdebug_state { - __u32 dbg_info; - __u32 pad; - struct { - __u64 addr; - __u32 ctrl; - __u32 pad; - } dbg_regs[16]; -}; - -/* SVE/FP/SIMD state (NT_ARM_SVE) */ - -struct user_sve_header { - __u32 size; /* total meaningful regset content in bytes */ - __u32 max_size; /* maxmium possible size for this thread */ - __u16 vl; /* current vector length */ - __u16 max_vl; /* maximum possible vector length */ - __u16 flags; - __u16 __reserved; -}; - -/* Definitions for user_sve_header.flags: */ -#define SVE_PT_REGS_MASK (1 << 0) - -#define SVE_PT_REGS_FPSIMD 0 -#define SVE_PT_REGS_SVE SVE_PT_REGS_MASK - -/* - * Common SVE_PT_* flags: - * These must be kept in sync with prctl interface in <linux/prctl.h> - */ -#define SVE_PT_VL_INHERIT ((1 << 17) /* PR_SVE_VL_INHERIT */ >> 16) -#define SVE_PT_VL_ONEXEC ((1 << 18) /* PR_SVE_SET_VL_ONEXEC */ >> 16) - - -/* - * The remainder of the SVE state follows struct user_sve_header. The - * total size of the SVE state (including header) depends on the - * metadata in the header: SVE_PT_SIZE(vq, flags) gives the total size - * of the state in bytes, including the header. - * - * Refer to <asm/sigcontext.h> for details of how to pass the correct - * "vq" argument to these macros. - */ - -/* Offset from the start of struct user_sve_header to the register data */ -#define SVE_PT_REGS_OFFSET \ - ((sizeof(struct user_sve_header) + (__SVE_VQ_BYTES - 1)) \ - / __SVE_VQ_BYTES * __SVE_VQ_BYTES) - -/* - * The register data content and layout depends on the value of the - * flags field. - */ - -/* - * (flags & SVE_PT_REGS_MASK) == SVE_PT_REGS_FPSIMD case: - * - * The payload starts at offset SVE_PT_FPSIMD_OFFSET, and is of type - * struct user_fpsimd_state. Additional data might be appended in the - * future: use SVE_PT_FPSIMD_SIZE(vq, flags) to compute the total size. - * SVE_PT_FPSIMD_SIZE(vq, flags) will never be less than - * sizeof(struct user_fpsimd_state). - */ - -#define SVE_PT_FPSIMD_OFFSET SVE_PT_REGS_OFFSET - -#define SVE_PT_FPSIMD_SIZE(vq, flags) (sizeof(struct user_fpsimd_state)) - -/* - * (flags & SVE_PT_REGS_MASK) == SVE_PT_REGS_SVE case: - * - * The payload starts at offset SVE_PT_SVE_OFFSET, and is of size - * SVE_PT_SVE_SIZE(vq, flags). - * - * Additional macros describe the contents and layout of the payload. - * For each, SVE_PT_SVE_x_OFFSET(args) is the start offset relative to - * the start of struct user_sve_header, and SVE_PT_SVE_x_SIZE(args) is - * the size in bytes: - * - * x type description - * - ---- ----------- - * ZREGS \ - * ZREG | - * PREGS | refer to <asm/sigcontext.h> - * PREG | - * FFR / - * - * FPSR uint32_t FPSR - * FPCR uint32_t FPCR - * - * Additional data might be appended in the future. - * - * The Z-, P- and FFR registers are represented in memory in an endianness- - * invariant layout which differs from the layout used for the FPSIMD - * V-registers on big-endian systems: see sigcontext.h for more explanation. - */ - -#define SVE_PT_SVE_ZREG_SIZE(vq) __SVE_ZREG_SIZE(vq) -#define SVE_PT_SVE_PREG_SIZE(vq) __SVE_PREG_SIZE(vq) -#define SVE_PT_SVE_FFR_SIZE(vq) __SVE_FFR_SIZE(vq) -#define SVE_PT_SVE_FPSR_SIZE sizeof(__u32) -#define SVE_PT_SVE_FPCR_SIZE sizeof(__u32) - -#define SVE_PT_SVE_OFFSET SVE_PT_REGS_OFFSET - -#define SVE_PT_SVE_ZREGS_OFFSET \ - (SVE_PT_REGS_OFFSET + __SVE_ZREGS_OFFSET) -#define SVE_PT_SVE_ZREG_OFFSET(vq, n) \ - (SVE_PT_REGS_OFFSET + __SVE_ZREG_OFFSET(vq, n)) -#define SVE_PT_SVE_ZREGS_SIZE(vq) \ - (SVE_PT_SVE_ZREG_OFFSET(vq, __SVE_NUM_ZREGS) - SVE_PT_SVE_ZREGS_OFFSET) - -#define SVE_PT_SVE_PREGS_OFFSET(vq) \ - (SVE_PT_REGS_OFFSET + __SVE_PREGS_OFFSET(vq)) -#define SVE_PT_SVE_PREG_OFFSET(vq, n) \ - (SVE_PT_REGS_OFFSET + __SVE_PREG_OFFSET(vq, n)) -#define SVE_PT_SVE_PREGS_SIZE(vq) \ - (SVE_PT_SVE_PREG_OFFSET(vq, __SVE_NUM_PREGS) - \ - SVE_PT_SVE_PREGS_OFFSET(vq)) - -#define SVE_PT_SVE_FFR_OFFSET(vq) \ - (SVE_PT_REGS_OFFSET + __SVE_FFR_OFFSET(vq)) - -#define SVE_PT_SVE_FPSR_OFFSET(vq) \ - ((SVE_PT_SVE_FFR_OFFSET(vq) + SVE_PT_SVE_FFR_SIZE(vq) + \ - (__SVE_VQ_BYTES - 1)) \ - / __SVE_VQ_BYTES * __SVE_VQ_BYTES) -#define SVE_PT_SVE_FPCR_OFFSET(vq) \ - (SVE_PT_SVE_FPSR_OFFSET(vq) + SVE_PT_SVE_FPSR_SIZE) - -/* - * Any future extension appended after FPCR must be aligned to the next - * 128-bit boundary. - */ - -#define SVE_PT_SVE_SIZE(vq, flags) \ - ((SVE_PT_SVE_FPCR_OFFSET(vq) + SVE_PT_SVE_FPCR_SIZE \ - - SVE_PT_SVE_OFFSET + (__SVE_VQ_BYTES - 1)) \ - / __SVE_VQ_BYTES * __SVE_VQ_BYTES) - -#define SVE_PT_SIZE(vq, flags) \ - (((flags) & SVE_PT_REGS_MASK) == SVE_PT_REGS_SVE ? \ - SVE_PT_SVE_OFFSET + SVE_PT_SVE_SIZE(vq, flags) \ - : SVE_PT_FPSIMD_OFFSET + SVE_PT_FPSIMD_SIZE(vq, flags)) - -/* pointer authentication masks (NT_ARM_PAC_MASK) */ - -struct user_pac_mask { - __u64 data_mask; - __u64 insn_mask; -}; - -/* pointer authentication keys (NT_ARM_PACA_KEYS, NT_ARM_PACG_KEYS) */ - -struct user_pac_address_keys { - __uint128_t apiakey; - __uint128_t apibkey; - __uint128_t apdakey; - __uint128_t apdbkey; -}; - -struct user_pac_generic_keys { - __uint128_t apgakey; -}; - -#endif /* __ASSEMBLY__ */ - -#endif /* __ASM_PTRACE_H */ diff --git a/contrib/libs/linux-headers/asm/ptrace_powerpc.h b/contrib/libs/linux-headers/asm/ptrace_powerpc.h deleted file mode 100644 index 7a0b38dfc94..00000000000 --- a/contrib/libs/linux-headers/asm/ptrace_powerpc.h +++ /dev/null @@ -1,267 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * Copyright (C) 2001 PPC64 Team, IBM Corp - * - * This struct defines the way the registers are stored on the - * kernel stack during a system call or other kernel entry. - * - * this should only contain __volatile__ regs - * since we can keep non-volatile in the thread_struct - * should set this up when only volatiles are saved - * by intr code. - * - * Since this is going on the stack, *CARE MUST BE TAKEN* to insure - * that the overall structure is a multiple of 16 bytes in length. - * - * Note that the offsets of the fields in this struct correspond with - * the PT_* values below. This simplifies arch/powerpc/kernel/ptrace.c. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -#ifndef _ASM_POWERPC_PTRACE_H -#define _ASM_POWERPC_PTRACE_H - - -#include <linux/types.h> - -#ifndef __ASSEMBLY__ - -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; -#ifdef __powerpc64__ - unsigned long softe; /* Soft enabled/disabled */ -#else - unsigned long mq; /* 601 only (not used at present) */ - /* Used on APUS to hold IPL value. */ -#endif - unsigned long trap; /* Reason for being here */ - /* N.B. for critical exceptions on 4xx, the dar and dsisr - fields are overloaded to hold srr0 and srr1. */ - unsigned long dar; /* Fault registers */ - unsigned long dsisr; /* on 4xx/Book-E used for ESR */ - unsigned long result; /* Result of a system call */ -}; - -#endif /* __ASSEMBLY__ */ - - -/* - * 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_ORIG_R3 34 -#define PT_CTR 35 -#define PT_LNK 36 -#define PT_XER 37 -#define PT_CCR 38 -#ifndef __powerpc64__ -#define PT_MQ 39 -#else -#define PT_SOFTE 39 -#endif -#define PT_TRAP 40 -#define PT_DAR 41 -#define PT_DSISR 42 -#define PT_RESULT 43 -#define PT_DSCR 44 -#define PT_REGS_COUNT 44 - -#define PT_FPR0 48 /* each FP reg occupies 2 slots in this space */ - -#ifndef __powerpc64__ - -#define PT_FPR31 (PT_FPR0 + 2*31) -#define PT_FPSCR (PT_FPR0 + 2*32 + 1) - -#else /* __powerpc64__ */ - -#define PT_FPSCR (PT_FPR0 + 32) /* each FP reg occupies 1 slot in 64-bit space */ - - -#define PT_VR0 82 /* each Vector reg occupies 2 slots in 64-bit */ -#define PT_VSCR (PT_VR0 + 32*2 + 1) -#define PT_VRSAVE (PT_VR0 + 33*2) - - -/* - * Only store first 32 VSRs here. The second 32 VSRs in VR0-31 - */ -#define PT_VSR0 150 /* each VSR reg occupies 2 slots in 64-bit */ -#define PT_VSR31 (PT_VSR0 + 2*31) -#endif /* __powerpc64__ */ - -/* - * Get/set all the altivec registers v0..v31, vscr, vrsave, in one go. - * The transfer totals 34 quadword. Quadwords 0-31 contain the - * corresponding vector registers. Quadword 32 contains the vscr as the - * last word (offset 12) within that quadword. Quadword 33 contains the - * vrsave as the first word (offset 0) within the quadword. - * - * This definition of the VMX state is compatible with the current PPC32 - * ptrace interface. This allows signal handling and ptrace to use the same - * structures. This also simplifies the implementation of a bi-arch - * (combined (32- and 64-bit) gdb. - */ -#define PTRACE_GETVRREGS 0x12 -#define PTRACE_SETVRREGS 0x13 - -/* Get/set all the upper 32-bits of the SPE registers, accumulator, and - * spefscr, in one go */ -#define PTRACE_GETEVRREGS 0x14 -#define PTRACE_SETEVRREGS 0x15 - -/* Get the first 32 128bit VSX registers */ -#define PTRACE_GETVSRREGS 0x1b -#define PTRACE_SETVSRREGS 0x1c - -/* Syscall emulation defines */ -#define PTRACE_SYSEMU 0x1d -#define PTRACE_SYSEMU_SINGLESTEP 0x1e - -/* - * Get or set a debug register. The first 16 are DABR registers and the - * second 16 are IABR registers. - */ -#define PTRACE_GET_DEBUGREG 0x19 -#define PTRACE_SET_DEBUGREG 0x1a - -/* (new) PTRACE requests using the same numbers as x86 and the same - * argument ordering. Additionally, they support more registers too - */ -#define PTRACE_GETREGS 0xc -#define PTRACE_SETREGS 0xd -#define PTRACE_GETFPREGS 0xe -#define PTRACE_SETFPREGS 0xf -#define PTRACE_GETREGS64 0x16 -#define PTRACE_SETREGS64 0x17 - -/* Calls to trace a 64bit program from a 32bit program */ -#define PPC_PTRACE_PEEKTEXT_3264 0x95 -#define PPC_PTRACE_PEEKDATA_3264 0x94 -#define PPC_PTRACE_POKETEXT_3264 0x93 -#define PPC_PTRACE_POKEDATA_3264 0x92 -#define PPC_PTRACE_PEEKUSR_3264 0x91 -#define PPC_PTRACE_POKEUSR_3264 0x90 - -#define PTRACE_SINGLEBLOCK 0x100 /* resume execution until next branch */ - -#define PPC_PTRACE_GETHWDBGINFO 0x89 -#define PPC_PTRACE_SETHWDEBUG 0x88 -#define PPC_PTRACE_DELHWDEBUG 0x87 - -#ifndef __ASSEMBLY__ - -struct ppc_debug_info { - __u32 version; /* Only version 1 exists to date */ - __u32 num_instruction_bps; - __u32 num_data_bps; - __u32 num_condition_regs; - __u32 data_bp_alignment; - __u32 sizeof_condition; /* size of the DVC register */ - __u64 features; -}; - -#endif /* __ASSEMBLY__ */ - -/* - * features will have bits indication whether there is support for: - */ -#define PPC_DEBUG_FEATURE_INSN_BP_RANGE 0x0000000000000001 -#define PPC_DEBUG_FEATURE_INSN_BP_MASK 0x0000000000000002 -#define PPC_DEBUG_FEATURE_DATA_BP_RANGE 0x0000000000000004 -#define PPC_DEBUG_FEATURE_DATA_BP_MASK 0x0000000000000008 -#define PPC_DEBUG_FEATURE_DATA_BP_DAWR 0x0000000000000010 - -#ifndef __ASSEMBLY__ - -struct ppc_hw_breakpoint { - __u32 version; /* currently, version must be 1 */ - __u32 trigger_type; /* only some combinations allowed */ - __u32 addr_mode; /* address match mode */ - __u32 condition_mode; /* break/watchpoint condition flags */ - __u64 addr; /* break/watchpoint address */ - __u64 addr2; /* range end or mask */ - __u64 condition_value; /* contents of the DVC register */ -}; - -#endif /* __ASSEMBLY__ */ - -/* - * Trigger Type - */ -#define PPC_BREAKPOINT_TRIGGER_EXECUTE 0x00000001 -#define PPC_BREAKPOINT_TRIGGER_READ 0x00000002 -#define PPC_BREAKPOINT_TRIGGER_WRITE 0x00000004 -#define PPC_BREAKPOINT_TRIGGER_RW \ - (PPC_BREAKPOINT_TRIGGER_READ | PPC_BREAKPOINT_TRIGGER_WRITE) - -/* - * Address Mode - */ -#define PPC_BREAKPOINT_MODE_EXACT 0x00000000 -#define PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE 0x00000001 -#define PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE 0x00000002 -#define PPC_BREAKPOINT_MODE_MASK 0x00000003 - -/* - * Condition Mode - */ -#define PPC_BREAKPOINT_CONDITION_MODE 0x00000003 -#define PPC_BREAKPOINT_CONDITION_NONE 0x00000000 -#define PPC_BREAKPOINT_CONDITION_AND 0x00000001 -#define PPC_BREAKPOINT_CONDITION_EXACT PPC_BREAKPOINT_CONDITION_AND -#define PPC_BREAKPOINT_CONDITION_OR 0x00000002 -#define PPC_BREAKPOINT_CONDITION_AND_OR 0x00000003 -#define PPC_BREAKPOINT_CONDITION_BE_ALL 0x00ff0000 -#define PPC_BREAKPOINT_CONDITION_BE_SHIFT 16 -#define PPC_BREAKPOINT_CONDITION_BE(n) \ - (1<<((n)+PPC_BREAKPOINT_CONDITION_BE_SHIFT)) - -#endif /* _ASM_POWERPC_PTRACE_H */ diff --git a/contrib/libs/linux-headers/asm/ptrace_x86.h b/contrib/libs/linux-headers/asm/ptrace_x86.h deleted file mode 100644 index 26879842cf5..00000000000 --- a/contrib/libs/linux-headers/asm/ptrace_x86.h +++ /dev/null @@ -1,82 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_PTRACE_H -#define _ASM_X86_PTRACE_H - - /* For */ -#include <asm/ptrace-abi.h> -#include <asm/processor-flags.h> - - -#ifndef __ASSEMBLY__ - -#ifdef __i386__ -/* this struct defines the way the registers are stored on the - stack during a system call. */ - - -struct pt_regs { - long ebx; - long ecx; - long edx; - long esi; - long edi; - long ebp; - long eax; - int xds; - int xes; - int xfs; - int xgs; - long orig_eax; - long eip; - int xcs; - long eflags; - long esp; - int xss; -}; - - -#else /* __i386__ */ - - -struct pt_regs { -/* - * C ABI says these regs are callee-preserved. They aren't saved on kernel entry - * unless syscall needs a complete, fully filled "struct pt_regs". - */ - unsigned long r15; - unsigned long r14; - unsigned long r13; - unsigned long r12; - unsigned long rbp; - unsigned long rbx; -/* These regs are callee-clobbered. Always saved on kernel entry. */ - unsigned long r11; - unsigned long r10; - unsigned long r9; - unsigned long r8; - unsigned long rax; - unsigned long rcx; - unsigned long rdx; - unsigned long rsi; - unsigned long rdi; -/* - * On syscall entry, this is syscall#. On CPU exception, this is error code. - * On hw interrupt, it's IRQ number: - */ - unsigned long orig_rax; -/* Return frame for iretq */ - unsigned long rip; - unsigned long cs; - unsigned long eflags; - unsigned long rsp; - unsigned long ss; -/* top of stack page */ -}; - -#endif /* !__i386__ */ - - - -#endif /* !__ASSEMBLY__ */ - -#endif /* _ASM_X86_PTRACE_H */ diff --git a/contrib/libs/linux-headers/asm/resource.h b/contrib/libs/linux-headers/asm/resource.h deleted file mode 100644 index 04bc4db8921..00000000000 --- a/contrib/libs/linux-headers/asm/resource.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/resource.h> diff --git a/contrib/libs/linux-headers/asm/sembuf.h b/contrib/libs/linux-headers/asm/sembuf.h deleted file mode 100644 index 56b339dca29..00000000000 --- a/contrib/libs/linux-headers/asm/sembuf.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "sembuf_arm.h" -#elif defined(__aarch64__) -#include "sembuf_arm64.h" -#elif defined(__powerpc__) -#include "sembuf_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "sembuf_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/sembuf_arm.h b/contrib/libs/linux-headers/asm/sembuf_arm.h deleted file mode 100644 index 7673b83cfef..00000000000 --- a/contrib/libs/linux-headers/asm/sembuf_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/sembuf.h> diff --git a/contrib/libs/linux-headers/asm/sembuf_arm64.h b/contrib/libs/linux-headers/asm/sembuf_arm64.h deleted file mode 100644 index 7673b83cfef..00000000000 --- a/contrib/libs/linux-headers/asm/sembuf_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/sembuf.h> diff --git a/contrib/libs/linux-headers/asm/sembuf_powerpc.h b/contrib/libs/linux-headers/asm/sembuf_powerpc.h deleted file mode 100644 index 85e96ccb5f0..00000000000 --- a/contrib/libs/linux-headers/asm/sembuf_powerpc.h +++ /dev/null @@ -1,39 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_SEMBUF_H -#define _ASM_POWERPC_SEMBUF_H - -#include <asm/ipcbuf.h> - -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ - -/* - * The semid64_ds structure for PPC architecture. - * Note extra padding because this structure is passed back and forth - * between kernel and user space. - * - * Pad space is left for: - * - 2 miscellaneous 32/64-bit values - */ - -struct semid64_ds { - struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ -#ifndef __powerpc64__ - unsigned long sem_otime_high; - unsigned long sem_otime; /* last semop time */ - unsigned long sem_ctime_high; - unsigned long sem_ctime; /* last change time */ -#else - long sem_otime; /* last semop time */ - long sem_ctime; /* last change time */ -#endif - unsigned long sem_nsems; /* no. of semaphores in array */ - unsigned long __unused3; - unsigned long __unused4; -}; - -#endif /* _ASM_POWERPC_SEMBUF_H */ diff --git a/contrib/libs/linux-headers/asm/sembuf_x86.h b/contrib/libs/linux-headers/asm/sembuf_x86.h deleted file mode 100644 index 71205b02a19..00000000000 --- a/contrib/libs/linux-headers/asm/sembuf_x86.h +++ /dev/null @@ -1,36 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_SEMBUF_H -#define _ASM_X86_SEMBUF_H - -#include <asm/ipcbuf.h> - -/* - * The semid64_ds structure for x86 architecture. - * Note extra padding because this structure is passed back and forth - * between kernel and user space. - * - * Pad space is left for: - * - 2 miscellaneous 32-bit values - * - * x86_64 and x32 incorrectly added padding here, so the structures - * are still incompatible with the padding on x86. - */ -struct semid64_ds { - struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ -#ifdef __i386__ - unsigned long sem_otime; /* last semop time */ - unsigned long sem_otime_high; - unsigned long sem_ctime; /* last change time */ - unsigned long sem_ctime_high; -#else - __kernel_long_t sem_otime; /* last semop time */ - __kernel_ulong_t __unused1; - __kernel_long_t sem_ctime; /* last change time */ - __kernel_ulong_t __unused2; -#endif - __kernel_ulong_t sem_nsems; /* no. of semaphores in array */ - __kernel_ulong_t __unused3; - __kernel_ulong_t __unused4; -}; - -#endif /* _ASM_X86_SEMBUF_H */ diff --git a/contrib/libs/linux-headers/asm/setup.h b/contrib/libs/linux-headers/asm/setup.h deleted file mode 100644 index 071cf6afd72..00000000000 --- a/contrib/libs/linux-headers/asm/setup.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "setup_arm.h" -#elif defined(__aarch64__) -#include "setup_arm64.h" -#elif defined(__powerpc__) -#include "setup_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "setup_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/setup_arm.h b/contrib/libs/linux-headers/asm/setup_arm.h deleted file mode 100644 index 4a0fab0aae0..00000000000 --- a/contrib/libs/linux-headers/asm/setup_arm.h +++ /dev/null @@ -1,188 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * linux/include/asm/setup.h - * - * Copyright (C) 1997-1999 Russell King - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Structure passed to kernel to tell it about the - * hardware it's running on. See Documentation/arm/setup.rst - * for more info. - */ -#ifndef __ASMARM_SETUP_H -#define __ASMARM_SETUP_H - -#include <linux/types.h> - -#define COMMAND_LINE_SIZE 1024 - -/* The list ends with an ATAG_NONE node. */ -#define ATAG_NONE 0x00000000 - -struct tag_header { - __u32 size; - __u32 tag; -}; - -/* The list must start with an ATAG_CORE node */ -#define ATAG_CORE 0x54410001 - -struct tag_core { - __u32 flags; /* bit 0 = read-only */ - __u32 pagesize; - __u32 rootdev; -}; - -/* it is allowed to have multiple ATAG_MEM nodes */ -#define ATAG_MEM 0x54410002 - -struct tag_mem32 { - __u32 size; - __u32 start; /* physical start address */ -}; - -/* VGA text type displays */ -#define ATAG_VIDEOTEXT 0x54410003 - -struct tag_videotext { - __u8 x; - __u8 y; - __u16 video_page; - __u8 video_mode; - __u8 video_cols; - __u16 video_ega_bx; - __u8 video_lines; - __u8 video_isvga; - __u16 video_points; -}; - -/* describes how the ramdisk will be used in kernel */ -#define ATAG_RAMDISK 0x54410004 - -struct tag_ramdisk { - __u32 flags; /* bit 0 = load, bit 1 = prompt */ - __u32 size; /* decompressed ramdisk size in _kilo_ bytes */ - __u32 start; /* starting block of floppy-based RAM disk image */ -}; - -/* describes where the compressed ramdisk image lives (virtual address) */ -/* - * this one accidentally used virtual addresses - as such, - * it's deprecated. - */ -#define ATAG_INITRD 0x54410005 - -/* describes where the compressed ramdisk image lives (physical address) */ -#define ATAG_INITRD2 0x54420005 - -struct tag_initrd { - __u32 start; /* physical start address */ - __u32 size; /* size of compressed ramdisk image in bytes */ -}; - -/* board serial number. "64 bits should be enough for everybody" */ -#define ATAG_SERIAL 0x54410006 - -struct tag_serialnr { - __u32 low; - __u32 high; -}; - -/* board revision */ -#define ATAG_REVISION 0x54410007 - -struct tag_revision { - __u32 rev; -}; - -/* initial values for vesafb-type framebuffers. see struct screen_info - * in include/linux/tty.h - */ -#define ATAG_VIDEOLFB 0x54410008 - -struct tag_videolfb { - __u16 lfb_width; - __u16 lfb_height; - __u16 lfb_depth; - __u16 lfb_linelength; - __u32 lfb_base; - __u32 lfb_size; - __u8 red_size; - __u8 red_pos; - __u8 green_size; - __u8 green_pos; - __u8 blue_size; - __u8 blue_pos; - __u8 rsvd_size; - __u8 rsvd_pos; -}; - -/* command line: \0 terminated string */ -#define ATAG_CMDLINE 0x54410009 - -struct tag_cmdline { - char cmdline[1]; /* this is the minimum size */ -}; - -/* acorn RiscPC specific information */ -#define ATAG_ACORN 0x41000101 - -struct tag_acorn { - __u32 memc_control_reg; - __u32 vram_pages; - __u8 sounddefault; - __u8 adfsdrives; -}; - -/* footbridge memory clock, see arch/arm/mach-footbridge/arch.c */ -#define ATAG_MEMCLK 0x41000402 - -struct tag_memclk { - __u32 fmemclk; -}; - -struct tag { - struct tag_header hdr; - union { - struct tag_core core; - struct tag_mem32 mem; - struct tag_videotext videotext; - struct tag_ramdisk ramdisk; - struct tag_initrd initrd; - struct tag_serialnr serialnr; - struct tag_revision revision; - struct tag_videolfb videolfb; - struct tag_cmdline cmdline; - - /* - * Acorn specific - */ - struct tag_acorn acorn; - - /* - * DC21285 specific - */ - struct tag_memclk memclk; - } u; -}; - -struct tagtable { - __u32 tag; - int (*parse)(const struct tag *); -}; - -#define tag_member_present(tag,member) \ - ((unsigned long)(&((struct tag *)0L)->member + 1) \ - <= (tag)->hdr.size * 4) - -#define tag_next(t) ((struct tag *)((__u32 *)(t) + (t)->hdr.size)) -#define tag_size(type) ((sizeof(struct tag_header) + sizeof(struct type)) >> 2) - -#define for_each_tag(t,base) \ - for (t = base; t->hdr.size; t = tag_next(t)) - - -#endif /* __ASMARM_SETUP_H */ diff --git a/contrib/libs/linux-headers/asm/setup_arm64.h b/contrib/libs/linux-headers/asm/setup_arm64.h deleted file mode 100644 index 5d703888f35..00000000000 --- a/contrib/libs/linux-headers/asm/setup_arm64.h +++ /dev/null @@ -1,27 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Based on arch/arm/include/asm/setup.h - * - * Copyright (C) 1997-1999 Russell King - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_SETUP_H -#define __ASM_SETUP_H - -#include <linux/types.h> - -#define COMMAND_LINE_SIZE 2048 - -#endif diff --git a/contrib/libs/linux-headers/asm/setup_powerpc.h b/contrib/libs/linux-headers/asm/setup_powerpc.h deleted file mode 100644 index 5c66e05e710..00000000000 --- a/contrib/libs/linux-headers/asm/setup_powerpc.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_SETUP_H -#define _ASM_POWERPC_SETUP_H - -#define COMMAND_LINE_SIZE 2048 - -#endif /* _ASM_POWERPC_SETUP_H */ diff --git a/contrib/libs/linux-headers/asm/setup_x86.h b/contrib/libs/linux-headers/asm/setup_x86.h deleted file mode 100644 index 79a9626b550..00000000000 --- a/contrib/libs/linux-headers/asm/setup_x86.h +++ /dev/null @@ -1 +0,0 @@ -/* */ diff --git a/contrib/libs/linux-headers/asm/shmbuf.h b/contrib/libs/linux-headers/asm/shmbuf.h deleted file mode 100644 index 4b0d7aa67d9..00000000000 --- a/contrib/libs/linux-headers/asm/shmbuf.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "shmbuf_arm.h" -#elif defined(__aarch64__) -#include "shmbuf_arm64.h" -#elif defined(__powerpc__) -#include "shmbuf_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "shmbuf_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/shmbuf_arm.h b/contrib/libs/linux-headers/asm/shmbuf_arm.h deleted file mode 100644 index 83c05fc2de3..00000000000 --- a/contrib/libs/linux-headers/asm/shmbuf_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/shmbuf.h> diff --git a/contrib/libs/linux-headers/asm/shmbuf_arm64.h b/contrib/libs/linux-headers/asm/shmbuf_arm64.h deleted file mode 100644 index 83c05fc2de3..00000000000 --- a/contrib/libs/linux-headers/asm/shmbuf_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/shmbuf.h> diff --git a/contrib/libs/linux-headers/asm/shmbuf_powerpc.h b/contrib/libs/linux-headers/asm/shmbuf_powerpc.h deleted file mode 100644 index 00422b2f3c6..00000000000 --- a/contrib/libs/linux-headers/asm/shmbuf_powerpc.h +++ /dev/null @@ -1,57 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_SHMBUF_H -#define _ASM_POWERPC_SHMBUF_H - -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ - -/* - * The shmid64_ds structure for PPC architecture. - * - * Note extra padding because this structure is passed back and forth - * between kernel and user space. - * - * Pad space is left for: - * - 2 miscellaneous 32-bit values - */ - -struct shmid64_ds { - struct ipc64_perm shm_perm; /* operation perms */ -#ifdef __powerpc64__ - long shm_atime; /* last attach time */ - long shm_dtime; /* last detach time */ - long shm_ctime; /* last change time */ -#else - unsigned long shm_atime_high; - unsigned long shm_atime; /* last attach time */ - unsigned long shm_dtime_high; - unsigned long shm_dtime; /* last detach time */ - unsigned long shm_ctime_high; - unsigned long shm_ctime; /* last change time */ - unsigned long __unused4; -#endif - size_t shm_segsz; /* size of segment (bytes) */ - __kernel_pid_t shm_cpid; /* pid of creator */ - __kernel_pid_t shm_lpid; /* pid of last operator */ - unsigned long shm_nattch; /* no. of current attaches */ - unsigned long __unused5; - unsigned long __unused6; -}; - -struct shminfo64 { - unsigned long shmmax; - unsigned long shmmin; - unsigned long shmmni; - unsigned long shmseg; - unsigned long shmall; - unsigned long __unused1; - unsigned long __unused2; - unsigned long __unused3; - unsigned long __unused4; -}; - -#endif /* _ASM_POWERPC_SHMBUF_H */ diff --git a/contrib/libs/linux-headers/asm/shmbuf_x86.h b/contrib/libs/linux-headers/asm/shmbuf_x86.h deleted file mode 100644 index f0305dc660c..00000000000 --- a/contrib/libs/linux-headers/asm/shmbuf_x86.h +++ /dev/null @@ -1,43 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __ASM_X86_SHMBUF_H -#define __ASM_X86_SHMBUF_H - -#if !defined(__x86_64__) || !defined(__ILP32__) -#include <asm-generic/shmbuf.h> -#else -/* - * The shmid64_ds structure for x86 architecture with x32 ABI. - * - * On x86-32 and x86-64 we can just use the generic definition, but - * x32 uses the same binary layout as x86_64, which is differnet - * from other 32-bit architectures. - */ - -struct shmid64_ds { - struct ipc64_perm shm_perm; /* operation perms */ - size_t shm_segsz; /* size of segment (bytes) */ - __kernel_long_t shm_atime; /* last attach time */ - __kernel_long_t shm_dtime; /* last detach time */ - __kernel_long_t shm_ctime; /* last change time */ - __kernel_pid_t shm_cpid; /* pid of creator */ - __kernel_pid_t shm_lpid; /* pid of last operator */ - __kernel_ulong_t shm_nattch; /* no. of current attaches */ - __kernel_ulong_t __unused4; - __kernel_ulong_t __unused5; -}; - -struct shminfo64 { - __kernel_ulong_t shmmax; - __kernel_ulong_t shmmin; - __kernel_ulong_t shmmni; - __kernel_ulong_t shmseg; - __kernel_ulong_t shmall; - __kernel_ulong_t __unused1; - __kernel_ulong_t __unused2; - __kernel_ulong_t __unused3; - __kernel_ulong_t __unused4; -}; - -#endif - -#endif /* __ASM_X86_SHMBUF_H */ diff --git a/contrib/libs/linux-headers/asm/sigcontext.h b/contrib/libs/linux-headers/asm/sigcontext.h deleted file mode 100644 index 428844e29ec..00000000000 --- a/contrib/libs/linux-headers/asm/sigcontext.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "sigcontext_arm.h" -#elif defined(__aarch64__) -#include "sigcontext_arm64.h" -#elif defined(__powerpc__) -#include "sigcontext_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "sigcontext_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/sigcontext32.h b/contrib/libs/linux-headers/asm/sigcontext32.h deleted file mode 100644 index 62e6a8d4fb1..00000000000 --- a/contrib/libs/linux-headers/asm/sigcontext32.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "sigcontext32_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/sigcontext32_x86.h b/contrib/libs/linux-headers/asm/sigcontext32_x86.h deleted file mode 100644 index 7114801d049..00000000000 --- a/contrib/libs/linux-headers/asm/sigcontext32_x86.h +++ /dev/null @@ -1,9 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_SIGCONTEXT32_H -#define _ASM_X86_SIGCONTEXT32_H - -/* This is a legacy file - all the type definitions are in sigcontext.h: */ - -#include <asm/sigcontext.h> - -#endif /* _ASM_X86_SIGCONTEXT32_H */ diff --git a/contrib/libs/linux-headers/asm/sigcontext_arm.h b/contrib/libs/linux-headers/asm/sigcontext_arm.h deleted file mode 100644 index e223c65adab..00000000000 --- a/contrib/libs/linux-headers/asm/sigcontext_arm.h +++ /dev/null @@ -1,35 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASMARM_SIGCONTEXT_H -#define _ASMARM_SIGCONTEXT_H - -/* - * 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; -}; - - -#endif diff --git a/contrib/libs/linux-headers/asm/sigcontext_arm64.h b/contrib/libs/linux-headers/asm/sigcontext_arm64.h deleted file mode 100644 index c77dd16d319..00000000000 --- a/contrib/libs/linux-headers/asm/sigcontext_arm64.h +++ /dev/null @@ -1,252 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_SIGCONTEXT_H -#define __ASM_SIGCONTEXT_H - -#ifndef __ASSEMBLY__ - -#include <linux/types.h> - -/* - * Signal context structure - contains all info to do with the state - * before the signal handler was invoked. - */ -struct sigcontext { - __u64 fault_address; - /* AArch64 registers */ - __u64 regs[31]; - __u64 sp; - __u64 pc; - __u64 pstate; - /* 4K reserved for FP/SIMD state and future expansion */ - __u8 __reserved[4096] __attribute__((__aligned__(16))); -}; - -/* - * Allocation of __reserved[]: - * (Note: records do not necessarily occur in the order shown here.) - * - * size description - * - * 0x210 fpsimd_context - * 0x10 esr_context - * 0x8a0 sve_context (vl <= 64) (optional) - * 0x20 extra_context (optional) - * 0x10 terminator (null _aarch64_ctx) - * - * 0x510 (reserved for future allocation) - * - * New records that can exceed this space need to be opt-in for userspace, so - * that an expanded signal frame is not generated unexpectedly. The mechanism - * for opting in will depend on the extension that generates each new record. - * The above table documents the maximum set and sizes of records than can be - * generated when userspace does not opt in for any such extension. - */ - -/* - * Header to be used at the beginning of structures extending the user - * context. Such structures must be placed after the rt_sigframe on the stack - * and be 16-byte aligned. The last structure must be a dummy one with the - * magic and size set to 0. - */ -struct _aarch64_ctx { - __u32 magic; - __u32 size; -}; - -#define FPSIMD_MAGIC 0x46508001 - -struct fpsimd_context { - struct _aarch64_ctx head; - __u32 fpsr; - __u32 fpcr; - __uint128_t vregs[32]; -}; - -/* - * Note: similarly to all other integer fields, each V-register is stored in an - * endianness-dependent format, with the byte at offset i from the start of the - * in-memory representation of the register value containing - * - * bits [(7 + 8 * i) : (8 * i)] of the register on little-endian hosts; or - * bits [(127 - 8 * i) : (120 - 8 * i)] on big-endian hosts. - */ - -/* ESR_EL1 context */ -#define ESR_MAGIC 0x45535201 - -struct esr_context { - struct _aarch64_ctx head; - __u64 esr; -}; - -/* - * extra_context: describes extra space in the signal frame for - * additional structures that don't fit in sigcontext.__reserved[]. - * - * Note: - * - * 1) fpsimd_context, esr_context and extra_context must be placed in - * sigcontext.__reserved[] if present. They cannot be placed in the - * extra space. Any other record can be placed either in the extra - * space or in sigcontext.__reserved[], unless otherwise specified in - * this file. - * - * 2) There must not be more than one extra_context. - * - * 3) If extra_context is present, it must be followed immediately in - * sigcontext.__reserved[] by the terminating null _aarch64_ctx. - * - * 4) The extra space to which datap points must start at the first - * 16-byte aligned address immediately after the terminating null - * _aarch64_ctx that follows the extra_context structure in - * __reserved[]. The extra space may overrun the end of __reserved[], - * as indicated by a sufficiently large value for the size field. - * - * 5) The extra space must itself be terminated with a null - * _aarch64_ctx. - */ -#define EXTRA_MAGIC 0x45585401 - -struct extra_context { - struct _aarch64_ctx head; - __u64 datap; /* 16-byte aligned pointer to extra space cast to __u64 */ - __u32 size; /* size in bytes of the extra space */ - __u32 __reserved[3]; -}; - -#define SVE_MAGIC 0x53564501 - -struct sve_context { - struct _aarch64_ctx head; - __u16 vl; - __u16 __reserved[3]; -}; - -#endif /* !__ASSEMBLY__ */ - -#include <asm/sve_context.h> - -/* - * The SVE architecture leaves space for future expansion of the - * vector length beyond its initial architectural limit of 2048 bits - * (16 quadwords). - * - * See linux/Documentation/arm64/sve.rst for a description of the VL/VQ - * terminology. - */ -#define SVE_VQ_BYTES __SVE_VQ_BYTES /* bytes per quadword */ - -#define SVE_VQ_MIN __SVE_VQ_MIN -#define SVE_VQ_MAX __SVE_VQ_MAX - -#define SVE_VL_MIN __SVE_VL_MIN -#define SVE_VL_MAX __SVE_VL_MAX - -#define SVE_NUM_ZREGS __SVE_NUM_ZREGS -#define SVE_NUM_PREGS __SVE_NUM_PREGS - -#define sve_vl_valid(vl) __sve_vl_valid(vl) -#define sve_vq_from_vl(vl) __sve_vq_from_vl(vl) -#define sve_vl_from_vq(vq) __sve_vl_from_vq(vq) - -/* - * If the SVE registers are currently live for the thread at signal delivery, - * sve_context.head.size >= - * SVE_SIG_CONTEXT_SIZE(sve_vq_from_vl(sve_context.vl)) - * and the register data may be accessed using the SVE_SIG_*() macros. - * - * If sve_context.head.size < - * SVE_SIG_CONTEXT_SIZE(sve_vq_from_vl(sve_context.vl)), - * the SVE registers were not live for the thread and no register data - * is included: in this case, the SVE_SIG_*() macros should not be - * used except for this check. - * - * The same convention applies when returning from a signal: a caller - * will need to remove or resize the sve_context block if it wants to - * make the SVE registers live when they were previously non-live or - * vice-versa. This may require the the caller to allocate fresh - * memory and/or move other context blocks in the signal frame. - * - * Changing the vector length during signal return is not permitted: - * sve_context.vl must equal the thread's current vector length when - * doing a sigreturn. - * - * - * Note: for all these macros, the "vq" argument denotes the SVE - * vector length in quadwords (i.e., units of 128 bits). - * - * The correct way to obtain vq is to use sve_vq_from_vl(vl). The - * result is valid if and only if sve_vl_valid(vl) is true. This is - * guaranteed for a struct sve_context written by the kernel. - * - * - * Additional macros describe the contents and layout of the payload. - * For each, SVE_SIG_x_OFFSET(args) is the start offset relative to - * the start of struct sve_context, and SVE_SIG_x_SIZE(args) is the - * size in bytes: - * - * x type description - * - ---- ----------- - * REGS the entire SVE context - * - * ZREGS __uint128_t[SVE_NUM_ZREGS][vq] all Z-registers - * ZREG __uint128_t[vq] individual Z-register Zn - * - * PREGS uint16_t[SVE_NUM_PREGS][vq] all P-registers - * PREG uint16_t[vq] individual P-register Pn - * - * FFR uint16_t[vq] first-fault status register - * - * Additional data might be appended in the future. - * - * Unlike vregs[] in fpsimd_context, each SVE scalable register (Z-, P- or FFR) - * is encoded in memory in an endianness-invariant format, with the byte at - * offset i from the start of the in-memory representation containing bits - * [(7 + 8 * i) : (8 * i)] of the register value. - */ - -#define SVE_SIG_ZREG_SIZE(vq) __SVE_ZREG_SIZE(vq) -#define SVE_SIG_PREG_SIZE(vq) __SVE_PREG_SIZE(vq) -#define SVE_SIG_FFR_SIZE(vq) __SVE_FFR_SIZE(vq) - -#define SVE_SIG_REGS_OFFSET \ - ((sizeof(struct sve_context) + (__SVE_VQ_BYTES - 1)) \ - / __SVE_VQ_BYTES * __SVE_VQ_BYTES) - -#define SVE_SIG_ZREGS_OFFSET \ - (SVE_SIG_REGS_OFFSET + __SVE_ZREGS_OFFSET) -#define SVE_SIG_ZREG_OFFSET(vq, n) \ - (SVE_SIG_REGS_OFFSET + __SVE_ZREG_OFFSET(vq, n)) -#define SVE_SIG_ZREGS_SIZE(vq) __SVE_ZREGS_SIZE(vq) - -#define SVE_SIG_PREGS_OFFSET(vq) \ - (SVE_SIG_REGS_OFFSET + __SVE_PREGS_OFFSET(vq)) -#define SVE_SIG_PREG_OFFSET(vq, n) \ - (SVE_SIG_REGS_OFFSET + __SVE_PREG_OFFSET(vq, n)) -#define SVE_SIG_PREGS_SIZE(vq) __SVE_PREGS_SIZE(vq) - -#define SVE_SIG_FFR_OFFSET(vq) \ - (SVE_SIG_REGS_OFFSET + __SVE_FFR_OFFSET(vq)) - -#define SVE_SIG_REGS_SIZE(vq) \ - (__SVE_FFR_OFFSET(vq) + __SVE_FFR_SIZE(vq)) - -#define SVE_SIG_CONTEXT_SIZE(vq) \ - (SVE_SIG_REGS_OFFSET + SVE_SIG_REGS_SIZE(vq)) - -#endif /* __ASM_SIGCONTEXT_H */ diff --git a/contrib/libs/linux-headers/asm/sigcontext_powerpc.h b/contrib/libs/linux-headers/asm/sigcontext_powerpc.h deleted file mode 100644 index 6c52226a9b7..00000000000 --- a/contrib/libs/linux-headers/asm/sigcontext_powerpc.h +++ /dev/null @@ -1,88 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_SIGCONTEXT_H -#define _ASM_POWERPC_SIGCONTEXT_H - -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ - -#include <asm/ptrace.h> -#ifdef __powerpc64__ -#include <asm/elf.h> -#endif - -struct sigcontext { - unsigned long _unused[4]; - int signal; -#ifdef __powerpc64__ - int _pad0; -#endif - unsigned long handler; - unsigned long oldmask; - struct pt_regs *regs; -#ifdef __powerpc64__ - elf_gregset_t gp_regs; - elf_fpregset_t fp_regs; -/* - * To maintain compatibility with current implementations the sigcontext is - * extended by appending a pointer (v_regs) to a quadword type (elf_vrreg_t) - * followed by an unstructured (vmx_reserve) field of 101 doublewords. This - * allows the array of vector registers to be quadword aligned independent of - * the alignment of the containing sigcontext or ucontext. It is the - * 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 - * 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 - * an array of 34 quadword entries (elf_vrregset_t). The entries 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 - * 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. - * The entry with index 33 contains the vrsave as the first word (offset 0) - * within the quadword. - * - * Part of the VSX data is stored here also by extending vmx_restore - * by an additional 32 double words. Architecturally the layout of - * the VSR registers and how they overlap on top of the legacy FPR and - * VR registers is shown below: - * - * VSR doubleword 0 VSR doubleword 1 - * ---------------------------------------------------------------- - * VSR[0] | FPR[0] | | - * ---------------------------------------------------------------- - * VSR[1] | FPR[1] | | - * ---------------------------------------------------------------- - * | ... | | - * | ... | | - * ---------------------------------------------------------------- - * VSR[30] | FPR[30] | | - * ---------------------------------------------------------------- - * VSR[31] | FPR[31] | | - * ---------------------------------------------------------------- - * VSR[32] | VR[0] | - * ---------------------------------------------------------------- - * VSR[33] | VR[1] | - * ---------------------------------------------------------------- - * | ... | - * | ... | - * ---------------------------------------------------------------- - * VSR[62] | VR[30] | - * ---------------------------------------------------------------- - * VSR[63] | VR[31] | - * ---------------------------------------------------------------- - * - * FPR/VSR 0-31 doubleword 0 is stored in fp_regs, and VMX/VSR 32-63 - * is stored at the start of vmx_reserve. vmx_reserve is extended for - * backwards compatility to store VSR 0-31 doubleword 1 after the VMX - * registers and vscr/vrsave. - */ - elf_vrreg_t *v_regs; - long vmx_reserve[ELF_NVRREG + ELF_NVRREG + 1 + 32]; -#endif -}; - -#endif /* _ASM_POWERPC_SIGCONTEXT_H */ diff --git a/contrib/libs/linux-headers/asm/sigcontext_x86.h b/contrib/libs/linux-headers/asm/sigcontext_x86.h deleted file mode 100644 index a6ddae206d8..00000000000 --- a/contrib/libs/linux-headers/asm/sigcontext_x86.h +++ /dev/null @@ -1,380 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_SIGCONTEXT_H -#define _ASM_X86_SIGCONTEXT_H - -/* - * Linux signal context definitions. The sigcontext includes a complex - * hierarchy of CPU and FPU state, available to user-space (on the stack) when - * a signal handler is executed. - * - * As over the years this ABI grew from its very simple roots towards - * supporting more and more CPU state organically, some of the details (which - * were rather clever hacks back in the days) became a bit quirky by today. - * - * The current ABI includes flexible provisions for future extensions, so we - * won't have to grow new quirks for quite some time. Promise! - */ - - -#include <linux/types.h> - -#define FP_XSTATE_MAGIC1 0x46505853U -#define FP_XSTATE_MAGIC2 0x46505845U -#define FP_XSTATE_MAGIC2_SIZE sizeof(FP_XSTATE_MAGIC2) - -/* - * Bytes 464..511 in the current 512-byte layout of the FXSAVE/FXRSTOR frame - * are reserved for SW usage. On CPUs supporting XSAVE/XRSTOR, these bytes are - * used to extend the fpstate pointer in the sigcontext, which now includes the - * extended state information along with fpstate information. - * - * If sw_reserved.magic1 == FP_XSTATE_MAGIC1 then there's a - * sw_reserved.extended_size bytes large extended context area present. (The - * last 32-bit word of this extended area (at the - * fpstate+extended_size-FP_XSTATE_MAGIC2_SIZE address) is set to - * FP_XSTATE_MAGIC2 so that you can sanity check your size calculations.) - * - * This extended area typically grows with newer CPUs that have larger and - * larger XSAVE areas. - */ -struct _fpx_sw_bytes { - /* - * If set to FP_XSTATE_MAGIC1 then this is an xstate context. - * 0 if a legacy frame. - */ - __u32 magic1; - - /* - * Total size of the fpstate area: - * - * - if magic1 == 0 then it's sizeof(struct _fpstate) - * - if magic1 == FP_XSTATE_MAGIC1 then it's sizeof(struct _xstate) - * plus extensions (if any) - */ - __u32 extended_size; - - /* - * Feature bit mask (including FP/SSE/extended state) that is present - * in the memory layout: - */ - __u64 xfeatures; - - /* - * Actual XSAVE state size, based on the xfeatures saved in the layout. - * 'extended_size' is greater than 'xstate_size': - */ - __u32 xstate_size; - - /* For future use: */ - __u32 padding[7]; -}; - -/* - * As documented in the iBCS2 standard: - * - * The first part of "struct _fpstate" is just the normal i387 hardware setup, - * the extra "status" word is used to save the coprocessor status word before - * entering the handler. - * - * The FPU state data structure has had to grow to accommodate the extended FPU - * state required by the Streaming SIMD Extensions. There is no documented - * standard to accomplish this at the moment. - */ - -/* 10-byte legacy floating point register: */ -struct _fpreg { - __u16 significand[4]; - __u16 exponent; -}; - -/* 16-byte floating point register: */ -struct _fpxreg { - __u16 significand[4]; - __u16 exponent; - __u16 padding[3]; -}; - -/* 16-byte XMM register: */ -struct _xmmreg { - __u32 element[4]; -}; - -#define X86_FXSR_MAGIC 0x0000 - -/* - * The 32-bit FPU frame: - */ -struct _fpstate_32 { - /* Legacy FPU environment: */ - __u32 cw; - __u32 sw; - __u32 tag; - __u32 ipoff; - __u32 cssel; - __u32 dataoff; - __u32 datasel; - struct _fpreg _st[8]; - __u16 status; - __u16 magic; /* 0xffff: regular FPU data only */ - /* 0x0000: FXSR FPU data */ - - /* FXSR FPU environment */ - __u32 _fxsr_env[6]; /* FXSR FPU env is ignored */ - __u32 mxcsr; - __u32 reserved; - struct _fpxreg _fxsr_st[8]; /* FXSR FPU reg data is ignored */ - struct _xmmreg _xmm[8]; /* First 8 XMM registers */ - union { - __u32 padding1[44]; /* Second 8 XMM registers plus padding */ - __u32 padding[44]; /* Alias name for old user-space */ - }; - - union { - __u32 padding2[12]; - struct _fpx_sw_bytes sw_reserved; /* Potential extended state is encoded here */ - }; -}; - -/* - * The 64-bit FPU frame. (FXSAVE format and later) - * - * Note1: If sw_reserved.magic1 == FP_XSTATE_MAGIC1 then the structure is - * larger: 'struct _xstate'. Note that 'struct _xstate' embedds - * 'struct _fpstate' so that you can always assume the _fpstate portion - * exists so that you can check the magic value. - * - * Note2: Reserved fields may someday contain valuable data. Always - * save/restore them when you change signal frames. - */ -struct _fpstate_64 { - __u16 cwd; - __u16 swd; - /* Note this is not the same as the 32-bit/x87/FSAVE twd: */ - __u16 twd; - __u16 fop; - __u64 rip; - __u64 rdp; - __u32 mxcsr; - __u32 mxcsr_mask; - __u32 st_space[32]; /* 8x FP registers, 16 bytes each */ - __u32 xmm_space[64]; /* 16x XMM registers, 16 bytes each */ - __u32 reserved2[12]; - union { - __u32 reserved3[12]; - struct _fpx_sw_bytes sw_reserved; /* Potential extended state is encoded here */ - }; -}; - -#ifdef __i386__ -# define _fpstate _fpstate_32 -#else -# define _fpstate _fpstate_64 -#endif - -struct _header { - __u64 xfeatures; - __u64 reserved1[2]; - __u64 reserved2[5]; -}; - -struct _ymmh_state { - /* 16x YMM registers, 16 bytes each: */ - __u32 ymmh_space[64]; -}; - -/* - * Extended state pointed to by sigcontext::fpstate. - * - * In addition to the fpstate, information encoded in _xstate::xstate_hdr - * indicates the presence of other extended state information supported - * by the CPU and kernel: - */ -struct _xstate { - struct _fpstate fpstate; - struct _header xstate_hdr; - struct _ymmh_state ymmh; - /* New processor state extensions go here: */ -}; - -/* - * The 32-bit signal frame: - */ -struct sigcontext_32 { - __u16 gs, __gsh; - __u16 fs, __fsh; - __u16 es, __esh; - __u16 ds, __dsh; - __u32 di; - __u32 si; - __u32 bp; - __u32 sp; - __u32 bx; - __u32 dx; - __u32 cx; - __u32 ax; - __u32 trapno; - __u32 err; - __u32 ip; - __u16 cs, __csh; - __u32 flags; - __u32 sp_at_signal; - __u16 ss, __ssh; - - /* - * fpstate is really (struct _fpstate *) or (struct _xstate *) - * depending on the FP_XSTATE_MAGIC1 encoded in the SW reserved - * bytes of (struct _fpstate) and FP_XSTATE_MAGIC2 present at the end - * of extended memory layout. See comments at the definition of - * (struct _fpx_sw_bytes) - */ - __u32 fpstate; /* Zero when no FPU/extended context */ - __u32 oldmask; - __u32 cr2; -}; - -/* - * The 64-bit signal frame: - */ -struct sigcontext_64 { - __u64 r8; - __u64 r9; - __u64 r10; - __u64 r11; - __u64 r12; - __u64 r13; - __u64 r14; - __u64 r15; - __u64 di; - __u64 si; - __u64 bp; - __u64 bx; - __u64 dx; - __u64 ax; - __u64 cx; - __u64 sp; - __u64 ip; - __u64 flags; - __u16 cs; - __u16 gs; - __u16 fs; - __u16 ss; - __u64 err; - __u64 trapno; - __u64 oldmask; - __u64 cr2; - - /* - * fpstate is really (struct _fpstate *) or (struct _xstate *) - * depending on the FP_XSTATE_MAGIC1 encoded in the SW reserved - * bytes of (struct _fpstate) and FP_XSTATE_MAGIC2 present at the end - * of extended memory layout. See comments at the definition of - * (struct _fpx_sw_bytes) - */ - __u64 fpstate; /* Zero when no FPU/extended context */ - __u64 reserved1[8]; -}; - -/* - * Create the real 'struct sigcontext' type: - */ - -/* - * The old user-space sigcontext definition, just in case user-space still - * relies on it. The kernel definition (in asm/sigcontext.h) has unified - * field names but otherwise the same layout. - */ - -#define _fpstate_ia32 _fpstate_32 -#define sigcontext_ia32 sigcontext_32 - - -# ifdef __i386__ -struct sigcontext { - __u16 gs, __gsh; - __u16 fs, __fsh; - __u16 es, __esh; - __u16 ds, __dsh; - __u32 edi; - __u32 esi; - __u32 ebp; - __u32 esp; - __u32 ebx; - __u32 edx; - __u32 ecx; - __u32 eax; - __u32 trapno; - __u32 err; - __u32 eip; - __u16 cs, __csh; - __u32 eflags; - __u32 esp_at_signal; - __u16 ss, __ssh; - struct _fpstate *fpstate; - __u32 oldmask; - __u32 cr2; -}; -# else /* __x86_64__: */ -struct sigcontext { - __u64 r8; - __u64 r9; - __u64 r10; - __u64 r11; - __u64 r12; - __u64 r13; - __u64 r14; - __u64 r15; - __u64 rdi; - __u64 rsi; - __u64 rbp; - __u64 rbx; - __u64 rdx; - __u64 rax; - __u64 rcx; - __u64 rsp; - __u64 rip; - __u64 eflags; /* RFLAGS */ - __u16 cs; - - /* - * Prior to 2.5.64 ("[PATCH] x86-64 updates for 2.5.64-bk3"), - * Linux saved and restored fs and gs in these slots. This - * was counterproductive, as fsbase and gsbase were never - * saved, so arch_prctl was presumably unreliable. - * - * These slots should never be reused without extreme caution: - * - * - Some DOSEMU versions stash fs and gs in these slots manually, - * thus overwriting anything the kernel expects to be preserved - * in these slots. - * - * - If these slots are ever needed for any other purpose, - * there is some risk that very old 64-bit binaries could get - * confused. I doubt that many such binaries still work, - * though, since the same patch in 2.5.64 also removed the - * 64-bit set_thread_area syscall, so it appears that there - * is no TLS API beyond modify_ldt that works in both pre- - * and post-2.5.64 kernels. - * - * If the kernel ever adds explicit fs, gs, fsbase, and gsbase - * save/restore, it will most likely need to be opt-in and use - * different context slots. - */ - __u16 gs; - __u16 fs; - union { - __u16 ss; /* If UC_SIGCONTEXT_SS */ - __u16 __pad0; /* Alias name for old (!UC_SIGCONTEXT_SS) user-space */ - }; - __u64 err; - __u64 trapno; - __u64 oldmask; - __u64 cr2; - struct _fpstate *fpstate; /* Zero when no FPU context */ -# ifdef __ILP32__ - __u32 __fpstate_pad; -# endif - __u64 reserved1[8]; -}; -# endif /* __x86_64__ */ - -#endif /* _ASM_X86_SIGCONTEXT_H */ diff --git a/contrib/libs/linux-headers/asm/siginfo.h b/contrib/libs/linux-headers/asm/siginfo.h deleted file mode 100644 index d3d4e3acb3c..00000000000 --- a/contrib/libs/linux-headers/asm/siginfo.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "siginfo_arm.h" -#elif defined(__aarch64__) -#include "siginfo_arm64.h" -#elif defined(__powerpc__) -#include "siginfo_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "siginfo_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/siginfo_arm.h b/contrib/libs/linux-headers/asm/siginfo_arm.h deleted file mode 100644 index 0815d29d82e..00000000000 --- a/contrib/libs/linux-headers/asm/siginfo_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/siginfo.h> diff --git a/contrib/libs/linux-headers/asm/siginfo_arm64.h b/contrib/libs/linux-headers/asm/siginfo_arm64.h deleted file mode 100644 index 0815d29d82e..00000000000 --- a/contrib/libs/linux-headers/asm/siginfo_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/siginfo.h> diff --git a/contrib/libs/linux-headers/asm/siginfo_powerpc.h b/contrib/libs/linux-headers/asm/siginfo_powerpc.h deleted file mode 100644 index 0815d29d82e..00000000000 --- a/contrib/libs/linux-headers/asm/siginfo_powerpc.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/siginfo.h> diff --git a/contrib/libs/linux-headers/asm/siginfo_x86.h b/contrib/libs/linux-headers/asm/siginfo_x86.h deleted file mode 100644 index 6642d8be40c..00000000000 --- a/contrib/libs/linux-headers/asm/siginfo_x86.h +++ /dev/null @@ -1,15 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_SIGINFO_H -#define _ASM_X86_SIGINFO_H - -#ifdef __x86_64__ -# ifdef __ILP32__ /* x32 */ -typedef long long __kernel_si_clock_t __attribute__((aligned(4))); -# define __ARCH_SI_CLOCK_T __kernel_si_clock_t -# define __ARCH_SI_ATTRIBUTES __attribute__((aligned(8))) -# endif -#endif - -#include <asm-generic/siginfo.h> - -#endif /* _ASM_X86_SIGINFO_H */ diff --git a/contrib/libs/linux-headers/asm/signal.h b/contrib/libs/linux-headers/asm/signal.h deleted file mode 100644 index 43554d4e1c6..00000000000 --- a/contrib/libs/linux-headers/asm/signal.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "signal_arm.h" -#elif defined(__aarch64__) -#include "signal_arm64.h" -#elif defined(__powerpc__) -#include "signal_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "signal_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/signal_arm.h b/contrib/libs/linux-headers/asm/signal_arm.h deleted file mode 100644 index 4e416a9fadc..00000000000 --- a/contrib/libs/linux-headers/asm/signal_arm.h +++ /dev/null @@ -1,117 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASMARM_SIGNAL_H -#define _ASMARM_SIGNAL_H - -#include <linux/types.h> - -/* Avoid too many header ordering problems. */ -struct siginfo; - -/* Here we must cater to libcs that poke about in kernel headers. */ - -#define NSIG 32 -typedef unsigned long sigset_t; - - -#define SIGHUP 1 -#define SIGINT 2 -#define SIGQUIT 3 -#define SIGILL 4 -#define SIGTRAP 5 -#define SIGABRT 6 -#define SIGIOT 6 -#define SIGBUS 7 -#define SIGFPE 8 -#define SIGKILL 9 -#define SIGUSR1 10 -#define SIGSEGV 11 -#define SIGUSR2 12 -#define SIGPIPE 13 -#define SIGALRM 14 -#define SIGTERM 15 -#define SIGSTKFLT 16 -#define SIGCHLD 17 -#define SIGCONT 18 -#define SIGSTOP 19 -#define SIGTSTP 20 -#define SIGTTIN 21 -#define SIGTTOU 22 -#define SIGURG 23 -#define SIGXCPU 24 -#define SIGXFSZ 25 -#define SIGVTALRM 26 -#define SIGPROF 27 -#define SIGWINCH 28 -#define SIGIO 29 -#define SIGPOLL SIGIO -/* -#define SIGLOST 29 -*/ -#define SIGPWR 30 -#define SIGSYS 31 -#define SIGUNUSED 31 - -/* These should not be considered constants from userland. */ -#define SIGRTMIN 32 -#define SIGRTMAX _NSIG - -#define SIGSWI 32 - -/* - * SA_FLAGS values: - * - * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. - * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies. - * SA_SIGINFO deliver the signal with SIGINFO structs - * SA_THIRTYTWO delivers the signal in 32-bit mode, even if the task - * is running in 26-bit. - * SA_ONSTACK allows alternate signal stacks (see sigaltstack(2)). - * SA_RESTART flag to get restarting signals (which were the default long ago) - * SA_NODEFER prevents the current signal from being masked in the handler. - * SA_RESETHAND clears the handler when the signal is delivered. - * - * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single - * Unix names RESETHAND and NODEFER respectively. - */ -#define SA_NOCLDSTOP 0x00000001 -#define SA_NOCLDWAIT 0x00000002 -#define SA_SIGINFO 0x00000004 -#define SA_THIRTYTWO 0x02000000 -#define SA_RESTORER 0x04000000 -#define SA_ONSTACK 0x08000000 -#define SA_RESTART 0x10000000 -#define SA_NODEFER 0x40000000 -#define SA_RESETHAND 0x80000000 - -#define SA_NOMASK SA_NODEFER -#define SA_ONESHOT SA_RESETHAND - -#define MINSIGSTKSZ 2048 -#define SIGSTKSZ 8192 - -#include <asm-generic/signal-defs.h> - -/* Here we must cater to libcs that poke about in kernel headers. */ - -struct sigaction { - union { - __sighandler_t _sa_handler; - void (*_sa_sigaction)(int, struct siginfo *, void *); - } _u; - sigset_t sa_mask; - unsigned long sa_flags; - void (*sa_restorer)(void); -}; - -#define sa_handler _u._sa_handler -#define sa_sigaction _u._sa_sigaction - - -typedef struct sigaltstack { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - - -#endif /* _ASMARM_SIGNAL_H */ diff --git a/contrib/libs/linux-headers/asm/signal_arm64.h b/contrib/libs/linux-headers/asm/signal_arm64.h deleted file mode 100644 index bdf0cfb046c..00000000000 --- a/contrib/libs/linux-headers/asm/signal_arm64.h +++ /dev/null @@ -1,28 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_SIGNAL_H -#define __ASM_SIGNAL_H - -/* Required for AArch32 compatibility. */ -#define SA_RESTORER 0x04000000 - -#define MINSIGSTKSZ 5120 -#define SIGSTKSZ 16384 - -#include <asm-generic/signal.h> - -#endif diff --git a/contrib/libs/linux-headers/asm/signal_powerpc.h b/contrib/libs/linux-headers/asm/signal_powerpc.h deleted file mode 100644 index a93312c816c..00000000000 --- a/contrib/libs/linux-headers/asm/signal_powerpc.h +++ /dev/null @@ -1,136 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_SIGNAL_H -#define _ASM_POWERPC_SIGNAL_H - -#include <linux/types.h> - -#define _NSIG 64 -#ifdef __powerpc64__ -#define _NSIG_BPW 64 -#else -#define _NSIG_BPW 32 -#endif -#define _NSIG_WORDS (_NSIG / _NSIG_BPW) - -typedef unsigned long old_sigset_t; /* at least 32 bits */ - -typedef struct { - unsigned long sig[_NSIG_WORDS]; -} sigset_t; - -#define SIGHUP 1 -#define SIGINT 2 -#define SIGQUIT 3 -#define SIGILL 4 -#define SIGTRAP 5 -#define SIGABRT 6 -#define SIGIOT 6 -#define SIGBUS 7 -#define SIGFPE 8 -#define SIGKILL 9 -#define SIGUSR1 10 -#define SIGSEGV 11 -#define SIGUSR2 12 -#define SIGPIPE 13 -#define SIGALRM 14 -#define SIGTERM 15 -#define SIGSTKFLT 16 -#define SIGCHLD 17 -#define SIGCONT 18 -#define SIGSTOP 19 -#define SIGTSTP 20 -#define SIGTTIN 21 -#define SIGTTOU 22 -#define SIGURG 23 -#define SIGXCPU 24 -#define SIGXFSZ 25 -#define SIGVTALRM 26 -#define SIGPROF 27 -#define SIGWINCH 28 -#define SIGIO 29 -#define SIGPOLL SIGIO -/* -#define SIGLOST 29 -*/ -#define SIGPWR 30 -#define SIGSYS 31 -#define SIGUNUSED 31 - -/* These should not be considered constants from userland. */ -#define SIGRTMIN 32 -#define SIGRTMAX _NSIG - -/* - * SA_FLAGS values: - * - * SA_ONSTACK is not currently supported, but will allow sigaltstack(2). - * SA_RESTART flag to get restarting signals (which were the default long ago) - * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. - * SA_RESETHAND clears the handler when the signal is delivered. - * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies. - * SA_NODEFER prevents the current signal from being masked in the handler. - * - * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single - * Unix names RESETHAND and NODEFER respectively. - */ -#define SA_NOCLDSTOP 0x00000001U -#define SA_NOCLDWAIT 0x00000002U -#define SA_SIGINFO 0x00000004U -#define SA_ONSTACK 0x08000000U -#define SA_RESTART 0x10000000U -#define SA_NODEFER 0x40000000U -#define SA_RESETHAND 0x80000000U - -#define SA_NOMASK SA_NODEFER -#define SA_ONESHOT SA_RESETHAND - -#define SA_RESTORER 0x04000000U - -#define MINSIGSTKSZ 2048 -#define SIGSTKSZ 8192 - -#include <asm-generic/signal-defs.h> - -struct old_sigaction { - __sighandler_t sa_handler; - old_sigset_t sa_mask; - unsigned long sa_flags; - __sigrestore_t sa_restorer; -}; - -struct sigaction { - __sighandler_t sa_handler; - unsigned long sa_flags; - __sigrestore_t sa_restorer; - sigset_t sa_mask; /* mask last for extensibility */ -}; - -typedef struct sigaltstack { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - - -#ifndef __powerpc64__ -/* - * These are parameters to dbg_sigreturn syscall. They enable or - * disable certain debugging things that can be done from signal - * handlers. The dbg_sigreturn syscall *must* be called from a - * SA_SIGINFO signal so the ucontext can be passed to it. It takes an - * array of struct sig_dbg_op, which has the debug operations to - * perform before returning from the signal. - */ -struct sig_dbg_op { - int dbg_type; - unsigned long dbg_value; -}; - -/* Enable or disable single-stepping. The value sets the state. */ -#define SIG_DBG_SINGLE_STEPPING 1 - -/* Enable or disable branch tracing. The value sets the state. */ -#define SIG_DBG_BRANCH_TRACING 2 -#endif /* ! __powerpc64__ */ - -#endif /* _ASM_POWERPC_SIGNAL_H */ diff --git a/contrib/libs/linux-headers/asm/signal_x86.h b/contrib/libs/linux-headers/asm/signal_x86.h deleted file mode 100644 index b27582fa18d..00000000000 --- a/contrib/libs/linux-headers/asm/signal_x86.h +++ /dev/null @@ -1,132 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_SIGNAL_H -#define _ASM_X86_SIGNAL_H - -#ifndef __ASSEMBLY__ -#include <linux/types.h> -#include <linux/time.h> - - -/* Avoid too many header ordering problems. */ -struct siginfo; - -/* Here we must cater to libcs that poke about in kernel headers. */ - -#define NSIG 32 -typedef unsigned long sigset_t; - -#endif /* __ASSEMBLY__ */ - - -#define SIGHUP 1 -#define SIGINT 2 -#define SIGQUIT 3 -#define SIGILL 4 -#define SIGTRAP 5 -#define SIGABRT 6 -#define SIGIOT 6 -#define SIGBUS 7 -#define SIGFPE 8 -#define SIGKILL 9 -#define SIGUSR1 10 -#define SIGSEGV 11 -#define SIGUSR2 12 -#define SIGPIPE 13 -#define SIGALRM 14 -#define SIGTERM 15 -#define SIGSTKFLT 16 -#define SIGCHLD 17 -#define SIGCONT 18 -#define SIGSTOP 19 -#define SIGTSTP 20 -#define SIGTTIN 21 -#define SIGTTOU 22 -#define SIGURG 23 -#define SIGXCPU 24 -#define SIGXFSZ 25 -#define SIGVTALRM 26 -#define SIGPROF 27 -#define SIGWINCH 28 -#define SIGIO 29 -#define SIGPOLL SIGIO -/* -#define SIGLOST 29 -*/ -#define SIGPWR 30 -#define SIGSYS 31 -#define SIGUNUSED 31 - -/* These should not be considered constants from userland. */ -#define SIGRTMIN 32 -#define SIGRTMAX _NSIG - -/* - * SA_FLAGS values: - * - * SA_ONSTACK indicates that a registered stack_t will be used. - * SA_RESTART flag to get restarting signals (which were the default long ago) - * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. - * SA_RESETHAND clears the handler when the signal is delivered. - * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies. - * SA_NODEFER prevents the current signal from being masked in the handler. - * - * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single - * Unix names RESETHAND and NODEFER respectively. - */ -#define SA_NOCLDSTOP 0x00000001u -#define SA_NOCLDWAIT 0x00000002u -#define SA_SIGINFO 0x00000004u -#define SA_ONSTACK 0x08000000u -#define SA_RESTART 0x10000000u -#define SA_NODEFER 0x40000000u -#define SA_RESETHAND 0x80000000u - -#define SA_NOMASK SA_NODEFER -#define SA_ONESHOT SA_RESETHAND - -#define SA_RESTORER 0x04000000 - -#define MINSIGSTKSZ 2048 -#define SIGSTKSZ 8192 - -#include <asm-generic/signal-defs.h> - -#ifndef __ASSEMBLY__ - - -/* Here we must cater to libcs that poke about in kernel headers. */ -#ifdef __i386__ - -struct sigaction { - union { - __sighandler_t _sa_handler; - void (*_sa_sigaction)(int, struct siginfo *, void *); - } _u; - sigset_t sa_mask; - unsigned long sa_flags; - void (*sa_restorer)(void); -}; - -#define sa_handler _u._sa_handler -#define sa_sigaction _u._sa_sigaction - -#else /* __i386__ */ - -struct sigaction { - __sighandler_t sa_handler; - unsigned long sa_flags; - __sigrestore_t sa_restorer; - sigset_t sa_mask; /* mask last for extensibility */ -}; - -#endif /* !__i386__ */ - -typedef struct sigaltstack { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -#endif /* __ASSEMBLY__ */ - -#endif /* _ASM_X86_SIGNAL_H */ diff --git a/contrib/libs/linux-headers/asm/socket.h b/contrib/libs/linux-headers/asm/socket.h deleted file mode 100644 index 560379a5480..00000000000 --- a/contrib/libs/linux-headers/asm/socket.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "socket_arm.h" -#elif defined(__aarch64__) -#include "socket_arm64.h" -#elif defined(__powerpc__) -#include "socket_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "socket_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/socket_arm.h b/contrib/libs/linux-headers/asm/socket_arm.h deleted file mode 100644 index 6b71384b9d8..00000000000 --- a/contrib/libs/linux-headers/asm/socket_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/socket.h> diff --git a/contrib/libs/linux-headers/asm/socket_arm64.h b/contrib/libs/linux-headers/asm/socket_arm64.h deleted file mode 100644 index 6b71384b9d8..00000000000 --- a/contrib/libs/linux-headers/asm/socket_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/socket.h> diff --git a/contrib/libs/linux-headers/asm/socket_powerpc.h b/contrib/libs/linux-headers/asm/socket_powerpc.h deleted file mode 100644 index 12aa0c43e77..00000000000 --- a/contrib/libs/linux-headers/asm/socket_powerpc.h +++ /dev/null @@ -1,21 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_SOCKET_H -#define _ASM_POWERPC_SOCKET_H - -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ - -#define SO_RCVLOWAT 16 -#define SO_SNDLOWAT 17 -#define SO_RCVTIMEO_OLD 18 -#define SO_SNDTIMEO_OLD 19 -#define SO_PASSCRED 20 -#define SO_PEERCRED 21 - -#include <asm-generic/socket.h> - -#endif /* _ASM_POWERPC_SOCKET_H */ diff --git a/contrib/libs/linux-headers/asm/socket_x86.h b/contrib/libs/linux-headers/asm/socket_x86.h deleted file mode 100644 index 6b71384b9d8..00000000000 --- a/contrib/libs/linux-headers/asm/socket_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/socket.h> diff --git a/contrib/libs/linux-headers/asm/sockios.h b/contrib/libs/linux-headers/asm/sockios.h deleted file mode 100644 index def6d4746ee..00000000000 --- a/contrib/libs/linux-headers/asm/sockios.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/sockios.h> diff --git a/contrib/libs/linux-headers/asm/spu_info.h b/contrib/libs/linux-headers/asm/spu_info.h deleted file mode 100644 index dec109cc13e..00000000000 --- a/contrib/libs/linux-headers/asm/spu_info.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "spu_info_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/spu_info_powerpc.h b/contrib/libs/linux-headers/asm/spu_info_powerpc.h deleted file mode 100644 index 59ae4919c1c..00000000000 --- a/contrib/libs/linux-headers/asm/spu_info_powerpc.h +++ /dev/null @@ -1,38 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * SPU info structures - * - * (C) Copyright 2006 IBM Corp. - * - * Author: Dwayne Grant McConnell <decimal@us.ibm.com> - */ - -#ifndef _SPU_INFO_H -#define _SPU_INFO_H - -#include <linux/types.h> - -struct mfc_cq_sr { - __u64 mfc_cq_data0_RW; - __u64 mfc_cq_data1_RW; - __u64 mfc_cq_data2_RW; - __u64 mfc_cq_data3_RW; -}; - -struct spu_dma_info { - __u64 dma_info_type; - __u64 dma_info_mask; - __u64 dma_info_status; - __u64 dma_info_stall_and_notify; - __u64 dma_info_atomic_command_status; - struct mfc_cq_sr dma_info_command_data[16]; -}; - -struct spu_proxydma_info { - __u64 proxydma_info_type; - __u64 proxydma_info_mask; - __u64 proxydma_info_status; - struct mfc_cq_sr proxydma_info_command_data[8]; -}; - -#endif /* _SPU_INFO_H */ diff --git a/contrib/libs/linux-headers/asm/stat.h b/contrib/libs/linux-headers/asm/stat.h deleted file mode 100644 index f8809fa6bc3..00000000000 --- a/contrib/libs/linux-headers/asm/stat.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "stat_arm.h" -#elif defined(__aarch64__) -#include "stat_arm64.h" -#elif defined(__powerpc__) -#include "stat_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "stat_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/stat_arm.h b/contrib/libs/linux-headers/asm/stat_arm.h deleted file mode 100644 index 9c6580bfc04..00000000000 --- a/contrib/libs/linux-headers/asm/stat_arm.h +++ /dev/null @@ -1,88 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASMARM_STAT_H -#define _ASMARM_STAT_H - -struct __old_kernel_stat { - unsigned short st_dev; - unsigned short st_ino; - unsigned short st_mode; - unsigned short st_nlink; - unsigned short st_uid; - unsigned short st_gid; - unsigned short st_rdev; - unsigned long st_size; - unsigned long st_atime; - unsigned long st_mtime; - unsigned long st_ctime; -}; - -#define STAT_HAVE_NSEC - -struct stat { -#if defined(__ARMEB__) - unsigned short st_dev; - unsigned short __pad1; -#else - unsigned long st_dev; -#endif - unsigned long st_ino; - unsigned short st_mode; - unsigned short st_nlink; - unsigned short st_uid; - unsigned short st_gid; -#if defined(__ARMEB__) - unsigned short st_rdev; - unsigned short __pad2; -#else - unsigned long st_rdev; -#endif - unsigned long st_size; - unsigned long st_blksize; - unsigned long st_blocks; - unsigned long st_atime; - unsigned long st_atime_nsec; - unsigned long st_mtime; - unsigned long st_mtime_nsec; - unsigned long st_ctime; - unsigned long st_ctime_nsec; - unsigned long __unused4; - unsigned long __unused5; -}; - -/* This matches struct stat64 in glibc2.1, hence the absolutely - * insane amounts of padding around dev_t's. - * Note: The kernel zero's the padded region because glibc might read them - * in the hope that the kernel has stretched to using larger sizes. - */ -struct stat64 { - unsigned long long st_dev; - unsigned char __pad0[4]; - -#define STAT64_HAS_BROKEN_ST_INO 1 - unsigned long __st_ino; - unsigned int st_mode; - unsigned int st_nlink; - - unsigned long st_uid; - unsigned long st_gid; - - unsigned long long st_rdev; - unsigned char __pad3[4]; - - long long st_size; - unsigned long st_blksize; - unsigned long long st_blocks; /* Number 512-byte blocks allocated. */ - - unsigned long st_atime; - unsigned long st_atime_nsec; - - unsigned long st_mtime; - unsigned long st_mtime_nsec; - - unsigned long st_ctime; - unsigned long st_ctime_nsec; - - unsigned long long st_ino; -}; - -#endif diff --git a/contrib/libs/linux-headers/asm/stat_arm64.h b/contrib/libs/linux-headers/asm/stat_arm64.h deleted file mode 100644 index 3dc90fa92c7..00000000000 --- a/contrib/libs/linux-headers/asm/stat_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/stat.h> diff --git a/contrib/libs/linux-headers/asm/stat_powerpc.h b/contrib/libs/linux-headers/asm/stat_powerpc.h deleted file mode 100644 index 7871055e5e3..00000000000 --- a/contrib/libs/linux-headers/asm/stat_powerpc.h +++ /dev/null @@ -1,82 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_STAT_H -#define _ASM_POWERPC_STAT_H -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -#include <linux/types.h> - -#define STAT_HAVE_NSEC 1 - -#ifndef __powerpc64__ -struct __old_kernel_stat { - unsigned short st_dev; - unsigned short st_ino; - unsigned short st_mode; - unsigned short st_nlink; - unsigned short st_uid; - unsigned short st_gid; - unsigned short st_rdev; - unsigned long st_size; - unsigned long st_atime; - unsigned long st_mtime; - unsigned long st_ctime; -}; -#endif /* !__powerpc64__ */ - -struct stat { - unsigned long st_dev; - ino_t st_ino; -#ifdef __powerpc64__ - unsigned long st_nlink; - mode_t st_mode; -#else - mode_t st_mode; - unsigned short st_nlink; -#endif - uid_t st_uid; - gid_t st_gid; - unsigned long st_rdev; - long st_size; - unsigned long st_blksize; - unsigned long st_blocks; - unsigned long st_atime; - unsigned long st_atime_nsec; - unsigned long st_mtime; - unsigned long st_mtime_nsec; - unsigned long st_ctime; - unsigned long st_ctime_nsec; - unsigned long __unused4; - unsigned long __unused5; -#ifdef __powerpc64__ - unsigned long __unused6; -#endif -}; - -/* This matches struct stat64 in glibc2.1. Only used for 32 bit. */ -struct stat64 { - unsigned long long st_dev; /* Device. */ - unsigned long long st_ino; /* File serial number. */ - unsigned int st_mode; /* File mode. */ - unsigned int st_nlink; /* Link count. */ - unsigned int st_uid; /* User ID of the file's owner. */ - unsigned int st_gid; /* Group ID of the file's group. */ - unsigned long long st_rdev; /* Device number, if device. */ - unsigned short __pad2; - long long st_size; /* Size of file, in bytes. */ - int st_blksize; /* Optimal block size for I/O. */ - long long st_blocks; /* Number 512-byte blocks allocated. */ - int st_atime; /* Time of last access. */ - unsigned int st_atime_nsec; - int st_mtime; /* Time of last modification. */ - unsigned int st_mtime_nsec; - int st_ctime; /* Time of last status change. */ - unsigned int st_ctime_nsec; - unsigned int __unused4; - unsigned int __unused5; -}; - -#endif /* _ASM_POWERPC_STAT_H */ diff --git a/contrib/libs/linux-headers/asm/stat_x86.h b/contrib/libs/linux-headers/asm/stat_x86.h deleted file mode 100644 index 9e3982d95d0..00000000000 --- a/contrib/libs/linux-headers/asm/stat_x86.h +++ /dev/null @@ -1,138 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_STAT_H -#define _ASM_X86_STAT_H - -#include <asm/posix_types.h> - -#define STAT_HAVE_NSEC 1 - -#ifdef __i386__ -struct stat { - unsigned long st_dev; - unsigned long st_ino; - unsigned short st_mode; - unsigned short st_nlink; - unsigned short st_uid; - unsigned short st_gid; - unsigned long st_rdev; - unsigned long st_size; - unsigned long st_blksize; - unsigned long st_blocks; - unsigned long st_atime; - unsigned long st_atime_nsec; - unsigned long st_mtime; - unsigned long st_mtime_nsec; - unsigned long st_ctime; - unsigned long st_ctime_nsec; - unsigned long __unused4; - unsigned long __unused5; -}; - -/* We don't need to memset the whole thing just to initialize the padding */ -#define INIT_STRUCT_STAT_PADDING(st) do { \ - st.__unused4 = 0; \ - st.__unused5 = 0; \ -} while (0) - -#define STAT64_HAS_BROKEN_ST_INO 1 - -/* This matches struct stat64 in glibc2.1, hence the absolutely - * insane amounts of padding around dev_t's. - */ -struct stat64 { - unsigned long long st_dev; - unsigned char __pad0[4]; - - unsigned long __st_ino; - - unsigned int st_mode; - unsigned int st_nlink; - - unsigned long st_uid; - unsigned long st_gid; - - unsigned long long st_rdev; - unsigned char __pad3[4]; - - long long st_size; - unsigned long st_blksize; - - /* Number 512-byte blocks allocated. */ - unsigned long long st_blocks; - - unsigned long st_atime; - unsigned long st_atime_nsec; - - unsigned long st_mtime; - unsigned int st_mtime_nsec; - - unsigned long st_ctime; - unsigned long st_ctime_nsec; - - unsigned long long st_ino; -}; - -/* We don't need to memset the whole thing just to initialize the padding */ -#define INIT_STRUCT_STAT64_PADDING(st) do { \ - memset(&st.__pad0, 0, sizeof(st.__pad0)); \ - memset(&st.__pad3, 0, sizeof(st.__pad3)); \ -} while (0) - -#else /* __i386__ */ - -struct stat { - __kernel_ulong_t st_dev; - __kernel_ulong_t st_ino; - __kernel_ulong_t st_nlink; - - unsigned int st_mode; - unsigned int st_uid; - unsigned int st_gid; - unsigned int __pad0; - __kernel_ulong_t st_rdev; - __kernel_long_t st_size; - __kernel_long_t st_blksize; - __kernel_long_t st_blocks; /* Number 512-byte blocks allocated. */ - - __kernel_ulong_t st_atime; - __kernel_ulong_t st_atime_nsec; - __kernel_ulong_t st_mtime; - __kernel_ulong_t st_mtime_nsec; - __kernel_ulong_t st_ctime; - __kernel_ulong_t st_ctime_nsec; - __kernel_long_t __unused[3]; -}; - -/* We don't need to memset the whole thing just to initialize the padding */ -#define INIT_STRUCT_STAT_PADDING(st) do { \ - st.__pad0 = 0; \ - st.__unused[0] = 0; \ - st.__unused[1] = 0; \ - st.__unused[2] = 0; \ -} while (0) - -#endif - -/* for 32bit emulation and 32 bit kernels */ -struct __old_kernel_stat { - unsigned short st_dev; - unsigned short st_ino; - unsigned short st_mode; - unsigned short st_nlink; - unsigned short st_uid; - unsigned short st_gid; - unsigned short st_rdev; -#ifdef __i386__ - unsigned long st_size; - unsigned long st_atime; - unsigned long st_mtime; - unsigned long st_ctime; -#else - unsigned int st_size; - unsigned int st_atime; - unsigned int st_mtime; - unsigned int st_ctime; -#endif -}; - -#endif /* _ASM_X86_STAT_H */ diff --git a/contrib/libs/linux-headers/asm/statfs.h b/contrib/libs/linux-headers/asm/statfs.h deleted file mode 100644 index 74c85cd29de..00000000000 --- a/contrib/libs/linux-headers/asm/statfs.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "statfs_arm.h" -#elif defined(__aarch64__) -#include "statfs_arm64.h" -#elif defined(__powerpc__) -#include "statfs_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "statfs_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/statfs_arm.h b/contrib/libs/linux-headers/asm/statfs_arm.h deleted file mode 100644 index 177f0854007..00000000000 --- a/contrib/libs/linux-headers/asm/statfs_arm.h +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASMARM_STATFS_H -#define _ASMARM_STATFS_H - -/* - * With EABI there is 4 bytes of padding added to this structure. - * Let's pack it so the padding goes away to simplify dual ABI support. - * Note that user space does NOT have to pack this structure. - */ -#define ARCH_PACK_STATFS64 __attribute__((packed,aligned(4))) - -#include <asm-generic/statfs.h> -#endif diff --git a/contrib/libs/linux-headers/asm/statfs_arm64.h b/contrib/libs/linux-headers/asm/statfs_arm64.h deleted file mode 100644 index 615357b6ba8..00000000000 --- a/contrib/libs/linux-headers/asm/statfs_arm64.h +++ /dev/null @@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_STATFS_H -#define __ASM_STATFS_H - -#define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed,aligned(4))) - -#include <asm-generic/statfs.h> - -#endif diff --git a/contrib/libs/linux-headers/asm/statfs_powerpc.h b/contrib/libs/linux-headers/asm/statfs_powerpc.h deleted file mode 100644 index 0b91fe198c2..00000000000 --- a/contrib/libs/linux-headers/asm/statfs_powerpc.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/statfs.h> diff --git a/contrib/libs/linux-headers/asm/statfs_x86.h b/contrib/libs/linux-headers/asm/statfs_x86.h deleted file mode 100644 index 13c2464cd2c..00000000000 --- a/contrib/libs/linux-headers/asm/statfs_x86.h +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_STATFS_H -#define _ASM_X86_STATFS_H - -/* - * We need compat_statfs64 to be packed, because the i386 ABI won't - * add padding at the end to bring it to a multiple of 8 bytes, but - * the x86_64 ABI will. - */ -#define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed,aligned(4))) - -#include <asm-generic/statfs.h> -#endif /* _ASM_X86_STATFS_H */ diff --git a/contrib/libs/linux-headers/asm/sve_context.h b/contrib/libs/linux-headers/asm/sve_context.h deleted file mode 100644 index 7da061b78ff..00000000000 --- a/contrib/libs/linux-headers/asm/sve_context.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#include "sve_context_arm64.h" -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/sve_context_arm64.h b/contrib/libs/linux-headers/asm/sve_context_arm64.h deleted file mode 100644 index 1d0e3e1d095..00000000000 --- a/contrib/libs/linux-headers/asm/sve_context_arm64.h +++ /dev/null @@ -1,53 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* Copyright (C) 2017-2018 ARM Limited */ - -/* - * For use by other UAPI headers only. - * Do not make direct use of header or its definitions. - */ - -#ifndef __ASM_SVE_CONTEXT_H -#define __ASM_SVE_CONTEXT_H - -#include <linux/types.h> - -#define __SVE_VQ_BYTES 16 /* number of bytes per quadword */ - -#define __SVE_VQ_MIN 1 -#define __SVE_VQ_MAX 512 - -#define __SVE_VL_MIN (__SVE_VQ_MIN * __SVE_VQ_BYTES) -#define __SVE_VL_MAX (__SVE_VQ_MAX * __SVE_VQ_BYTES) - -#define __SVE_NUM_ZREGS 32 -#define __SVE_NUM_PREGS 16 - -#define __sve_vl_valid(vl) \ - ((vl) % __SVE_VQ_BYTES == 0 && \ - (vl) >= __SVE_VL_MIN && \ - (vl) <= __SVE_VL_MAX) - -#define __sve_vq_from_vl(vl) ((vl) / __SVE_VQ_BYTES) -#define __sve_vl_from_vq(vq) ((vq) * __SVE_VQ_BYTES) - -#define __SVE_ZREG_SIZE(vq) ((__u32)(vq) * __SVE_VQ_BYTES) -#define __SVE_PREG_SIZE(vq) ((__u32)(vq) * (__SVE_VQ_BYTES / 8)) -#define __SVE_FFR_SIZE(vq) __SVE_PREG_SIZE(vq) - -#define __SVE_ZREGS_OFFSET 0 -#define __SVE_ZREG_OFFSET(vq, n) \ - (__SVE_ZREGS_OFFSET + __SVE_ZREG_SIZE(vq) * (n)) -#define __SVE_ZREGS_SIZE(vq) \ - (__SVE_ZREG_OFFSET(vq, __SVE_NUM_ZREGS) - __SVE_ZREGS_OFFSET) - -#define __SVE_PREGS_OFFSET(vq) \ - (__SVE_ZREGS_OFFSET + __SVE_ZREGS_SIZE(vq)) -#define __SVE_PREG_OFFSET(vq, n) \ - (__SVE_PREGS_OFFSET(vq) + __SVE_PREG_SIZE(vq) * (n)) -#define __SVE_PREGS_SIZE(vq) \ - (__SVE_PREG_OFFSET(vq, __SVE_NUM_PREGS) - __SVE_PREGS_OFFSET(vq)) - -#define __SVE_FFR_OFFSET(vq) \ - (__SVE_PREGS_OFFSET(vq) + __SVE_PREGS_SIZE(vq)) - -#endif /* ! _UAPI__ASM_SVE_CONTEXT_H */ diff --git a/contrib/libs/linux-headers/asm/svm.h b/contrib/libs/linux-headers/asm/svm.h deleted file mode 100644 index 1e28f78447a..00000000000 --- a/contrib/libs/linux-headers/asm/svm.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "svm_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/svm_x86.h b/contrib/libs/linux-headers/asm/svm_x86.h deleted file mode 100644 index 60775160b07..00000000000 --- a/contrib/libs/linux-headers/asm/svm_x86.h +++ /dev/null @@ -1,180 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __SVM_H -#define __SVM_H - -#define SVM_EXIT_READ_CR0 0x000 -#define SVM_EXIT_READ_CR2 0x002 -#define SVM_EXIT_READ_CR3 0x003 -#define SVM_EXIT_READ_CR4 0x004 -#define SVM_EXIT_READ_CR8 0x008 -#define SVM_EXIT_WRITE_CR0 0x010 -#define SVM_EXIT_WRITE_CR2 0x012 -#define SVM_EXIT_WRITE_CR3 0x013 -#define SVM_EXIT_WRITE_CR4 0x014 -#define SVM_EXIT_WRITE_CR8 0x018 -#define SVM_EXIT_READ_DR0 0x020 -#define SVM_EXIT_READ_DR1 0x021 -#define SVM_EXIT_READ_DR2 0x022 -#define SVM_EXIT_READ_DR3 0x023 -#define SVM_EXIT_READ_DR4 0x024 -#define SVM_EXIT_READ_DR5 0x025 -#define SVM_EXIT_READ_DR6 0x026 -#define SVM_EXIT_READ_DR7 0x027 -#define SVM_EXIT_WRITE_DR0 0x030 -#define SVM_EXIT_WRITE_DR1 0x031 -#define SVM_EXIT_WRITE_DR2 0x032 -#define SVM_EXIT_WRITE_DR3 0x033 -#define SVM_EXIT_WRITE_DR4 0x034 -#define SVM_EXIT_WRITE_DR5 0x035 -#define SVM_EXIT_WRITE_DR6 0x036 -#define SVM_EXIT_WRITE_DR7 0x037 -#define SVM_EXIT_EXCP_BASE 0x040 -#define SVM_EXIT_INTR 0x060 -#define SVM_EXIT_NMI 0x061 -#define SVM_EXIT_SMI 0x062 -#define SVM_EXIT_INIT 0x063 -#define SVM_EXIT_VINTR 0x064 -#define SVM_EXIT_CR0_SEL_WRITE 0x065 -#define SVM_EXIT_IDTR_READ 0x066 -#define SVM_EXIT_GDTR_READ 0x067 -#define SVM_EXIT_LDTR_READ 0x068 -#define SVM_EXIT_TR_READ 0x069 -#define SVM_EXIT_IDTR_WRITE 0x06a -#define SVM_EXIT_GDTR_WRITE 0x06b -#define SVM_EXIT_LDTR_WRITE 0x06c -#define SVM_EXIT_TR_WRITE 0x06d -#define SVM_EXIT_RDTSC 0x06e -#define SVM_EXIT_RDPMC 0x06f -#define SVM_EXIT_PUSHF 0x070 -#define SVM_EXIT_POPF 0x071 -#define SVM_EXIT_CPUID 0x072 -#define SVM_EXIT_RSM 0x073 -#define SVM_EXIT_IRET 0x074 -#define SVM_EXIT_SWINT 0x075 -#define SVM_EXIT_INVD 0x076 -#define SVM_EXIT_PAUSE 0x077 -#define SVM_EXIT_HLT 0x078 -#define SVM_EXIT_INVLPG 0x079 -#define SVM_EXIT_INVLPGA 0x07a -#define SVM_EXIT_IOIO 0x07b -#define SVM_EXIT_MSR 0x07c -#define SVM_EXIT_TASK_SWITCH 0x07d -#define SVM_EXIT_FERR_FREEZE 0x07e -#define SVM_EXIT_SHUTDOWN 0x07f -#define SVM_EXIT_VMRUN 0x080 -#define SVM_EXIT_VMMCALL 0x081 -#define SVM_EXIT_VMLOAD 0x082 -#define SVM_EXIT_VMSAVE 0x083 -#define SVM_EXIT_STGI 0x084 -#define SVM_EXIT_CLGI 0x085 -#define SVM_EXIT_SKINIT 0x086 -#define SVM_EXIT_RDTSCP 0x087 -#define SVM_EXIT_ICEBP 0x088 -#define SVM_EXIT_WBINVD 0x089 -#define SVM_EXIT_MONITOR 0x08a -#define SVM_EXIT_MWAIT 0x08b -#define SVM_EXIT_MWAIT_COND 0x08c -#define SVM_EXIT_XSETBV 0x08d -#define SVM_EXIT_RDPRU 0x08e -#define SVM_EXIT_NPF 0x400 -#define SVM_EXIT_AVIC_INCOMPLETE_IPI 0x401 -#define SVM_EXIT_AVIC_UNACCELERATED_ACCESS 0x402 - -#define SVM_EXIT_ERR -1 - -#define SVM_EXIT_REASONS \ - { SVM_EXIT_READ_CR0, "read_cr0" }, \ - { SVM_EXIT_READ_CR2, "read_cr2" }, \ - { SVM_EXIT_READ_CR3, "read_cr3" }, \ - { SVM_EXIT_READ_CR4, "read_cr4" }, \ - { SVM_EXIT_READ_CR8, "read_cr8" }, \ - { SVM_EXIT_WRITE_CR0, "write_cr0" }, \ - { SVM_EXIT_WRITE_CR2, "write_cr2" }, \ - { SVM_EXIT_WRITE_CR3, "write_cr3" }, \ - { SVM_EXIT_WRITE_CR4, "write_cr4" }, \ - { SVM_EXIT_WRITE_CR8, "write_cr8" }, \ - { SVM_EXIT_READ_DR0, "read_dr0" }, \ - { SVM_EXIT_READ_DR1, "read_dr1" }, \ - { SVM_EXIT_READ_DR2, "read_dr2" }, \ - { SVM_EXIT_READ_DR3, "read_dr3" }, \ - { SVM_EXIT_READ_DR4, "read_dr4" }, \ - { SVM_EXIT_READ_DR5, "read_dr5" }, \ - { SVM_EXIT_READ_DR6, "read_dr6" }, \ - { SVM_EXIT_READ_DR7, "read_dr7" }, \ - { SVM_EXIT_WRITE_DR0, "write_dr0" }, \ - { SVM_EXIT_WRITE_DR1, "write_dr1" }, \ - { SVM_EXIT_WRITE_DR2, "write_dr2" }, \ - { SVM_EXIT_WRITE_DR3, "write_dr3" }, \ - { SVM_EXIT_WRITE_DR4, "write_dr4" }, \ - { SVM_EXIT_WRITE_DR5, "write_dr5" }, \ - { SVM_EXIT_WRITE_DR6, "write_dr6" }, \ - { SVM_EXIT_WRITE_DR7, "write_dr7" }, \ - { SVM_EXIT_EXCP_BASE + DE_VECTOR, "DE excp" }, \ - { SVM_EXIT_EXCP_BASE + DB_VECTOR, "DB excp" }, \ - { SVM_EXIT_EXCP_BASE + BP_VECTOR, "BP excp" }, \ - { SVM_EXIT_EXCP_BASE + OF_VECTOR, "OF excp" }, \ - { SVM_EXIT_EXCP_BASE + BR_VECTOR, "BR excp" }, \ - { SVM_EXIT_EXCP_BASE + UD_VECTOR, "UD excp" }, \ - { SVM_EXIT_EXCP_BASE + NM_VECTOR, "NM excp" }, \ - { SVM_EXIT_EXCP_BASE + DF_VECTOR, "DF excp" }, \ - { SVM_EXIT_EXCP_BASE + TS_VECTOR, "TS excp" }, \ - { SVM_EXIT_EXCP_BASE + NP_VECTOR, "NP excp" }, \ - { SVM_EXIT_EXCP_BASE + SS_VECTOR, "SS excp" }, \ - { SVM_EXIT_EXCP_BASE + GP_VECTOR, "GP excp" }, \ - { SVM_EXIT_EXCP_BASE + PF_VECTOR, "PF excp" }, \ - { SVM_EXIT_EXCP_BASE + MF_VECTOR, "MF excp" }, \ - { SVM_EXIT_EXCP_BASE + AC_VECTOR, "AC excp" }, \ - { SVM_EXIT_EXCP_BASE + MC_VECTOR, "MC excp" }, \ - { SVM_EXIT_EXCP_BASE + XM_VECTOR, "XF excp" }, \ - { SVM_EXIT_INTR, "interrupt" }, \ - { SVM_EXIT_NMI, "nmi" }, \ - { SVM_EXIT_SMI, "smi" }, \ - { SVM_EXIT_INIT, "init" }, \ - { SVM_EXIT_VINTR, "vintr" }, \ - { SVM_EXIT_CR0_SEL_WRITE, "cr0_sel_write" }, \ - { SVM_EXIT_IDTR_READ, "read_idtr" }, \ - { SVM_EXIT_GDTR_READ, "read_gdtr" }, \ - { SVM_EXIT_LDTR_READ, "read_ldtr" }, \ - { SVM_EXIT_TR_READ, "read_rt" }, \ - { SVM_EXIT_IDTR_WRITE, "write_idtr" }, \ - { SVM_EXIT_GDTR_WRITE, "write_gdtr" }, \ - { SVM_EXIT_LDTR_WRITE, "write_ldtr" }, \ - { SVM_EXIT_TR_WRITE, "write_rt" }, \ - { SVM_EXIT_RDTSC, "rdtsc" }, \ - { SVM_EXIT_RDPMC, "rdpmc" }, \ - { SVM_EXIT_PUSHF, "pushf" }, \ - { SVM_EXIT_POPF, "popf" }, \ - { SVM_EXIT_CPUID, "cpuid" }, \ - { SVM_EXIT_RSM, "rsm" }, \ - { SVM_EXIT_IRET, "iret" }, \ - { SVM_EXIT_SWINT, "swint" }, \ - { SVM_EXIT_INVD, "invd" }, \ - { SVM_EXIT_PAUSE, "pause" }, \ - { SVM_EXIT_HLT, "hlt" }, \ - { SVM_EXIT_INVLPG, "invlpg" }, \ - { SVM_EXIT_INVLPGA, "invlpga" }, \ - { SVM_EXIT_IOIO, "io" }, \ - { SVM_EXIT_MSR, "msr" }, \ - { SVM_EXIT_TASK_SWITCH, "task_switch" }, \ - { SVM_EXIT_FERR_FREEZE, "ferr_freeze" }, \ - { SVM_EXIT_SHUTDOWN, "shutdown" }, \ - { SVM_EXIT_VMRUN, "vmrun" }, \ - { SVM_EXIT_VMMCALL, "hypercall" }, \ - { SVM_EXIT_VMLOAD, "vmload" }, \ - { SVM_EXIT_VMSAVE, "vmsave" }, \ - { SVM_EXIT_STGI, "stgi" }, \ - { SVM_EXIT_CLGI, "clgi" }, \ - { SVM_EXIT_SKINIT, "skinit" }, \ - { SVM_EXIT_RDTSCP, "rdtscp" }, \ - { SVM_EXIT_ICEBP, "icebp" }, \ - { SVM_EXIT_WBINVD, "wbinvd" }, \ - { SVM_EXIT_MONITOR, "monitor" }, \ - { SVM_EXIT_MWAIT, "mwait" }, \ - { SVM_EXIT_XSETBV, "xsetbv" }, \ - { SVM_EXIT_NPF, "npf" }, \ - { SVM_EXIT_AVIC_INCOMPLETE_IPI, "avic_incomplete_ipi" }, \ - { SVM_EXIT_AVIC_UNACCELERATED_ACCESS, "avic_unaccelerated_access" }, \ - { SVM_EXIT_ERR, "invalid_guest_state" } - - -#endif /* __SVM_H */ diff --git a/contrib/libs/linux-headers/asm/swab.h b/contrib/libs/linux-headers/asm/swab.h deleted file mode 100644 index 978a98bc424..00000000000 --- a/contrib/libs/linux-headers/asm/swab.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "swab_arm.h" -#elif defined(__aarch64__) -#include "swab_arm64.h" -#elif defined(__powerpc__) -#include "swab_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "swab_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/swab_arm.h b/contrib/libs/linux-headers/asm/swab_arm.h deleted file mode 100644 index 8aabe5fa980..00000000000 --- a/contrib/libs/linux-headers/asm/swab_arm.h +++ /dev/null @@ -1,52 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * arch/arm/include/asm/byteorder.h - * - * ARM Endian-ness. In little endian mode, the data bus is connected such - * that byte accesses appear as: - * 0 = d0...d7, 1 = d8...d15, 2 = d16...d23, 3 = d24...d31 - * and word accesses (data or instruction) appear as: - * d0...d31 - * - * When in big endian mode, byte accesses appear as: - * 0 = d24...d31, 1 = d16...d23, 2 = d8...d15, 3 = d0...d7 - * and word accesses (data or instruction) appear as: - * d0...d31 - */ -#ifndef __ASM_ARM_SWAB_H -#define __ASM_ARM_SWAB_H - - -#include <linux/types.h> - -#if !defined(__STRICT_ANSI__) || defined(__KERNEL__) -# define __SWAB_64_THRU_32__ -#endif - - -static __inline__ __u32 __arch_swab32(__u32 x) -{ - __u32 t; - -#ifndef __thumb__ - if (!__builtin_constant_p(x)) { - /* - * The compiler needs a bit of a hint here to always do the - * right thing and not screw it up to different degrees - * depending on the gcc version. - */ - __asm__ ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); - } else -#endif - t = x ^ ((x << 16) | (x >> 16)); /* eor r1,r0,r0,ror #16 */ - - x = (x << 24) | (x >> 8); /* mov r0,r0,ror #8 */ - t &= ~0x00FF0000; /* bic r1,r1,#0x00FF0000 */ - x ^= (t >> 8); /* eor r0,r0,r1,lsr #8 */ - - return x; -} -#define __arch_swab32 __arch_swab32 - - -#endif /* __ASM_ARM_SWAB_H */ diff --git a/contrib/libs/linux-headers/asm/swab_arm64.h b/contrib/libs/linux-headers/asm/swab_arm64.h deleted file mode 100644 index 7847e563ab6..00000000000 --- a/contrib/libs/linux-headers/asm/swab_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/swab.h> diff --git a/contrib/libs/linux-headers/asm/swab_powerpc.h b/contrib/libs/linux-headers/asm/swab_powerpc.h deleted file mode 100644 index 5d39c6c3fea..00000000000 --- a/contrib/libs/linux-headers/asm/swab_powerpc.h +++ /dev/null @@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -#ifndef _ASM_POWERPC_SWAB_H -#define _ASM_POWERPC_SWAB_H - - -#include <linux/types.h> - - -#ifdef __GNUC__ - -#ifndef __powerpc64__ -#define __SWAB_64_THRU_32__ -#endif /* __powerpc64__ */ - - -#endif /* __GNUC__ */ - -#endif /* _ASM_POWERPC_SWAB_H */ diff --git a/contrib/libs/linux-headers/asm/swab_x86.h b/contrib/libs/linux-headers/asm/swab_x86.h deleted file mode 100644 index 5353f76c9ae..00000000000 --- a/contrib/libs/linux-headers/asm/swab_x86.h +++ /dev/null @@ -1,37 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_SWAB_H -#define _ASM_X86_SWAB_H - -#include <linux/types.h> - - -static __inline__ __u32 __arch_swab32(__u32 val) -{ - __asm__("bswapl %0" : "=r" (val) : "0" (val)); - return val; -} -#define __arch_swab32 __arch_swab32 - -static __inline__ __u64 __arch_swab64(__u64 val) -{ -#ifdef __i386__ - union { - struct { - __u32 a; - __u32 b; - } s; - __u64 u; - } v; - v.u = val; - __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1" - : "=r" (v.s.a), "=r" (v.s.b) - : "0" (v.s.a), "1" (v.s.b)); - return v.u; -#else /* __i386__ */ - __asm__("bswapq %0" : "=r" (val) : "0" (val)); - return val; -#endif -} -#define __arch_swab64 __arch_swab64 - -#endif /* _ASM_X86_SWAB_H */ diff --git a/contrib/libs/linux-headers/asm/termbits.h b/contrib/libs/linux-headers/asm/termbits.h deleted file mode 100644 index 07571a39cb7..00000000000 --- a/contrib/libs/linux-headers/asm/termbits.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "termbits_arm.h" -#elif defined(__aarch64__) -#include "termbits_arm64.h" -#elif defined(__powerpc__) -#include "termbits_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "termbits_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/termbits_arm.h b/contrib/libs/linux-headers/asm/termbits_arm.h deleted file mode 100644 index 3935b106de7..00000000000 --- a/contrib/libs/linux-headers/asm/termbits_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/termbits.h> diff --git a/contrib/libs/linux-headers/asm/termbits_arm64.h b/contrib/libs/linux-headers/asm/termbits_arm64.h deleted file mode 100644 index 3935b106de7..00000000000 --- a/contrib/libs/linux-headers/asm/termbits_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/termbits.h> diff --git a/contrib/libs/linux-headers/asm/termbits_powerpc.h b/contrib/libs/linux-headers/asm/termbits_powerpc.h deleted file mode 100644 index ed18bc61f63..00000000000 --- a/contrib/libs/linux-headers/asm/termbits_powerpc.h +++ /dev/null @@ -1,211 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_TERMBITS_H -#define _ASM_POWERPC_TERMBITS_H - -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ - -typedef unsigned char cc_t; -typedef unsigned int speed_t; -typedef unsigned int tcflag_t; - -/* - * termios type and macro definitions. Be careful about adding stuff - * to this file since it's used in GNU libc and there are strict rules - * concerning namespace pollution. - */ - -#define NCCS 19 -struct termios { - tcflag_t c_iflag; /* input mode flags */ - tcflag_t c_oflag; /* output mode flags */ - tcflag_t c_cflag; /* control mode flags */ - tcflag_t c_lflag; /* local mode flags */ - cc_t c_cc[NCCS]; /* control characters */ - cc_t c_line; /* line discipline (== c_cc[19]) */ - speed_t c_ispeed; /* input speed */ - speed_t c_ospeed; /* output speed */ -}; - -/* For PowerPC the termios and ktermios are the same */ - -struct ktermios { - tcflag_t c_iflag; /* input mode flags */ - tcflag_t c_oflag; /* output mode flags */ - tcflag_t c_cflag; /* control mode flags */ - tcflag_t c_lflag; /* local mode flags */ - cc_t c_cc[NCCS]; /* control characters */ - cc_t c_line; /* line discipline (== c_cc[19]) */ - speed_t c_ispeed; /* input speed */ - speed_t c_ospeed; /* output speed */ -}; - -/* c_cc characters */ -#define VINTR 0 -#define VQUIT 1 -#define VERASE 2 -#define VKILL 3 -#define VEOF 4 -#define VMIN 5 -#define VEOL 6 -#define VTIME 7 -#define VEOL2 8 -#define VSWTC 9 -#define VWERASE 10 -#define VREPRINT 11 -#define VSUSP 12 -#define VSTART 13 -#define VSTOP 14 -#define VLNEXT 15 -#define VDISCARD 16 - -/* c_iflag bits */ -#define IGNBRK 0000001 -#define BRKINT 0000002 -#define IGNPAR 0000004 -#define PARMRK 0000010 -#define INPCK 0000020 -#define ISTRIP 0000040 -#define INLCR 0000100 -#define IGNCR 0000200 -#define ICRNL 0000400 -#define IXON 0001000 -#define IXOFF 0002000 -#define IXANY 0004000 -#define IUCLC 0010000 -#define IMAXBEL 0020000 -#define IUTF8 0040000 - -/* c_oflag bits */ -#define OPOST 0000001 -#define ONLCR 0000002 -#define OLCUC 0000004 - -#define OCRNL 0000010 -#define ONOCR 0000020 -#define ONLRET 0000040 - -#define OFILL 00000100 -#define OFDEL 00000200 -#define NLDLY 00001400 -#define NL0 00000000 -#define NL1 00000400 -#define NL2 00001000 -#define NL3 00001400 -#define TABDLY 00006000 -#define TAB0 00000000 -#define TAB1 00002000 -#define TAB2 00004000 -#define TAB3 00006000 -#define XTABS 00006000 /* required by POSIX to == TAB3 */ -#define CRDLY 00030000 -#define CR0 00000000 -#define CR1 00010000 -#define CR2 00020000 -#define CR3 00030000 -#define FFDLY 00040000 -#define FF0 00000000 -#define FF1 00040000 -#define BSDLY 00100000 -#define BS0 00000000 -#define BS1 00100000 -#define VTDLY 00200000 -#define VT0 00000000 -#define VT1 00200000 - -/* c_cflag bit meaning */ -#define CBAUD 0000377 -#define B0 0000000 /* hang up */ -#define B50 0000001 -#define B75 0000002 -#define B110 0000003 -#define B134 0000004 -#define B150 0000005 -#define B200 0000006 -#define B300 0000007 -#define B600 0000010 -#define B1200 0000011 -#define B1800 0000012 -#define B2400 0000013 -#define B4800 0000014 -#define B9600 0000015 -#define B19200 0000016 -#define B38400 0000017 -#define EXTA B19200 -#define EXTB B38400 -#define CBAUDEX 0000000 -#define B57600 00020 -#define B115200 00021 -#define B230400 00022 -#define B460800 00023 -#define B500000 00024 -#define B576000 00025 -#define B921600 00026 -#define B1000000 00027 -#define B1152000 00030 -#define B1500000 00031 -#define B2000000 00032 -#define B2500000 00033 -#define B3000000 00034 -#define B3500000 00035 -#define B4000000 00036 -#define BOTHER 00037 - -#define CIBAUD 077600000 -#define IBSHIFT 16 /* Shift from CBAUD to CIBAUD */ - -#define CSIZE 00001400 -#define CS5 00000000 -#define CS6 00000400 -#define CS7 00001000 -#define CS8 00001400 - -#define CSTOPB 00002000 -#define CREAD 00004000 -#define PARENB 00010000 -#define PARODD 00020000 -#define HUPCL 00040000 - -#define CLOCAL 00100000 -#define CMSPAR 010000000000 /* mark or space (stick) parity */ -#define CRTSCTS 020000000000 /* flow control */ - -/* c_lflag bits */ -#define ISIG 0x00000080 -#define ICANON 0x00000100 -#define XCASE 0x00004000 -#define ECHO 0x00000008 -#define ECHOE 0x00000002 -#define ECHOK 0x00000004 -#define ECHONL 0x00000010 -#define NOFLSH 0x80000000 -#define TOSTOP 0x00400000 -#define ECHOCTL 0x00000040 -#define ECHOPRT 0x00000020 -#define ECHOKE 0x00000001 -#define FLUSHO 0x00800000 -#define PENDIN 0x20000000 -#define IEXTEN 0x00000400 -#define EXTPROC 0x10000000 - -/* Values for the ACTION argument to `tcflow'. */ -#define TCOOFF 0 -#define TCOON 1 -#define TCIOFF 2 -#define TCION 3 - -/* Values for the QUEUE_SELECTOR argument to `tcflush'. */ -#define TCIFLUSH 0 -#define TCOFLUSH 1 -#define TCIOFLUSH 2 - -/* Values for the OPTIONAL_ACTIONS argument to `tcsetattr'. */ -#define TCSANOW 0 -#define TCSADRAIN 1 -#define TCSAFLUSH 2 - -#endif /* _ASM_POWERPC_TERMBITS_H */ diff --git a/contrib/libs/linux-headers/asm/termbits_x86.h b/contrib/libs/linux-headers/asm/termbits_x86.h deleted file mode 100644 index 3935b106de7..00000000000 --- a/contrib/libs/linux-headers/asm/termbits_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/termbits.h> diff --git a/contrib/libs/linux-headers/asm/termios.h b/contrib/libs/linux-headers/asm/termios.h deleted file mode 100644 index b36ee416d96..00000000000 --- a/contrib/libs/linux-headers/asm/termios.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "termios_arm.h" -#elif defined(__aarch64__) -#include "termios_arm64.h" -#elif defined(__powerpc__) -#include "termios_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "termios_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/termios_arm.h b/contrib/libs/linux-headers/asm/termios_arm.h deleted file mode 100644 index 280d78a9d96..00000000000 --- a/contrib/libs/linux-headers/asm/termios_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/termios.h> diff --git a/contrib/libs/linux-headers/asm/termios_arm64.h b/contrib/libs/linux-headers/asm/termios_arm64.h deleted file mode 100644 index 280d78a9d96..00000000000 --- a/contrib/libs/linux-headers/asm/termios_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/termios.h> diff --git a/contrib/libs/linux-headers/asm/termios_powerpc.h b/contrib/libs/linux-headers/asm/termios_powerpc.h deleted file mode 100644 index 3229dcaaa07..00000000000 --- a/contrib/libs/linux-headers/asm/termios_powerpc.h +++ /dev/null @@ -1,77 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * Liberally adapted from alpha/termios.h. In particular, the c_cc[] - * fields have been reordered so that termio & termios share the - * common subset in the same order (for brain dead programs that don't - * know or care about the differences). - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -#ifndef _ASM_POWERPC_TERMIOS_H -#define _ASM_POWERPC_TERMIOS_H - - -#include <asm/ioctls.h> -#include <asm/termbits.h> - -struct sgttyb { - char sg_ispeed; - char sg_ospeed; - char sg_erase; - char sg_kill; - short sg_flags; -}; - -struct tchars { - char t_intrc; - char t_quitc; - char t_startc; - char t_stopc; - char t_eofc; - char t_brkc; -}; - -struct ltchars { - char t_suspc; - char t_dsuspc; - char t_rprntc; - char t_flushc; - char t_werasc; - char t_lnextc; -}; - -struct winsize { - unsigned short ws_row; - unsigned short ws_col; - unsigned short ws_xpixel; - unsigned short ws_ypixel; -}; - -#define NCC 10 -struct termio { - unsigned short c_iflag; /* input mode flags */ - unsigned short c_oflag; /* output mode flags */ - unsigned short c_cflag; /* control mode flags */ - unsigned short c_lflag; /* local mode flags */ - unsigned char c_line; /* line discipline */ - unsigned char c_cc[NCC]; /* control characters */ -}; - -/* c_cc characters */ -#define _VINTR 0 -#define _VQUIT 1 -#define _VERASE 2 -#define _VKILL 3 -#define _VEOF 4 -#define _VMIN 5 -#define _VEOL 6 -#define _VTIME 7 -#define _VEOL2 8 -#define _VSWTC 9 - - - -#endif /* _ASM_POWERPC_TERMIOS_H */ diff --git a/contrib/libs/linux-headers/asm/termios_x86.h b/contrib/libs/linux-headers/asm/termios_x86.h deleted file mode 100644 index 280d78a9d96..00000000000 --- a/contrib/libs/linux-headers/asm/termios_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/termios.h> diff --git a/contrib/libs/linux-headers/asm/tm.h b/contrib/libs/linux-headers/asm/tm.h deleted file mode 100644 index 8958d31ee7f..00000000000 --- a/contrib/libs/linux-headers/asm/tm.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "tm_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/tm_powerpc.h b/contrib/libs/linux-headers/asm/tm_powerpc.h deleted file mode 100644 index e1bf0e2fac4..00000000000 --- a/contrib/libs/linux-headers/asm/tm_powerpc.h +++ /dev/null @@ -1,21 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_TM_H -#define _ASM_POWERPC_TM_H - -/* Reason codes describing kernel causes for transaction aborts. By - * convention, bit0 is copied to TEXASR[56] (IBM bit 7) which is set if - * the failure is persistent. PAPR saves 0xff-0xe0 for the hypervisor. - */ -#define TM_CAUSE_PERSISTENT 0x01 -#define TM_CAUSE_KVM_RESCHED 0xe0 /* From PAPR */ -#define TM_CAUSE_KVM_FAC_UNAV 0xe2 /* From PAPR */ -#define TM_CAUSE_RESCHED 0xde -#define TM_CAUSE_TLBI 0xdc -#define TM_CAUSE_FAC_UNAV 0xda -#define TM_CAUSE_SYSCALL 0xd8 -#define TM_CAUSE_MISC 0xd6 /* future use */ -#define TM_CAUSE_SIGNAL 0xd4 -#define TM_CAUSE_ALIGNMENT 0xd2 -#define TM_CAUSE_EMULATE 0xd0 - -#endif diff --git a/contrib/libs/linux-headers/asm/types.h b/contrib/libs/linux-headers/asm/types.h deleted file mode 100644 index 0007fb8b2ba..00000000000 --- a/contrib/libs/linux-headers/asm/types.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "types_arm.h" -#elif defined(__aarch64__) -#include "types_arm64.h" -#elif defined(__powerpc__) -#include "types_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "types_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/types_arm.h b/contrib/libs/linux-headers/asm/types_arm.h deleted file mode 100644 index 5ad3e4d5c19..00000000000 --- a/contrib/libs/linux-headers/asm/types_arm.h +++ /dev/null @@ -1,41 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_TYPES_H -#define _ASM_TYPES_H - -#include <asm-generic/int-ll64.h> - -/* - * The C99 types uintXX_t that are usually defined in 'stdint.h' are not as - * unambiguous on ARM as you would expect. For the types below, there is a - * difference on ARM between GCC built for bare metal ARM, GCC built for glibc - * and the kernel itself, which results in build errors if you try to build with - * -ffreestanding and include 'stdint.h' (such as when you include 'arm_neon.h' - * in order to use NEON intrinsics) - * - * As the typedefs for these types in 'stdint.h' are based on builtin defines - * supplied by GCC, we can tweak these to align with the kernel's idea of those - * types, so 'linux/types.h' and 'stdint.h' can be safely included from the same - * source file (provided that -ffreestanding is used). - * - * int32_t uint32_t uintptr_t - * bare metal GCC long unsigned long unsigned int - * glibc GCC int unsigned int unsigned int - * kernel int unsigned int unsigned long - */ - -#ifdef __INT32_TYPE__ -#undef __INT32_TYPE__ -#define __INT32_TYPE__ int -#endif - -#ifdef __UINT32_TYPE__ -#undef __UINT32_TYPE__ -#define __UINT32_TYPE__ unsigned int -#endif - -#ifdef __UINTPTR_TYPE__ -#undef __UINTPTR_TYPE__ -#define __UINTPTR_TYPE__ unsigned long -#endif - -#endif /* _ASM_TYPES_H */ diff --git a/contrib/libs/linux-headers/asm/types_arm64.h b/contrib/libs/linux-headers/asm/types_arm64.h deleted file mode 100644 index b9e79bc580d..00000000000 --- a/contrib/libs/linux-headers/asm/types_arm64.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/types.h> diff --git a/contrib/libs/linux-headers/asm/types_powerpc.h b/contrib/libs/linux-headers/asm/types_powerpc.h deleted file mode 100644 index 8faa2d0a518..00000000000 --- a/contrib/libs/linux-headers/asm/types_powerpc.h +++ /dev/null @@ -1,41 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * This file is never included by application software unless - * explicitly requested (e.g., via linux/types.h) in which case the - * application is Linux specific so (user-) name space pollution is - * not a major issue. However, for interoperability, libraries still - * need to be careful to avoid a name clashes. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -#ifndef _ASM_POWERPC_TYPES_H -#define _ASM_POWERPC_TYPES_H - -/* - * This is here because we used to use l64 for 64bit powerpc - * and we don't want to impact user mode with our change to ll64 - * in the kernel. - * - * However, some user programs are fine with this. They can - * flag __SANE_USERSPACE_TYPES__ to get int-ll64.h here. - */ -#if !defined(__SANE_USERSPACE_TYPES__) && defined(__powerpc64__) && !defined(__KERNEL__) -# include <asm-generic/int-l64.h> -#else -# include <asm-generic/int-ll64.h> -#endif - -#ifndef __ASSEMBLY__ - - -typedef struct { - __u32 u[4]; -} __attribute__((aligned(16))) __vector128; - -#endif /* __ASSEMBLY__ */ - - -#endif /* _ASM_POWERPC_TYPES_H */ diff --git a/contrib/libs/linux-headers/asm/types_x86.h b/contrib/libs/linux-headers/asm/types_x86.h deleted file mode 100644 index b9e79bc580d..00000000000 --- a/contrib/libs/linux-headers/asm/types_x86.h +++ /dev/null @@ -1 +0,0 @@ -#include <asm-generic/types.h> diff --git a/contrib/libs/linux-headers/asm/ucontext.h b/contrib/libs/linux-headers/asm/ucontext.h deleted file mode 100644 index 02900d682e6..00000000000 --- a/contrib/libs/linux-headers/asm/ucontext.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#include "ucontext_arm64.h" -#elif defined(__powerpc__) -#include "ucontext_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "ucontext_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/ucontext_arm64.h b/contrib/libs/linux-headers/asm/ucontext_arm64.h deleted file mode 100644 index 4b4624e5842..00000000000 --- a/contrib/libs/linux-headers/asm/ucontext_arm64.h +++ /dev/null @@ -1,33 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef __ASM_UCONTEXT_H -#define __ASM_UCONTEXT_H - -#include <linux/types.h> - -struct ucontext { - unsigned long uc_flags; - struct ucontext *uc_link; - stack_t uc_stack; - sigset_t uc_sigmask; - /* glibc uses a 1024-bit sigset_t */ - __u8 __unused[1024 / 8 - sizeof(sigset_t)]; - /* last for future expansion */ - struct sigcontext uc_mcontext; -}; - -#endif /* __ASM_UCONTEXT_H */ diff --git a/contrib/libs/linux-headers/asm/ucontext_powerpc.h b/contrib/libs/linux-headers/asm/ucontext_powerpc.h deleted file mode 100644 index d219170e119..00000000000 --- a/contrib/libs/linux-headers/asm/ucontext_powerpc.h +++ /dev/null @@ -1,41 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_POWERPC_UCONTEXT_H -#define _ASM_POWERPC_UCONTEXT_H - -#ifdef __powerpc64__ -#include <asm/sigcontext.h> -#else -#include <asm/elf.h> -#endif -#include <asm/signal.h> - -#ifndef __powerpc64__ -struct mcontext { - elf_gregset_t mc_gregs; - elf_fpregset_t mc_fregs; - unsigned long mc_pad[2]; - elf_vrregset_t mc_vregs __attribute__((__aligned__(16))); -}; -#endif - -struct ucontext { - unsigned long uc_flags; - struct ucontext *uc_link; - stack_t uc_stack; -#ifndef __powerpc64__ - int uc_pad[7]; - struct mcontext *uc_regs;/* points to uc_mcontext field */ -#endif - sigset_t uc_sigmask; - /* glibc has 1024-bit signal masks, ours are 64-bit */ -#ifdef __powerpc64__ - sigset_t __unused[15]; /* Allow for uc_sigmask growth */ - struct sigcontext uc_mcontext; /* last for extensibility */ -#else - int uc_maskext[30]; - int uc_pad2[3]; - struct mcontext uc_mcontext; -#endif -}; - -#endif /* _ASM_POWERPC_UCONTEXT_H */ diff --git a/contrib/libs/linux-headers/asm/ucontext_x86.h b/contrib/libs/linux-headers/asm/ucontext_x86.h deleted file mode 100644 index 5657b7a49f0..00000000000 --- a/contrib/libs/linux-headers/asm/ucontext_x86.h +++ /dev/null @@ -1,56 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_UCONTEXT_H -#define _ASM_X86_UCONTEXT_H - -/* - * Indicates the presence of extended state information in the memory - * layout pointed by the fpstate pointer in the ucontext's sigcontext - * struct (uc_mcontext). - */ -#define UC_FP_XSTATE 0x1 - -#ifdef __x86_64__ -/* - * UC_SIGCONTEXT_SS will be set when delivering 64-bit or x32 signals on - * kernels that save SS in the sigcontext. All kernels that set - * UC_SIGCONTEXT_SS will correctly restore at least the low 32 bits of esp - * regardless of SS (i.e. they implement espfix). - * - * Kernels that set UC_SIGCONTEXT_SS will also set UC_STRICT_RESTORE_SS - * when delivering a signal that came from 64-bit code. - * - * Sigreturn restores SS as follows: - * - * if (saved SS is valid || UC_STRICT_RESTORE_SS is set || - * saved CS is not 64-bit) - * new SS = saved SS (will fail IRET and signal if invalid) - * else - * new SS = a flat 32-bit data segment - * - * This behavior serves three purposes: - * - * - Legacy programs that construct a 64-bit sigcontext from scratch - * with zero or garbage in the SS slot (e.g. old CRIU) and call - * sigreturn will still work. - * - * - Old DOSEMU versions sometimes catch a signal from a segmented - * context, delete the old SS segment (with modify_ldt), and change - * the saved CS to a 64-bit segment. These DOSEMU versions expect - * sigreturn to send them back to 64-bit mode without killing them, - * despite the fact that the SS selector when the signal was raised is - * no longer valid. UC_STRICT_RESTORE_SS will be clear, so the kernel - * will fix up SS for these DOSEMU versions. - * - * - Old and new programs that catch a signal and return without - * modifying the saved context will end up in exactly the state they - * started in, even if they were running in a segmented context when - * the signal was raised.. Old kernels would lose track of the - * previous SS value. - */ -#define UC_SIGCONTEXT_SS 0x2 -#define UC_STRICT_RESTORE_SS 0x4 -#endif - -#include <asm-generic/ucontext.h> - -#endif /* _ASM_X86_UCONTEXT_H */ diff --git a/contrib/libs/linux-headers/asm/unistd-common.h b/contrib/libs/linux-headers/asm/unistd-common.h deleted file mode 100644 index db7d598fa9e..00000000000 --- a/contrib/libs/linux-headers/asm/unistd-common.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "unistd-common_arm.h" -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/unistd-common_arm.h b/contrib/libs/linux-headers/asm/unistd-common_arm.h deleted file mode 100644 index 23de64e44c4..00000000000 --- a/contrib/libs/linux-headers/asm/unistd-common_arm.h +++ /dev/null @@ -1,396 +0,0 @@ -#ifndef _ASM_ARM_UNISTD_COMMON_H -#define _ASM_ARM_UNISTD_COMMON_H 1 - -#define __NR_restart_syscall (__NR_SYSCALL_BASE + 0) -#define __NR_exit (__NR_SYSCALL_BASE + 1) -#define __NR_fork (__NR_SYSCALL_BASE + 2) -#define __NR_read (__NR_SYSCALL_BASE + 3) -#define __NR_write (__NR_SYSCALL_BASE + 4) -#define __NR_open (__NR_SYSCALL_BASE + 5) -#define __NR_close (__NR_SYSCALL_BASE + 6) -#define __NR_creat (__NR_SYSCALL_BASE + 8) -#define __NR_link (__NR_SYSCALL_BASE + 9) -#define __NR_unlink (__NR_SYSCALL_BASE + 10) -#define __NR_execve (__NR_SYSCALL_BASE + 11) -#define __NR_chdir (__NR_SYSCALL_BASE + 12) -#define __NR_mknod (__NR_SYSCALL_BASE + 14) -#define __NR_chmod (__NR_SYSCALL_BASE + 15) -#define __NR_lchown (__NR_SYSCALL_BASE + 16) -#define __NR_lseek (__NR_SYSCALL_BASE + 19) -#define __NR_getpid (__NR_SYSCALL_BASE + 20) -#define __NR_mount (__NR_SYSCALL_BASE + 21) -#define __NR_setuid (__NR_SYSCALL_BASE + 23) -#define __NR_getuid (__NR_SYSCALL_BASE + 24) -#define __NR_ptrace (__NR_SYSCALL_BASE + 26) -#define __NR_pause (__NR_SYSCALL_BASE + 29) -#define __NR_access (__NR_SYSCALL_BASE + 33) -#define __NR_nice (__NR_SYSCALL_BASE + 34) -#define __NR_sync (__NR_SYSCALL_BASE + 36) -#define __NR_kill (__NR_SYSCALL_BASE + 37) -#define __NR_rename (__NR_SYSCALL_BASE + 38) -#define __NR_mkdir (__NR_SYSCALL_BASE + 39) -#define __NR_rmdir (__NR_SYSCALL_BASE + 40) -#define __NR_dup (__NR_SYSCALL_BASE + 41) -#define __NR_pipe (__NR_SYSCALL_BASE + 42) -#define __NR_times (__NR_SYSCALL_BASE + 43) -#define __NR_brk (__NR_SYSCALL_BASE + 45) -#define __NR_setgid (__NR_SYSCALL_BASE + 46) -#define __NR_getgid (__NR_SYSCALL_BASE + 47) -#define __NR_geteuid (__NR_SYSCALL_BASE + 49) -#define __NR_getegid (__NR_SYSCALL_BASE + 50) -#define __NR_acct (__NR_SYSCALL_BASE + 51) -#define __NR_umount2 (__NR_SYSCALL_BASE + 52) -#define __NR_ioctl (__NR_SYSCALL_BASE + 54) -#define __NR_fcntl (__NR_SYSCALL_BASE + 55) -#define __NR_setpgid (__NR_SYSCALL_BASE + 57) -#define __NR_umask (__NR_SYSCALL_BASE + 60) -#define __NR_chroot (__NR_SYSCALL_BASE + 61) -#define __NR_ustat (__NR_SYSCALL_BASE + 62) -#define __NR_dup2 (__NR_SYSCALL_BASE + 63) -#define __NR_getppid (__NR_SYSCALL_BASE + 64) -#define __NR_getpgrp (__NR_SYSCALL_BASE + 65) -#define __NR_setsid (__NR_SYSCALL_BASE + 66) -#define __NR_sigaction (__NR_SYSCALL_BASE + 67) -#define __NR_setreuid (__NR_SYSCALL_BASE + 70) -#define __NR_setregid (__NR_SYSCALL_BASE + 71) -#define __NR_sigsuspend (__NR_SYSCALL_BASE + 72) -#define __NR_sigpending (__NR_SYSCALL_BASE + 73) -#define __NR_sethostname (__NR_SYSCALL_BASE + 74) -#define __NR_setrlimit (__NR_SYSCALL_BASE + 75) -#define __NR_getrusage (__NR_SYSCALL_BASE + 77) -#define __NR_gettimeofday (__NR_SYSCALL_BASE + 78) -#define __NR_settimeofday (__NR_SYSCALL_BASE + 79) -#define __NR_getgroups (__NR_SYSCALL_BASE + 80) -#define __NR_setgroups (__NR_SYSCALL_BASE + 81) -#define __NR_symlink (__NR_SYSCALL_BASE + 83) -#define __NR_readlink (__NR_SYSCALL_BASE + 85) -#define __NR_uselib (__NR_SYSCALL_BASE + 86) -#define __NR_swapon (__NR_SYSCALL_BASE + 87) -#define __NR_reboot (__NR_SYSCALL_BASE + 88) -#define __NR_munmap (__NR_SYSCALL_BASE + 91) -#define __NR_truncate (__NR_SYSCALL_BASE + 92) -#define __NR_ftruncate (__NR_SYSCALL_BASE + 93) -#define __NR_fchmod (__NR_SYSCALL_BASE + 94) -#define __NR_fchown (__NR_SYSCALL_BASE + 95) -#define __NR_getpriority (__NR_SYSCALL_BASE + 96) -#define __NR_setpriority (__NR_SYSCALL_BASE + 97) -#define __NR_statfs (__NR_SYSCALL_BASE + 99) -#define __NR_fstatfs (__NR_SYSCALL_BASE + 100) -#define __NR_syslog (__NR_SYSCALL_BASE + 103) -#define __NR_setitimer (__NR_SYSCALL_BASE + 104) -#define __NR_getitimer (__NR_SYSCALL_BASE + 105) -#define __NR_stat (__NR_SYSCALL_BASE + 106) -#define __NR_lstat (__NR_SYSCALL_BASE + 107) -#define __NR_fstat (__NR_SYSCALL_BASE + 108) -#define __NR_vhangup (__NR_SYSCALL_BASE + 111) -#define __NR_wait4 (__NR_SYSCALL_BASE + 114) -#define __NR_swapoff (__NR_SYSCALL_BASE + 115) -#define __NR_sysinfo (__NR_SYSCALL_BASE + 116) -#define __NR_fsync (__NR_SYSCALL_BASE + 118) -#define __NR_sigreturn (__NR_SYSCALL_BASE + 119) -#define __NR_clone (__NR_SYSCALL_BASE + 120) -#define __NR_setdomainname (__NR_SYSCALL_BASE + 121) -#define __NR_uname (__NR_SYSCALL_BASE + 122) -#define __NR_adjtimex (__NR_SYSCALL_BASE + 124) -#define __NR_mprotect (__NR_SYSCALL_BASE + 125) -#define __NR_sigprocmask (__NR_SYSCALL_BASE + 126) -#define __NR_init_module (__NR_SYSCALL_BASE + 128) -#define __NR_delete_module (__NR_SYSCALL_BASE + 129) -#define __NR_quotactl (__NR_SYSCALL_BASE + 131) -#define __NR_getpgid (__NR_SYSCALL_BASE + 132) -#define __NR_fchdir (__NR_SYSCALL_BASE + 133) -#define __NR_bdflush (__NR_SYSCALL_BASE + 134) -#define __NR_sysfs (__NR_SYSCALL_BASE + 135) -#define __NR_personality (__NR_SYSCALL_BASE + 136) -#define __NR_setfsuid (__NR_SYSCALL_BASE + 138) -#define __NR_setfsgid (__NR_SYSCALL_BASE + 139) -#define __NR__llseek (__NR_SYSCALL_BASE + 140) -#define __NR_getdents (__NR_SYSCALL_BASE + 141) -#define __NR__newselect (__NR_SYSCALL_BASE + 142) -#define __NR_flock (__NR_SYSCALL_BASE + 143) -#define __NR_msync (__NR_SYSCALL_BASE + 144) -#define __NR_readv (__NR_SYSCALL_BASE + 145) -#define __NR_writev (__NR_SYSCALL_BASE + 146) -#define __NR_getsid (__NR_SYSCALL_BASE + 147) -#define __NR_fdatasync (__NR_SYSCALL_BASE + 148) -#define __NR__sysctl (__NR_SYSCALL_BASE + 149) -#define __NR_mlock (__NR_SYSCALL_BASE + 150) -#define __NR_munlock (__NR_SYSCALL_BASE + 151) -#define __NR_mlockall (__NR_SYSCALL_BASE + 152) -#define __NR_munlockall (__NR_SYSCALL_BASE + 153) -#define __NR_sched_setparam (__NR_SYSCALL_BASE + 154) -#define __NR_sched_getparam (__NR_SYSCALL_BASE + 155) -#define __NR_sched_setscheduler (__NR_SYSCALL_BASE + 156) -#define __NR_sched_getscheduler (__NR_SYSCALL_BASE + 157) -#define __NR_sched_yield (__NR_SYSCALL_BASE + 158) -#define __NR_sched_get_priority_max (__NR_SYSCALL_BASE + 159) -#define __NR_sched_get_priority_min (__NR_SYSCALL_BASE + 160) -#define __NR_sched_rr_get_interval (__NR_SYSCALL_BASE + 161) -#define __NR_nanosleep (__NR_SYSCALL_BASE + 162) -#define __NR_mremap (__NR_SYSCALL_BASE + 163) -#define __NR_setresuid (__NR_SYSCALL_BASE + 164) -#define __NR_getresuid (__NR_SYSCALL_BASE + 165) -#define __NR_poll (__NR_SYSCALL_BASE + 168) -#define __NR_nfsservctl (__NR_SYSCALL_BASE + 169) -#define __NR_setresgid (__NR_SYSCALL_BASE + 170) -#define __NR_getresgid (__NR_SYSCALL_BASE + 171) -#define __NR_prctl (__NR_SYSCALL_BASE + 172) -#define __NR_rt_sigreturn (__NR_SYSCALL_BASE + 173) -#define __NR_rt_sigaction (__NR_SYSCALL_BASE + 174) -#define __NR_rt_sigprocmask (__NR_SYSCALL_BASE + 175) -#define __NR_rt_sigpending (__NR_SYSCALL_BASE + 176) -#define __NR_rt_sigtimedwait (__NR_SYSCALL_BASE + 177) -#define __NR_rt_sigqueueinfo (__NR_SYSCALL_BASE + 178) -#define __NR_rt_sigsuspend (__NR_SYSCALL_BASE + 179) -#define __NR_pread64 (__NR_SYSCALL_BASE + 180) -#define __NR_pwrite64 (__NR_SYSCALL_BASE + 181) -#define __NR_chown (__NR_SYSCALL_BASE + 182) -#define __NR_getcwd (__NR_SYSCALL_BASE + 183) -#define __NR_capget (__NR_SYSCALL_BASE + 184) -#define __NR_capset (__NR_SYSCALL_BASE + 185) -#define __NR_sigaltstack (__NR_SYSCALL_BASE + 186) -#define __NR_sendfile (__NR_SYSCALL_BASE + 187) -#define __NR_vfork (__NR_SYSCALL_BASE + 190) -#define __NR_ugetrlimit (__NR_SYSCALL_BASE + 191) -#define __NR_mmap2 (__NR_SYSCALL_BASE + 192) -#define __NR_truncate64 (__NR_SYSCALL_BASE + 193) -#define __NR_ftruncate64 (__NR_SYSCALL_BASE + 194) -#define __NR_stat64 (__NR_SYSCALL_BASE + 195) -#define __NR_lstat64 (__NR_SYSCALL_BASE + 196) -#define __NR_fstat64 (__NR_SYSCALL_BASE + 197) -#define __NR_lchown32 (__NR_SYSCALL_BASE + 198) -#define __NR_getuid32 (__NR_SYSCALL_BASE + 199) -#define __NR_getgid32 (__NR_SYSCALL_BASE + 200) -#define __NR_geteuid32 (__NR_SYSCALL_BASE + 201) -#define __NR_getegid32 (__NR_SYSCALL_BASE + 202) -#define __NR_setreuid32 (__NR_SYSCALL_BASE + 203) -#define __NR_setregid32 (__NR_SYSCALL_BASE + 204) -#define __NR_getgroups32 (__NR_SYSCALL_BASE + 205) -#define __NR_setgroups32 (__NR_SYSCALL_BASE + 206) -#define __NR_fchown32 (__NR_SYSCALL_BASE + 207) -#define __NR_setresuid32 (__NR_SYSCALL_BASE + 208) -#define __NR_getresuid32 (__NR_SYSCALL_BASE + 209) -#define __NR_setresgid32 (__NR_SYSCALL_BASE + 210) -#define __NR_getresgid32 (__NR_SYSCALL_BASE + 211) -#define __NR_chown32 (__NR_SYSCALL_BASE + 212) -#define __NR_setuid32 (__NR_SYSCALL_BASE + 213) -#define __NR_setgid32 (__NR_SYSCALL_BASE + 214) -#define __NR_setfsuid32 (__NR_SYSCALL_BASE + 215) -#define __NR_setfsgid32 (__NR_SYSCALL_BASE + 216) -#define __NR_getdents64 (__NR_SYSCALL_BASE + 217) -#define __NR_pivot_root (__NR_SYSCALL_BASE + 218) -#define __NR_mincore (__NR_SYSCALL_BASE + 219) -#define __NR_madvise (__NR_SYSCALL_BASE + 220) -#define __NR_fcntl64 (__NR_SYSCALL_BASE + 221) -#define __NR_gettid (__NR_SYSCALL_BASE + 224) -#define __NR_readahead (__NR_SYSCALL_BASE + 225) -#define __NR_setxattr (__NR_SYSCALL_BASE + 226) -#define __NR_lsetxattr (__NR_SYSCALL_BASE + 227) -#define __NR_fsetxattr (__NR_SYSCALL_BASE + 228) -#define __NR_getxattr (__NR_SYSCALL_BASE + 229) -#define __NR_lgetxattr (__NR_SYSCALL_BASE + 230) -#define __NR_fgetxattr (__NR_SYSCALL_BASE + 231) -#define __NR_listxattr (__NR_SYSCALL_BASE + 232) -#define __NR_llistxattr (__NR_SYSCALL_BASE + 233) -#define __NR_flistxattr (__NR_SYSCALL_BASE + 234) -#define __NR_removexattr (__NR_SYSCALL_BASE + 235) -#define __NR_lremovexattr (__NR_SYSCALL_BASE + 236) -#define __NR_fremovexattr (__NR_SYSCALL_BASE + 237) -#define __NR_tkill (__NR_SYSCALL_BASE + 238) -#define __NR_sendfile64 (__NR_SYSCALL_BASE + 239) -#define __NR_futex (__NR_SYSCALL_BASE + 240) -#define __NR_sched_setaffinity (__NR_SYSCALL_BASE + 241) -#define __NR_sched_getaffinity (__NR_SYSCALL_BASE + 242) -#define __NR_io_setup (__NR_SYSCALL_BASE + 243) -#define __NR_io_destroy (__NR_SYSCALL_BASE + 244) -#define __NR_io_getevents (__NR_SYSCALL_BASE + 245) -#define __NR_io_submit (__NR_SYSCALL_BASE + 246) -#define __NR_io_cancel (__NR_SYSCALL_BASE + 247) -#define __NR_exit_group (__NR_SYSCALL_BASE + 248) -#define __NR_lookup_dcookie (__NR_SYSCALL_BASE + 249) -#define __NR_epoll_create (__NR_SYSCALL_BASE + 250) -#define __NR_epoll_ctl (__NR_SYSCALL_BASE + 251) -#define __NR_epoll_wait (__NR_SYSCALL_BASE + 252) -#define __NR_remap_file_pages (__NR_SYSCALL_BASE + 253) -#define __NR_set_tid_address (__NR_SYSCALL_BASE + 256) -#define __NR_timer_create (__NR_SYSCALL_BASE + 257) -#define __NR_timer_settime (__NR_SYSCALL_BASE + 258) -#define __NR_timer_gettime (__NR_SYSCALL_BASE + 259) -#define __NR_timer_getoverrun (__NR_SYSCALL_BASE + 260) -#define __NR_timer_delete (__NR_SYSCALL_BASE + 261) -#define __NR_clock_settime (__NR_SYSCALL_BASE + 262) -#define __NR_clock_gettime (__NR_SYSCALL_BASE + 263) -#define __NR_clock_getres (__NR_SYSCALL_BASE + 264) -#define __NR_clock_nanosleep (__NR_SYSCALL_BASE + 265) -#define __NR_statfs64 (__NR_SYSCALL_BASE + 266) -#define __NR_fstatfs64 (__NR_SYSCALL_BASE + 267) -#define __NR_tgkill (__NR_SYSCALL_BASE + 268) -#define __NR_utimes (__NR_SYSCALL_BASE + 269) -#define __NR_arm_fadvise64_64 (__NR_SYSCALL_BASE + 270) -#define __NR_pciconfig_iobase (__NR_SYSCALL_BASE + 271) -#define __NR_pciconfig_read (__NR_SYSCALL_BASE + 272) -#define __NR_pciconfig_write (__NR_SYSCALL_BASE + 273) -#define __NR_mq_open (__NR_SYSCALL_BASE + 274) -#define __NR_mq_unlink (__NR_SYSCALL_BASE + 275) -#define __NR_mq_timedsend (__NR_SYSCALL_BASE + 276) -#define __NR_mq_timedreceive (__NR_SYSCALL_BASE + 277) -#define __NR_mq_notify (__NR_SYSCALL_BASE + 278) -#define __NR_mq_getsetattr (__NR_SYSCALL_BASE + 279) -#define __NR_waitid (__NR_SYSCALL_BASE + 280) -#define __NR_socket (__NR_SYSCALL_BASE + 281) -#define __NR_bind (__NR_SYSCALL_BASE + 282) -#define __NR_connect (__NR_SYSCALL_BASE + 283) -#define __NR_listen (__NR_SYSCALL_BASE + 284) -#define __NR_accept (__NR_SYSCALL_BASE + 285) -#define __NR_getsockname (__NR_SYSCALL_BASE + 286) -#define __NR_getpeername (__NR_SYSCALL_BASE + 287) -#define __NR_socketpair (__NR_SYSCALL_BASE + 288) -#define __NR_send (__NR_SYSCALL_BASE + 289) -#define __NR_sendto (__NR_SYSCALL_BASE + 290) -#define __NR_recv (__NR_SYSCALL_BASE + 291) -#define __NR_recvfrom (__NR_SYSCALL_BASE + 292) -#define __NR_shutdown (__NR_SYSCALL_BASE + 293) -#define __NR_setsockopt (__NR_SYSCALL_BASE + 294) -#define __NR_getsockopt (__NR_SYSCALL_BASE + 295) -#define __NR_sendmsg (__NR_SYSCALL_BASE + 296) -#define __NR_recvmsg (__NR_SYSCALL_BASE + 297) -#define __NR_semop (__NR_SYSCALL_BASE + 298) -#define __NR_semget (__NR_SYSCALL_BASE + 299) -#define __NR_semctl (__NR_SYSCALL_BASE + 300) -#define __NR_msgsnd (__NR_SYSCALL_BASE + 301) -#define __NR_msgrcv (__NR_SYSCALL_BASE + 302) -#define __NR_msgget (__NR_SYSCALL_BASE + 303) -#define __NR_msgctl (__NR_SYSCALL_BASE + 304) -#define __NR_shmat (__NR_SYSCALL_BASE + 305) -#define __NR_shmdt (__NR_SYSCALL_BASE + 306) -#define __NR_shmget (__NR_SYSCALL_BASE + 307) -#define __NR_shmctl (__NR_SYSCALL_BASE + 308) -#define __NR_add_key (__NR_SYSCALL_BASE + 309) -#define __NR_request_key (__NR_SYSCALL_BASE + 310) -#define __NR_keyctl (__NR_SYSCALL_BASE + 311) -#define __NR_semtimedop (__NR_SYSCALL_BASE + 312) -#define __NR_vserver (__NR_SYSCALL_BASE + 313) -#define __NR_ioprio_set (__NR_SYSCALL_BASE + 314) -#define __NR_ioprio_get (__NR_SYSCALL_BASE + 315) -#define __NR_inotify_init (__NR_SYSCALL_BASE + 316) -#define __NR_inotify_add_watch (__NR_SYSCALL_BASE + 317) -#define __NR_inotify_rm_watch (__NR_SYSCALL_BASE + 318) -#define __NR_mbind (__NR_SYSCALL_BASE + 319) -#define __NR_get_mempolicy (__NR_SYSCALL_BASE + 320) -#define __NR_set_mempolicy (__NR_SYSCALL_BASE + 321) -#define __NR_openat (__NR_SYSCALL_BASE + 322) -#define __NR_mkdirat (__NR_SYSCALL_BASE + 323) -#define __NR_mknodat (__NR_SYSCALL_BASE + 324) -#define __NR_fchownat (__NR_SYSCALL_BASE + 325) -#define __NR_futimesat (__NR_SYSCALL_BASE + 326) -#define __NR_fstatat64 (__NR_SYSCALL_BASE + 327) -#define __NR_unlinkat (__NR_SYSCALL_BASE + 328) -#define __NR_renameat (__NR_SYSCALL_BASE + 329) -#define __NR_linkat (__NR_SYSCALL_BASE + 330) -#define __NR_symlinkat (__NR_SYSCALL_BASE + 331) -#define __NR_readlinkat (__NR_SYSCALL_BASE + 332) -#define __NR_fchmodat (__NR_SYSCALL_BASE + 333) -#define __NR_faccessat (__NR_SYSCALL_BASE + 334) -#define __NR_pselect6 (__NR_SYSCALL_BASE + 335) -#define __NR_ppoll (__NR_SYSCALL_BASE + 336) -#define __NR_unshare (__NR_SYSCALL_BASE + 337) -#define __NR_set_robust_list (__NR_SYSCALL_BASE + 338) -#define __NR_get_robust_list (__NR_SYSCALL_BASE + 339) -#define __NR_splice (__NR_SYSCALL_BASE + 340) -#define __NR_arm_sync_file_range (__NR_SYSCALL_BASE + 341) -#define __NR_tee (__NR_SYSCALL_BASE + 342) -#define __NR_vmsplice (__NR_SYSCALL_BASE + 343) -#define __NR_move_pages (__NR_SYSCALL_BASE + 344) -#define __NR_getcpu (__NR_SYSCALL_BASE + 345) -#define __NR_epoll_pwait (__NR_SYSCALL_BASE + 346) -#define __NR_kexec_load (__NR_SYSCALL_BASE + 347) -#define __NR_utimensat (__NR_SYSCALL_BASE + 348) -#define __NR_signalfd (__NR_SYSCALL_BASE + 349) -#define __NR_timerfd_create (__NR_SYSCALL_BASE + 350) -#define __NR_eventfd (__NR_SYSCALL_BASE + 351) -#define __NR_fallocate (__NR_SYSCALL_BASE + 352) -#define __NR_timerfd_settime (__NR_SYSCALL_BASE + 353) -#define __NR_timerfd_gettime (__NR_SYSCALL_BASE + 354) -#define __NR_signalfd4 (__NR_SYSCALL_BASE + 355) -#define __NR_eventfd2 (__NR_SYSCALL_BASE + 356) -#define __NR_epoll_create1 (__NR_SYSCALL_BASE + 357) -#define __NR_dup3 (__NR_SYSCALL_BASE + 358) -#define __NR_pipe2 (__NR_SYSCALL_BASE + 359) -#define __NR_inotify_init1 (__NR_SYSCALL_BASE + 360) -#define __NR_preadv (__NR_SYSCALL_BASE + 361) -#define __NR_pwritev (__NR_SYSCALL_BASE + 362) -#define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE + 363) -#define __NR_perf_event_open (__NR_SYSCALL_BASE + 364) -#define __NR_recvmmsg (__NR_SYSCALL_BASE + 365) -#define __NR_accept4 (__NR_SYSCALL_BASE + 366) -#define __NR_fanotify_init (__NR_SYSCALL_BASE + 367) -#define __NR_fanotify_mark (__NR_SYSCALL_BASE + 368) -#define __NR_prlimit64 (__NR_SYSCALL_BASE + 369) -#define __NR_name_to_handle_at (__NR_SYSCALL_BASE + 370) -#define __NR_open_by_handle_at (__NR_SYSCALL_BASE + 371) -#define __NR_clock_adjtime (__NR_SYSCALL_BASE + 372) -#define __NR_syncfs (__NR_SYSCALL_BASE + 373) -#define __NR_sendmmsg (__NR_SYSCALL_BASE + 374) -#define __NR_setns (__NR_SYSCALL_BASE + 375) -#define __NR_process_vm_readv (__NR_SYSCALL_BASE + 376) -#define __NR_process_vm_writev (__NR_SYSCALL_BASE + 377) -#define __NR_kcmp (__NR_SYSCALL_BASE + 378) -#define __NR_finit_module (__NR_SYSCALL_BASE + 379) -#define __NR_sched_setattr (__NR_SYSCALL_BASE + 380) -#define __NR_sched_getattr (__NR_SYSCALL_BASE + 381) -#define __NR_renameat2 (__NR_SYSCALL_BASE + 382) -#define __NR_seccomp (__NR_SYSCALL_BASE + 383) -#define __NR_getrandom (__NR_SYSCALL_BASE + 384) -#define __NR_memfd_create (__NR_SYSCALL_BASE + 385) -#define __NR_bpf (__NR_SYSCALL_BASE + 386) -#define __NR_execveat (__NR_SYSCALL_BASE + 387) -#define __NR_userfaultfd (__NR_SYSCALL_BASE + 388) -#define __NR_membarrier (__NR_SYSCALL_BASE + 389) -#define __NR_mlock2 (__NR_SYSCALL_BASE + 390) -#define __NR_copy_file_range (__NR_SYSCALL_BASE + 391) -#define __NR_preadv2 (__NR_SYSCALL_BASE + 392) -#define __NR_pwritev2 (__NR_SYSCALL_BASE + 393) -#define __NR_pkey_mprotect (__NR_SYSCALL_BASE + 394) -#define __NR_pkey_alloc (__NR_SYSCALL_BASE + 395) -#define __NR_pkey_free (__NR_SYSCALL_BASE + 396) -#define __NR_statx (__NR_SYSCALL_BASE + 397) -#define __NR_rseq (__NR_SYSCALL_BASE + 398) -#define __NR_io_pgetevents (__NR_SYSCALL_BASE + 399) -#define __NR_migrate_pages (__NR_SYSCALL_BASE + 400) -#define __NR_kexec_file_load (__NR_SYSCALL_BASE + 401) -#define __NR_clock_gettime64 (__NR_SYSCALL_BASE + 403) -#define __NR_clock_settime64 (__NR_SYSCALL_BASE + 404) -#define __NR_clock_adjtime64 (__NR_SYSCALL_BASE + 405) -#define __NR_clock_getres_time64 (__NR_SYSCALL_BASE + 406) -#define __NR_clock_nanosleep_time64 (__NR_SYSCALL_BASE + 407) -#define __NR_timer_gettime64 (__NR_SYSCALL_BASE + 408) -#define __NR_timer_settime64 (__NR_SYSCALL_BASE + 409) -#define __NR_timerfd_gettime64 (__NR_SYSCALL_BASE + 410) -#define __NR_timerfd_settime64 (__NR_SYSCALL_BASE + 411) -#define __NR_utimensat_time64 (__NR_SYSCALL_BASE + 412) -#define __NR_pselect6_time64 (__NR_SYSCALL_BASE + 413) -#define __NR_ppoll_time64 (__NR_SYSCALL_BASE + 414) -#define __NR_io_pgetevents_time64 (__NR_SYSCALL_BASE + 416) -#define __NR_recvmmsg_time64 (__NR_SYSCALL_BASE + 417) -#define __NR_mq_timedsend_time64 (__NR_SYSCALL_BASE + 418) -#define __NR_mq_timedreceive_time64 (__NR_SYSCALL_BASE + 419) -#define __NR_semtimedop_time64 (__NR_SYSCALL_BASE + 420) -#define __NR_rt_sigtimedwait_time64 (__NR_SYSCALL_BASE + 421) -#define __NR_futex_time64 (__NR_SYSCALL_BASE + 422) -#define __NR_sched_rr_get_interval_time64 (__NR_SYSCALL_BASE + 423) -#define __NR_pidfd_send_signal (__NR_SYSCALL_BASE + 424) -#define __NR_io_uring_setup (__NR_SYSCALL_BASE + 425) -#define __NR_io_uring_enter (__NR_SYSCALL_BASE + 426) -#define __NR_io_uring_register (__NR_SYSCALL_BASE + 427) -#define __NR_open_tree (__NR_SYSCALL_BASE + 428) -#define __NR_move_mount (__NR_SYSCALL_BASE + 429) -#define __NR_fsopen (__NR_SYSCALL_BASE + 430) -#define __NR_fsconfig (__NR_SYSCALL_BASE + 431) -#define __NR_fsmount (__NR_SYSCALL_BASE + 432) -#define __NR_fspick (__NR_SYSCALL_BASE + 433) -#define __NR_pidfd_open (__NR_SYSCALL_BASE + 434) -#define __NR_clone3 (__NR_SYSCALL_BASE + 435) -#define __NR_openat2 (__NR_SYSCALL_BASE + 437) -#define __NR_pidfd_getfd (__NR_SYSCALL_BASE + 438) - -#endif /* _ASM_ARM_UNISTD_COMMON_H */ diff --git a/contrib/libs/linux-headers/asm/unistd-eabi.h b/contrib/libs/linux-headers/asm/unistd-eabi.h deleted file mode 100644 index f98c648b970..00000000000 --- a/contrib/libs/linux-headers/asm/unistd-eabi.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "unistd-eabi_arm.h" -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/unistd-eabi_arm.h b/contrib/libs/linux-headers/asm/unistd-eabi_arm.h deleted file mode 100644 index 266f1fcdfb3..00000000000 --- a/contrib/libs/linux-headers/asm/unistd-eabi_arm.h +++ /dev/null @@ -1,5 +0,0 @@ -#ifndef _ASM_ARM_UNISTD_EABI_H -#define _ASM_ARM_UNISTD_EABI_H 1 - - -#endif /* _ASM_ARM_UNISTD_EABI_H */ diff --git a/contrib/libs/linux-headers/asm/unistd-oabi.h b/contrib/libs/linux-headers/asm/unistd-oabi.h deleted file mode 100644 index 33432c730a2..00000000000 --- a/contrib/libs/linux-headers/asm/unistd-oabi.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "unistd-oabi_arm.h" -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#error unavailable for x86 -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/unistd-oabi_arm.h b/contrib/libs/linux-headers/asm/unistd-oabi_arm.h deleted file mode 100644 index 47d9afb96d5..00000000000 --- a/contrib/libs/linux-headers/asm/unistd-oabi_arm.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef _ASM_ARM_UNISTD_OABI_H -#define _ASM_ARM_UNISTD_OABI_H 1 - -#define __NR_time (__NR_SYSCALL_BASE + 13) -#define __NR_umount (__NR_SYSCALL_BASE + 22) -#define __NR_stime (__NR_SYSCALL_BASE + 25) -#define __NR_alarm (__NR_SYSCALL_BASE + 27) -#define __NR_utime (__NR_SYSCALL_BASE + 30) -#define __NR_getrlimit (__NR_SYSCALL_BASE + 76) -#define __NR_select (__NR_SYSCALL_BASE + 82) -#define __NR_readdir (__NR_SYSCALL_BASE + 89) -#define __NR_mmap (__NR_SYSCALL_BASE + 90) -#define __NR_socketcall (__NR_SYSCALL_BASE + 102) -#define __NR_syscall (__NR_SYSCALL_BASE + 113) -#define __NR_ipc (__NR_SYSCALL_BASE + 117) - -#endif /* _ASM_ARM_UNISTD_OABI_H */ diff --git a/contrib/libs/linux-headers/asm/unistd.h b/contrib/libs/linux-headers/asm/unistd.h deleted file mode 100644 index 8e06a043427..00000000000 --- a/contrib/libs/linux-headers/asm/unistd.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#include "unistd_arm.h" -#elif defined(__aarch64__) -#include "unistd_arm64.h" -#elif defined(__powerpc__) -#include "unistd_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "unistd_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/unistd_32.h b/contrib/libs/linux-headers/asm/unistd_32.h deleted file mode 100644 index 8b4413f9858..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_32.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "unistd_32_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "unistd_32_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/unistd_32_powerpc.h b/contrib/libs/linux-headers/asm/unistd_32_powerpc.h deleted file mode 100644 index 4ba8e32f734..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_32_powerpc.h +++ /dev/null @@ -1,425 +0,0 @@ -#ifndef _ASM_POWERPC_UNISTD_32_H -#define _ASM_POWERPC_UNISTD_32_H - -#define __NR_restart_syscall 0 -#define __NR_exit 1 -#define __NR_fork 2 -#define __NR_read 3 -#define __NR_write 4 -#define __NR_open 5 -#define __NR_close 6 -#define __NR_waitpid 7 -#define __NR_creat 8 -#define __NR_link 9 -#define __NR_unlink 10 -#define __NR_execve 11 -#define __NR_chdir 12 -#define __NR_time 13 -#define __NR_mknod 14 -#define __NR_chmod 15 -#define __NR_lchown 16 -#define __NR_break 17 -#define __NR_oldstat 18 -#define __NR_lseek 19 -#define __NR_getpid 20 -#define __NR_mount 21 -#define __NR_umount 22 -#define __NR_setuid 23 -#define __NR_getuid 24 -#define __NR_stime 25 -#define __NR_ptrace 26 -#define __NR_alarm 27 -#define __NR_oldfstat 28 -#define __NR_pause 29 -#define __NR_utime 30 -#define __NR_stty 31 -#define __NR_gtty 32 -#define __NR_access 33 -#define __NR_nice 34 -#define __NR_ftime 35 -#define __NR_sync 36 -#define __NR_kill 37 -#define __NR_rename 38 -#define __NR_mkdir 39 -#define __NR_rmdir 40 -#define __NR_dup 41 -#define __NR_pipe 42 -#define __NR_times 43 -#define __NR_prof 44 -#define __NR_brk 45 -#define __NR_setgid 46 -#define __NR_getgid 47 -#define __NR_signal 48 -#define __NR_geteuid 49 -#define __NR_getegid 50 -#define __NR_acct 51 -#define __NR_umount2 52 -#define __NR_lock 53 -#define __NR_ioctl 54 -#define __NR_fcntl 55 -#define __NR_mpx 56 -#define __NR_setpgid 57 -#define __NR_ulimit 58 -#define __NR_oldolduname 59 -#define __NR_umask 60 -#define __NR_chroot 61 -#define __NR_ustat 62 -#define __NR_dup2 63 -#define __NR_getppid 64 -#define __NR_getpgrp 65 -#define __NR_setsid 66 -#define __NR_sigaction 67 -#define __NR_sgetmask 68 -#define __NR_ssetmask 69 -#define __NR_setreuid 70 -#define __NR_setregid 71 -#define __NR_sigsuspend 72 -#define __NR_sigpending 73 -#define __NR_sethostname 74 -#define __NR_setrlimit 75 -#define __NR_getrlimit 76 -#define __NR_getrusage 77 -#define __NR_gettimeofday 78 -#define __NR_settimeofday 79 -#define __NR_getgroups 80 -#define __NR_setgroups 81 -#define __NR_select 82 -#define __NR_symlink 83 -#define __NR_oldlstat 84 -#define __NR_readlink 85 -#define __NR_uselib 86 -#define __NR_swapon 87 -#define __NR_reboot 88 -#define __NR_readdir 89 -#define __NR_mmap 90 -#define __NR_munmap 91 -#define __NR_truncate 92 -#define __NR_ftruncate 93 -#define __NR_fchmod 94 -#define __NR_fchown 95 -#define __NR_getpriority 96 -#define __NR_setpriority 97 -#define __NR_profil 98 -#define __NR_statfs 99 -#define __NR_fstatfs 100 -#define __NR_ioperm 101 -#define __NR_socketcall 102 -#define __NR_syslog 103 -#define __NR_setitimer 104 -#define __NR_getitimer 105 -#define __NR_stat 106 -#define __NR_lstat 107 -#define __NR_fstat 108 -#define __NR_olduname 109 -#define __NR_iopl 110 -#define __NR_vhangup 111 -#define __NR_idle 112 -#define __NR_vm86 113 -#define __NR_wait4 114 -#define __NR_swapoff 115 -#define __NR_sysinfo 116 -#define __NR_ipc 117 -#define __NR_fsync 118 -#define __NR_sigreturn 119 -#define __NR_clone 120 -#define __NR_setdomainname 121 -#define __NR_uname 122 -#define __NR_modify_ldt 123 -#define __NR_adjtimex 124 -#define __NR_mprotect 125 -#define __NR_sigprocmask 126 -#define __NR_create_module 127 -#define __NR_init_module 128 -#define __NR_delete_module 129 -#define __NR_get_kernel_syms 130 -#define __NR_quotactl 131 -#define __NR_getpgid 132 -#define __NR_fchdir 133 -#define __NR_bdflush 134 -#define __NR_sysfs 135 -#define __NR_personality 136 -#define __NR_afs_syscall 137 -#define __NR_setfsuid 138 -#define __NR_setfsgid 139 -#define __NR__llseek 140 -#define __NR_getdents 141 -#define __NR__newselect 142 -#define __NR_flock 143 -#define __NR_msync 144 -#define __NR_readv 145 -#define __NR_writev 146 -#define __NR_getsid 147 -#define __NR_fdatasync 148 -#define __NR__sysctl 149 -#define __NR_mlock 150 -#define __NR_munlock 151 -#define __NR_mlockall 152 -#define __NR_munlockall 153 -#define __NR_sched_setparam 154 -#define __NR_sched_getparam 155 -#define __NR_sched_setscheduler 156 -#define __NR_sched_getscheduler 157 -#define __NR_sched_yield 158 -#define __NR_sched_get_priority_max 159 -#define __NR_sched_get_priority_min 160 -#define __NR_sched_rr_get_interval 161 -#define __NR_nanosleep 162 -#define __NR_mremap 163 -#define __NR_setresuid 164 -#define __NR_getresuid 165 -#define __NR_query_module 166 -#define __NR_poll 167 -#define __NR_nfsservctl 168 -#define __NR_setresgid 169 -#define __NR_getresgid 170 -#define __NR_prctl 171 -#define __NR_rt_sigreturn 172 -#define __NR_rt_sigaction 173 -#define __NR_rt_sigprocmask 174 -#define __NR_rt_sigpending 175 -#define __NR_rt_sigtimedwait 176 -#define __NR_rt_sigqueueinfo 177 -#define __NR_rt_sigsuspend 178 -#define __NR_pread64 179 -#define __NR_pwrite64 180 -#define __NR_chown 181 -#define __NR_getcwd 182 -#define __NR_capget 183 -#define __NR_capset 184 -#define __NR_sigaltstack 185 -#define __NR_sendfile 186 -#define __NR_getpmsg 187 -#define __NR_putpmsg 188 -#define __NR_vfork 189 -#define __NR_ugetrlimit 190 -#define __NR_readahead 191 -#define __NR_mmap2 192 -#define __NR_truncate64 193 -#define __NR_ftruncate64 194 -#define __NR_stat64 195 -#define __NR_lstat64 196 -#define __NR_fstat64 197 -#define __NR_pciconfig_read 198 -#define __NR_pciconfig_write 199 -#define __NR_pciconfig_iobase 200 -#define __NR_multiplexer 201 -#define __NR_getdents64 202 -#define __NR_pivot_root 203 -#define __NR_fcntl64 204 -#define __NR_madvise 205 -#define __NR_mincore 206 -#define __NR_gettid 207 -#define __NR_tkill 208 -#define __NR_setxattr 209 -#define __NR_lsetxattr 210 -#define __NR_fsetxattr 211 -#define __NR_getxattr 212 -#define __NR_lgetxattr 213 -#define __NR_fgetxattr 214 -#define __NR_listxattr 215 -#define __NR_llistxattr 216 -#define __NR_flistxattr 217 -#define __NR_removexattr 218 -#define __NR_lremovexattr 219 -#define __NR_fremovexattr 220 -#define __NR_futex 221 -#define __NR_sched_setaffinity 222 -#define __NR_sched_getaffinity 223 -#define __NR_tuxcall 225 -#define __NR_sendfile64 226 -#define __NR_io_setup 227 -#define __NR_io_destroy 228 -#define __NR_io_getevents 229 -#define __NR_io_submit 230 -#define __NR_io_cancel 231 -#define __NR_set_tid_address 232 -#define __NR_fadvise64 233 -#define __NR_exit_group 234 -#define __NR_lookup_dcookie 235 -#define __NR_epoll_create 236 -#define __NR_epoll_ctl 237 -#define __NR_epoll_wait 238 -#define __NR_remap_file_pages 239 -#define __NR_timer_create 240 -#define __NR_timer_settime 241 -#define __NR_timer_gettime 242 -#define __NR_timer_getoverrun 243 -#define __NR_timer_delete 244 -#define __NR_clock_settime 245 -#define __NR_clock_gettime 246 -#define __NR_clock_getres 247 -#define __NR_clock_nanosleep 248 -#define __NR_swapcontext 249 -#define __NR_tgkill 250 -#define __NR_utimes 251 -#define __NR_statfs64 252 -#define __NR_fstatfs64 253 -#define __NR_fadvise64_64 254 -#define __NR_rtas 255 -#define __NR_sys_debug_setcontext 256 -#define __NR_migrate_pages 258 -#define __NR_mbind 259 -#define __NR_get_mempolicy 260 -#define __NR_set_mempolicy 261 -#define __NR_mq_open 262 -#define __NR_mq_unlink 263 -#define __NR_mq_timedsend 264 -#define __NR_mq_timedreceive 265 -#define __NR_mq_notify 266 -#define __NR_mq_getsetattr 267 -#define __NR_kexec_load 268 -#define __NR_add_key 269 -#define __NR_request_key 270 -#define __NR_keyctl 271 -#define __NR_waitid 272 -#define __NR_ioprio_set 273 -#define __NR_ioprio_get 274 -#define __NR_inotify_init 275 -#define __NR_inotify_add_watch 276 -#define __NR_inotify_rm_watch 277 -#define __NR_spu_run 278 -#define __NR_spu_create 279 -#define __NR_pselect6 280 -#define __NR_ppoll 281 -#define __NR_unshare 282 -#define __NR_splice 283 -#define __NR_tee 284 -#define __NR_vmsplice 285 -#define __NR_openat 286 -#define __NR_mkdirat 287 -#define __NR_mknodat 288 -#define __NR_fchownat 289 -#define __NR_futimesat 290 -#define __NR_fstatat64 291 -#define __NR_unlinkat 292 -#define __NR_renameat 293 -#define __NR_linkat 294 -#define __NR_symlinkat 295 -#define __NR_readlinkat 296 -#define __NR_fchmodat 297 -#define __NR_faccessat 298 -#define __NR_get_robust_list 299 -#define __NR_set_robust_list 300 -#define __NR_move_pages 301 -#define __NR_getcpu 302 -#define __NR_epoll_pwait 303 -#define __NR_utimensat 304 -#define __NR_signalfd 305 -#define __NR_timerfd_create 306 -#define __NR_eventfd 307 -#define __NR_sync_file_range2 308 -#define __NR_fallocate 309 -#define __NR_subpage_prot 310 -#define __NR_timerfd_settime 311 -#define __NR_timerfd_gettime 312 -#define __NR_signalfd4 313 -#define __NR_eventfd2 314 -#define __NR_epoll_create1 315 -#define __NR_dup3 316 -#define __NR_pipe2 317 -#define __NR_inotify_init1 318 -#define __NR_perf_event_open 319 -#define __NR_preadv 320 -#define __NR_pwritev 321 -#define __NR_rt_tgsigqueueinfo 322 -#define __NR_fanotify_init 323 -#define __NR_fanotify_mark 324 -#define __NR_prlimit64 325 -#define __NR_socket 326 -#define __NR_bind 327 -#define __NR_connect 328 -#define __NR_listen 329 -#define __NR_accept 330 -#define __NR_getsockname 331 -#define __NR_getpeername 332 -#define __NR_socketpair 333 -#define __NR_send 334 -#define __NR_sendto 335 -#define __NR_recv 336 -#define __NR_recvfrom 337 -#define __NR_shutdown 338 -#define __NR_setsockopt 339 -#define __NR_getsockopt 340 -#define __NR_sendmsg 341 -#define __NR_recvmsg 342 -#define __NR_recvmmsg 343 -#define __NR_accept4 344 -#define __NR_name_to_handle_at 345 -#define __NR_open_by_handle_at 346 -#define __NR_clock_adjtime 347 -#define __NR_syncfs 348 -#define __NR_sendmmsg 349 -#define __NR_setns 350 -#define __NR_process_vm_readv 351 -#define __NR_process_vm_writev 352 -#define __NR_finit_module 353 -#define __NR_kcmp 354 -#define __NR_sched_setattr 355 -#define __NR_sched_getattr 356 -#define __NR_renameat2 357 -#define __NR_seccomp 358 -#define __NR_getrandom 359 -#define __NR_memfd_create 360 -#define __NR_bpf 361 -#define __NR_execveat 362 -#define __NR_switch_endian 363 -#define __NR_userfaultfd 364 -#define __NR_membarrier 365 -#define __NR_mlock2 378 -#define __NR_copy_file_range 379 -#define __NR_preadv2 380 -#define __NR_pwritev2 381 -#define __NR_kexec_file_load 382 -#define __NR_statx 383 -#define __NR_pkey_alloc 384 -#define __NR_pkey_free 385 -#define __NR_pkey_mprotect 386 -#define __NR_rseq 387 -#define __NR_io_pgetevents 388 -#define __NR_semget 393 -#define __NR_semctl 394 -#define __NR_shmget 395 -#define __NR_shmctl 396 -#define __NR_shmat 397 -#define __NR_shmdt 398 -#define __NR_msgget 399 -#define __NR_msgsnd 400 -#define __NR_msgrcv 401 -#define __NR_msgctl 402 -#define __NR_clock_gettime64 403 -#define __NR_clock_settime64 404 -#define __NR_clock_adjtime64 405 -#define __NR_clock_getres_time64 406 -#define __NR_clock_nanosleep_time64 407 -#define __NR_timer_gettime64 408 -#define __NR_timer_settime64 409 -#define __NR_timerfd_gettime64 410 -#define __NR_timerfd_settime64 411 -#define __NR_utimensat_time64 412 -#define __NR_pselect6_time64 413 -#define __NR_ppoll_time64 414 -#define __NR_io_pgetevents_time64 416 -#define __NR_recvmmsg_time64 417 -#define __NR_mq_timedsend_time64 418 -#define __NR_mq_timedreceive_time64 419 -#define __NR_semtimedop_time64 420 -#define __NR_rt_sigtimedwait_time64 421 -#define __NR_futex_time64 422 -#define __NR_sched_rr_get_interval_time64 423 -#define __NR_pidfd_send_signal 424 -#define __NR_io_uring_setup 425 -#define __NR_io_uring_enter 426 -#define __NR_io_uring_register 427 -#define __NR_open_tree 428 -#define __NR_move_mount 429 -#define __NR_fsopen 430 -#define __NR_fsconfig 431 -#define __NR_fsmount 432 -#define __NR_fspick 433 -#define __NR_pidfd_open 434 -#define __NR_clone3 435 -#define __NR_openat2 437 -#define __NR_pidfd_getfd 438 - - -#endif /* _ASM_POWERPC_UNISTD_32_H */ diff --git a/contrib/libs/linux-headers/asm/unistd_32_x86.h b/contrib/libs/linux-headers/asm/unistd_32_x86.h deleted file mode 100644 index 1e6c1a58677..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_32_x86.h +++ /dev/null @@ -1,433 +0,0 @@ -#ifndef _ASM_X86_UNISTD_32_H -#define _ASM_X86_UNISTD_32_H 1 - -#define __NR_restart_syscall 0 -#define __NR_exit 1 -#define __NR_fork 2 -#define __NR_read 3 -#define __NR_write 4 -#define __NR_open 5 -#define __NR_close 6 -#define __NR_waitpid 7 -#define __NR_creat 8 -#define __NR_link 9 -#define __NR_unlink 10 -#define __NR_execve 11 -#define __NR_chdir 12 -#define __NR_time 13 -#define __NR_mknod 14 -#define __NR_chmod 15 -#define __NR_lchown 16 -#define __NR_break 17 -#define __NR_oldstat 18 -#define __NR_lseek 19 -#define __NR_getpid 20 -#define __NR_mount 21 -#define __NR_umount 22 -#define __NR_setuid 23 -#define __NR_getuid 24 -#define __NR_stime 25 -#define __NR_ptrace 26 -#define __NR_alarm 27 -#define __NR_oldfstat 28 -#define __NR_pause 29 -#define __NR_utime 30 -#define __NR_stty 31 -#define __NR_gtty 32 -#define __NR_access 33 -#define __NR_nice 34 -#define __NR_ftime 35 -#define __NR_sync 36 -#define __NR_kill 37 -#define __NR_rename 38 -#define __NR_mkdir 39 -#define __NR_rmdir 40 -#define __NR_dup 41 -#define __NR_pipe 42 -#define __NR_times 43 -#define __NR_prof 44 -#define __NR_brk 45 -#define __NR_setgid 46 -#define __NR_getgid 47 -#define __NR_signal 48 -#define __NR_geteuid 49 -#define __NR_getegid 50 -#define __NR_acct 51 -#define __NR_umount2 52 -#define __NR_lock 53 -#define __NR_ioctl 54 -#define __NR_fcntl 55 -#define __NR_mpx 56 -#define __NR_setpgid 57 -#define __NR_ulimit 58 -#define __NR_oldolduname 59 -#define __NR_umask 60 -#define __NR_chroot 61 -#define __NR_ustat 62 -#define __NR_dup2 63 -#define __NR_getppid 64 -#define __NR_getpgrp 65 -#define __NR_setsid 66 -#define __NR_sigaction 67 -#define __NR_sgetmask 68 -#define __NR_ssetmask 69 -#define __NR_setreuid 70 -#define __NR_setregid 71 -#define __NR_sigsuspend 72 -#define __NR_sigpending 73 -#define __NR_sethostname 74 -#define __NR_setrlimit 75 -#define __NR_getrlimit 76 -#define __NR_getrusage 77 -#define __NR_gettimeofday 78 -#define __NR_settimeofday 79 -#define __NR_getgroups 80 -#define __NR_setgroups 81 -#define __NR_select 82 -#define __NR_symlink 83 -#define __NR_oldlstat 84 -#define __NR_readlink 85 -#define __NR_uselib 86 -#define __NR_swapon 87 -#define __NR_reboot 88 -#define __NR_readdir 89 -#define __NR_mmap 90 -#define __NR_munmap 91 -#define __NR_truncate 92 -#define __NR_ftruncate 93 -#define __NR_fchmod 94 -#define __NR_fchown 95 -#define __NR_getpriority 96 -#define __NR_setpriority 97 -#define __NR_profil 98 -#define __NR_statfs 99 -#define __NR_fstatfs 100 -#define __NR_ioperm 101 -#define __NR_socketcall 102 -#define __NR_syslog 103 -#define __NR_setitimer 104 -#define __NR_getitimer 105 -#define __NR_stat 106 -#define __NR_lstat 107 -#define __NR_fstat 108 -#define __NR_olduname 109 -#define __NR_iopl 110 -#define __NR_vhangup 111 -#define __NR_idle 112 -#define __NR_vm86old 113 -#define __NR_wait4 114 -#define __NR_swapoff 115 -#define __NR_sysinfo 116 -#define __NR_ipc 117 -#define __NR_fsync 118 -#define __NR_sigreturn 119 -#define __NR_clone 120 -#define __NR_setdomainname 121 -#define __NR_uname 122 -#define __NR_modify_ldt 123 -#define __NR_adjtimex 124 -#define __NR_mprotect 125 -#define __NR_sigprocmask 126 -#define __NR_create_module 127 -#define __NR_init_module 128 -#define __NR_delete_module 129 -#define __NR_get_kernel_syms 130 -#define __NR_quotactl 131 -#define __NR_getpgid 132 -#define __NR_fchdir 133 -#define __NR_bdflush 134 -#define __NR_sysfs 135 -#define __NR_personality 136 -#define __NR_afs_syscall 137 -#define __NR_setfsuid 138 -#define __NR_setfsgid 139 -#define __NR__llseek 140 -#define __NR_getdents 141 -#define __NR__newselect 142 -#define __NR_flock 143 -#define __NR_msync 144 -#define __NR_readv 145 -#define __NR_writev 146 -#define __NR_getsid 147 -#define __NR_fdatasync 148 -#define __NR__sysctl 149 -#define __NR_mlock 150 -#define __NR_munlock 151 -#define __NR_mlockall 152 -#define __NR_munlockall 153 -#define __NR_sched_setparam 154 -#define __NR_sched_getparam 155 -#define __NR_sched_setscheduler 156 -#define __NR_sched_getscheduler 157 -#define __NR_sched_yield 158 -#define __NR_sched_get_priority_max 159 -#define __NR_sched_get_priority_min 160 -#define __NR_sched_rr_get_interval 161 -#define __NR_nanosleep 162 -#define __NR_mremap 163 -#define __NR_setresuid 164 -#define __NR_getresuid 165 -#define __NR_vm86 166 -#define __NR_query_module 167 -#define __NR_poll 168 -#define __NR_nfsservctl 169 -#define __NR_setresgid 170 -#define __NR_getresgid 171 -#define __NR_prctl 172 -#define __NR_rt_sigreturn 173 -#define __NR_rt_sigaction 174 -#define __NR_rt_sigprocmask 175 -#define __NR_rt_sigpending 176 -#define __NR_rt_sigtimedwait 177 -#define __NR_rt_sigqueueinfo 178 -#define __NR_rt_sigsuspend 179 -#define __NR_pread64 180 -#define __NR_pwrite64 181 -#define __NR_chown 182 -#define __NR_getcwd 183 -#define __NR_capget 184 -#define __NR_capset 185 -#define __NR_sigaltstack 186 -#define __NR_sendfile 187 -#define __NR_getpmsg 188 -#define __NR_putpmsg 189 -#define __NR_vfork 190 -#define __NR_ugetrlimit 191 -#define __NR_mmap2 192 -#define __NR_truncate64 193 -#define __NR_ftruncate64 194 -#define __NR_stat64 195 -#define __NR_lstat64 196 -#define __NR_fstat64 197 -#define __NR_lchown32 198 -#define __NR_getuid32 199 -#define __NR_getgid32 200 -#define __NR_geteuid32 201 -#define __NR_getegid32 202 -#define __NR_setreuid32 203 -#define __NR_setregid32 204 -#define __NR_getgroups32 205 -#define __NR_setgroups32 206 -#define __NR_fchown32 207 -#define __NR_setresuid32 208 -#define __NR_getresuid32 209 -#define __NR_setresgid32 210 -#define __NR_getresgid32 211 -#define __NR_chown32 212 -#define __NR_setuid32 213 -#define __NR_setgid32 214 -#define __NR_setfsuid32 215 -#define __NR_setfsgid32 216 -#define __NR_pivot_root 217 -#define __NR_mincore 218 -#define __NR_madvise 219 -#define __NR_getdents64 220 -#define __NR_fcntl64 221 -#define __NR_gettid 224 -#define __NR_readahead 225 -#define __NR_setxattr 226 -#define __NR_lsetxattr 227 -#define __NR_fsetxattr 228 -#define __NR_getxattr 229 -#define __NR_lgetxattr 230 -#define __NR_fgetxattr 231 -#define __NR_listxattr 232 -#define __NR_llistxattr 233 -#define __NR_flistxattr 234 -#define __NR_removexattr 235 -#define __NR_lremovexattr 236 -#define __NR_fremovexattr 237 -#define __NR_tkill 238 -#define __NR_sendfile64 239 -#define __NR_futex 240 -#define __NR_sched_setaffinity 241 -#define __NR_sched_getaffinity 242 -#define __NR_set_thread_area 243 -#define __NR_get_thread_area 244 -#define __NR_io_setup 245 -#define __NR_io_destroy 246 -#define __NR_io_getevents 247 -#define __NR_io_submit 248 -#define __NR_io_cancel 249 -#define __NR_fadvise64 250 -#define __NR_exit_group 252 -#define __NR_lookup_dcookie 253 -#define __NR_epoll_create 254 -#define __NR_epoll_ctl 255 -#define __NR_epoll_wait 256 -#define __NR_remap_file_pages 257 -#define __NR_set_tid_address 258 -#define __NR_timer_create 259 -#define __NR_timer_settime 260 -#define __NR_timer_gettime 261 -#define __NR_timer_getoverrun 262 -#define __NR_timer_delete 263 -#define __NR_clock_settime 264 -#define __NR_clock_gettime 265 -#define __NR_clock_getres 266 -#define __NR_clock_nanosleep 267 -#define __NR_statfs64 268 -#define __NR_fstatfs64 269 -#define __NR_tgkill 270 -#define __NR_utimes 271 -#define __NR_fadvise64_64 272 -#define __NR_vserver 273 -#define __NR_mbind 274 -#define __NR_get_mempolicy 275 -#define __NR_set_mempolicy 276 -#define __NR_mq_open 277 -#define __NR_mq_unlink 278 -#define __NR_mq_timedsend 279 -#define __NR_mq_timedreceive 280 -#define __NR_mq_notify 281 -#define __NR_mq_getsetattr 282 -#define __NR_kexec_load 283 -#define __NR_waitid 284 -#define __NR_add_key 286 -#define __NR_request_key 287 -#define __NR_keyctl 288 -#define __NR_ioprio_set 289 -#define __NR_ioprio_get 290 -#define __NR_inotify_init 291 -#define __NR_inotify_add_watch 292 -#define __NR_inotify_rm_watch 293 -#define __NR_migrate_pages 294 -#define __NR_openat 295 -#define __NR_mkdirat 296 -#define __NR_mknodat 297 -#define __NR_fchownat 298 -#define __NR_futimesat 299 -#define __NR_fstatat64 300 -#define __NR_unlinkat 301 -#define __NR_renameat 302 -#define __NR_linkat 303 -#define __NR_symlinkat 304 -#define __NR_readlinkat 305 -#define __NR_fchmodat 306 -#define __NR_faccessat 307 -#define __NR_pselect6 308 -#define __NR_ppoll 309 -#define __NR_unshare 310 -#define __NR_set_robust_list 311 -#define __NR_get_robust_list 312 -#define __NR_splice 313 -#define __NR_sync_file_range 314 -#define __NR_tee 315 -#define __NR_vmsplice 316 -#define __NR_move_pages 317 -#define __NR_getcpu 318 -#define __NR_epoll_pwait 319 -#define __NR_utimensat 320 -#define __NR_signalfd 321 -#define __NR_timerfd_create 322 -#define __NR_eventfd 323 -#define __NR_fallocate 324 -#define __NR_timerfd_settime 325 -#define __NR_timerfd_gettime 326 -#define __NR_signalfd4 327 -#define __NR_eventfd2 328 -#define __NR_epoll_create1 329 -#define __NR_dup3 330 -#define __NR_pipe2 331 -#define __NR_inotify_init1 332 -#define __NR_preadv 333 -#define __NR_pwritev 334 -#define __NR_rt_tgsigqueueinfo 335 -#define __NR_perf_event_open 336 -#define __NR_recvmmsg 337 -#define __NR_fanotify_init 338 -#define __NR_fanotify_mark 339 -#define __NR_prlimit64 340 -#define __NR_name_to_handle_at 341 -#define __NR_open_by_handle_at 342 -#define __NR_clock_adjtime 343 -#define __NR_syncfs 344 -#define __NR_sendmmsg 345 -#define __NR_setns 346 -#define __NR_process_vm_readv 347 -#define __NR_process_vm_writev 348 -#define __NR_kcmp 349 -#define __NR_finit_module 350 -#define __NR_sched_setattr 351 -#define __NR_sched_getattr 352 -#define __NR_renameat2 353 -#define __NR_seccomp 354 -#define __NR_getrandom 355 -#define __NR_memfd_create 356 -#define __NR_bpf 357 -#define __NR_execveat 358 -#define __NR_socket 359 -#define __NR_socketpair 360 -#define __NR_bind 361 -#define __NR_connect 362 -#define __NR_listen 363 -#define __NR_accept4 364 -#define __NR_getsockopt 365 -#define __NR_setsockopt 366 -#define __NR_getsockname 367 -#define __NR_getpeername 368 -#define __NR_sendto 369 -#define __NR_sendmsg 370 -#define __NR_recvfrom 371 -#define __NR_recvmsg 372 -#define __NR_shutdown 373 -#define __NR_userfaultfd 374 -#define __NR_membarrier 375 -#define __NR_mlock2 376 -#define __NR_copy_file_range 377 -#define __NR_preadv2 378 -#define __NR_pwritev2 379 -#define __NR_pkey_mprotect 380 -#define __NR_pkey_alloc 381 -#define __NR_pkey_free 382 -#define __NR_statx 383 -#define __NR_arch_prctl 384 -#define __NR_io_pgetevents 385 -#define __NR_rseq 386 -#define __NR_semget 393 -#define __NR_semctl 394 -#define __NR_shmget 395 -#define __NR_shmctl 396 -#define __NR_shmat 397 -#define __NR_shmdt 398 -#define __NR_msgget 399 -#define __NR_msgsnd 400 -#define __NR_msgrcv 401 -#define __NR_msgctl 402 -#define __NR_clock_gettime64 403 -#define __NR_clock_settime64 404 -#define __NR_clock_adjtime64 405 -#define __NR_clock_getres_time64 406 -#define __NR_clock_nanosleep_time64 407 -#define __NR_timer_gettime64 408 -#define __NR_timer_settime64 409 -#define __NR_timerfd_gettime64 410 -#define __NR_timerfd_settime64 411 -#define __NR_utimensat_time64 412 -#define __NR_pselect6_time64 413 -#define __NR_ppoll_time64 414 -#define __NR_io_pgetevents_time64 416 -#define __NR_recvmmsg_time64 417 -#define __NR_mq_timedsend_time64 418 -#define __NR_mq_timedreceive_time64 419 -#define __NR_semtimedop_time64 420 -#define __NR_rt_sigtimedwait_time64 421 -#define __NR_futex_time64 422 -#define __NR_sched_rr_get_interval_time64 423 -#define __NR_pidfd_send_signal 424 -#define __NR_io_uring_setup 425 -#define __NR_io_uring_enter 426 -#define __NR_io_uring_register 427 -#define __NR_open_tree 428 -#define __NR_move_mount 429 -#define __NR_fsopen 430 -#define __NR_fsconfig 431 -#define __NR_fsmount 432 -#define __NR_fspick 433 -#define __NR_pidfd_open 434 -#define __NR_clone3 435 -#define __NR_openat2 437 -#define __NR_pidfd_getfd 438 - - -#endif /* _ASM_X86_UNISTD_32_H */ diff --git a/contrib/libs/linux-headers/asm/unistd_64.h b/contrib/libs/linux-headers/asm/unistd_64.h deleted file mode 100644 index f1258f5b1e3..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_64.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#include "unistd_64_powerpc.h" -#elif defined(__i386__) || defined(__x86_64__) -#include "unistd_64_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/unistd_64_powerpc.h b/contrib/libs/linux-headers/asm/unistd_64_powerpc.h deleted file mode 100644 index ac20bb4f95b..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_64_powerpc.h +++ /dev/null @@ -1,397 +0,0 @@ -#ifndef _ASM_POWERPC_UNISTD_64_H -#define _ASM_POWERPC_UNISTD_64_H - -#define __NR_restart_syscall 0 -#define __NR_exit 1 -#define __NR_fork 2 -#define __NR_read 3 -#define __NR_write 4 -#define __NR_open 5 -#define __NR_close 6 -#define __NR_waitpid 7 -#define __NR_creat 8 -#define __NR_link 9 -#define __NR_unlink 10 -#define __NR_execve 11 -#define __NR_chdir 12 -#define __NR_time 13 -#define __NR_mknod 14 -#define __NR_chmod 15 -#define __NR_lchown 16 -#define __NR_break 17 -#define __NR_oldstat 18 -#define __NR_lseek 19 -#define __NR_getpid 20 -#define __NR_mount 21 -#define __NR_umount 22 -#define __NR_setuid 23 -#define __NR_getuid 24 -#define __NR_stime 25 -#define __NR_ptrace 26 -#define __NR_alarm 27 -#define __NR_oldfstat 28 -#define __NR_pause 29 -#define __NR_utime 30 -#define __NR_stty 31 -#define __NR_gtty 32 -#define __NR_access 33 -#define __NR_nice 34 -#define __NR_ftime 35 -#define __NR_sync 36 -#define __NR_kill 37 -#define __NR_rename 38 -#define __NR_mkdir 39 -#define __NR_rmdir 40 -#define __NR_dup 41 -#define __NR_pipe 42 -#define __NR_times 43 -#define __NR_prof 44 -#define __NR_brk 45 -#define __NR_setgid 46 -#define __NR_getgid 47 -#define __NR_signal 48 -#define __NR_geteuid 49 -#define __NR_getegid 50 -#define __NR_acct 51 -#define __NR_umount2 52 -#define __NR_lock 53 -#define __NR_ioctl 54 -#define __NR_fcntl 55 -#define __NR_mpx 56 -#define __NR_setpgid 57 -#define __NR_ulimit 58 -#define __NR_oldolduname 59 -#define __NR_umask 60 -#define __NR_chroot 61 -#define __NR_ustat 62 -#define __NR_dup2 63 -#define __NR_getppid 64 -#define __NR_getpgrp 65 -#define __NR_setsid 66 -#define __NR_sigaction 67 -#define __NR_sgetmask 68 -#define __NR_ssetmask 69 -#define __NR_setreuid 70 -#define __NR_setregid 71 -#define __NR_sigsuspend 72 -#define __NR_sigpending 73 -#define __NR_sethostname 74 -#define __NR_setrlimit 75 -#define __NR_getrlimit 76 -#define __NR_getrusage 77 -#define __NR_gettimeofday 78 -#define __NR_settimeofday 79 -#define __NR_getgroups 80 -#define __NR_setgroups 81 -#define __NR_select 82 -#define __NR_symlink 83 -#define __NR_oldlstat 84 -#define __NR_readlink 85 -#define __NR_uselib 86 -#define __NR_swapon 87 -#define __NR_reboot 88 -#define __NR_readdir 89 -#define __NR_mmap 90 -#define __NR_munmap 91 -#define __NR_truncate 92 -#define __NR_ftruncate 93 -#define __NR_fchmod 94 -#define __NR_fchown 95 -#define __NR_getpriority 96 -#define __NR_setpriority 97 -#define __NR_profil 98 -#define __NR_statfs 99 -#define __NR_fstatfs 100 -#define __NR_ioperm 101 -#define __NR_socketcall 102 -#define __NR_syslog 103 -#define __NR_setitimer 104 -#define __NR_getitimer 105 -#define __NR_stat 106 -#define __NR_lstat 107 -#define __NR_fstat 108 -#define __NR_olduname 109 -#define __NR_iopl 110 -#define __NR_vhangup 111 -#define __NR_idle 112 -#define __NR_vm86 113 -#define __NR_wait4 114 -#define __NR_swapoff 115 -#define __NR_sysinfo 116 -#define __NR_ipc 117 -#define __NR_fsync 118 -#define __NR_sigreturn 119 -#define __NR_clone 120 -#define __NR_setdomainname 121 -#define __NR_uname 122 -#define __NR_modify_ldt 123 -#define __NR_adjtimex 124 -#define __NR_mprotect 125 -#define __NR_sigprocmask 126 -#define __NR_create_module 127 -#define __NR_init_module 128 -#define __NR_delete_module 129 -#define __NR_get_kernel_syms 130 -#define __NR_quotactl 131 -#define __NR_getpgid 132 -#define __NR_fchdir 133 -#define __NR_bdflush 134 -#define __NR_sysfs 135 -#define __NR_personality 136 -#define __NR_afs_syscall 137 -#define __NR_setfsuid 138 -#define __NR_setfsgid 139 -#define __NR__llseek 140 -#define __NR_getdents 141 -#define __NR__newselect 142 -#define __NR_flock 143 -#define __NR_msync 144 -#define __NR_readv 145 -#define __NR_writev 146 -#define __NR_getsid 147 -#define __NR_fdatasync 148 -#define __NR__sysctl 149 -#define __NR_mlock 150 -#define __NR_munlock 151 -#define __NR_mlockall 152 -#define __NR_munlockall 153 -#define __NR_sched_setparam 154 -#define __NR_sched_getparam 155 -#define __NR_sched_setscheduler 156 -#define __NR_sched_getscheduler 157 -#define __NR_sched_yield 158 -#define __NR_sched_get_priority_max 159 -#define __NR_sched_get_priority_min 160 -#define __NR_sched_rr_get_interval 161 -#define __NR_nanosleep 162 -#define __NR_mremap 163 -#define __NR_setresuid 164 -#define __NR_getresuid 165 -#define __NR_query_module 166 -#define __NR_poll 167 -#define __NR_nfsservctl 168 -#define __NR_setresgid 169 -#define __NR_getresgid 170 -#define __NR_prctl 171 -#define __NR_rt_sigreturn 172 -#define __NR_rt_sigaction 173 -#define __NR_rt_sigprocmask 174 -#define __NR_rt_sigpending 175 -#define __NR_rt_sigtimedwait 176 -#define __NR_rt_sigqueueinfo 177 -#define __NR_rt_sigsuspend 178 -#define __NR_pread64 179 -#define __NR_pwrite64 180 -#define __NR_chown 181 -#define __NR_getcwd 182 -#define __NR_capget 183 -#define __NR_capset 184 -#define __NR_sigaltstack 185 -#define __NR_sendfile 186 -#define __NR_getpmsg 187 -#define __NR_putpmsg 188 -#define __NR_vfork 189 -#define __NR_ugetrlimit 190 -#define __NR_readahead 191 -#define __NR_pciconfig_read 198 -#define __NR_pciconfig_write 199 -#define __NR_pciconfig_iobase 200 -#define __NR_multiplexer 201 -#define __NR_getdents64 202 -#define __NR_pivot_root 203 -#define __NR_madvise 205 -#define __NR_mincore 206 -#define __NR_gettid 207 -#define __NR_tkill 208 -#define __NR_setxattr 209 -#define __NR_lsetxattr 210 -#define __NR_fsetxattr 211 -#define __NR_getxattr 212 -#define __NR_lgetxattr 213 -#define __NR_fgetxattr 214 -#define __NR_listxattr 215 -#define __NR_llistxattr 216 -#define __NR_flistxattr 217 -#define __NR_removexattr 218 -#define __NR_lremovexattr 219 -#define __NR_fremovexattr 220 -#define __NR_futex 221 -#define __NR_sched_setaffinity 222 -#define __NR_sched_getaffinity 223 -#define __NR_tuxcall 225 -#define __NR_io_setup 227 -#define __NR_io_destroy 228 -#define __NR_io_getevents 229 -#define __NR_io_submit 230 -#define __NR_io_cancel 231 -#define __NR_set_tid_address 232 -#define __NR_fadvise64 233 -#define __NR_exit_group 234 -#define __NR_lookup_dcookie 235 -#define __NR_epoll_create 236 -#define __NR_epoll_ctl 237 -#define __NR_epoll_wait 238 -#define __NR_remap_file_pages 239 -#define __NR_timer_create 240 -#define __NR_timer_settime 241 -#define __NR_timer_gettime 242 -#define __NR_timer_getoverrun 243 -#define __NR_timer_delete 244 -#define __NR_clock_settime 245 -#define __NR_clock_gettime 246 -#define __NR_clock_getres 247 -#define __NR_clock_nanosleep 248 -#define __NR_swapcontext 249 -#define __NR_tgkill 250 -#define __NR_utimes 251 -#define __NR_statfs64 252 -#define __NR_fstatfs64 253 -#define __NR_rtas 255 -#define __NR_sys_debug_setcontext 256 -#define __NR_migrate_pages 258 -#define __NR_mbind 259 -#define __NR_get_mempolicy 260 -#define __NR_set_mempolicy 261 -#define __NR_mq_open 262 -#define __NR_mq_unlink 263 -#define __NR_mq_timedsend 264 -#define __NR_mq_timedreceive 265 -#define __NR_mq_notify 266 -#define __NR_mq_getsetattr 267 -#define __NR_kexec_load 268 -#define __NR_add_key 269 -#define __NR_request_key 270 -#define __NR_keyctl 271 -#define __NR_waitid 272 -#define __NR_ioprio_set 273 -#define __NR_ioprio_get 274 -#define __NR_inotify_init 275 -#define __NR_inotify_add_watch 276 -#define __NR_inotify_rm_watch 277 -#define __NR_spu_run 278 -#define __NR_spu_create 279 -#define __NR_pselect6 280 -#define __NR_ppoll 281 -#define __NR_unshare 282 -#define __NR_splice 283 -#define __NR_tee 284 -#define __NR_vmsplice 285 -#define __NR_openat 286 -#define __NR_mkdirat 287 -#define __NR_mknodat 288 -#define __NR_fchownat 289 -#define __NR_futimesat 290 -#define __NR_newfstatat 291 -#define __NR_unlinkat 292 -#define __NR_renameat 293 -#define __NR_linkat 294 -#define __NR_symlinkat 295 -#define __NR_readlinkat 296 -#define __NR_fchmodat 297 -#define __NR_faccessat 298 -#define __NR_get_robust_list 299 -#define __NR_set_robust_list 300 -#define __NR_move_pages 301 -#define __NR_getcpu 302 -#define __NR_epoll_pwait 303 -#define __NR_utimensat 304 -#define __NR_signalfd 305 -#define __NR_timerfd_create 306 -#define __NR_eventfd 307 -#define __NR_sync_file_range2 308 -#define __NR_fallocate 309 -#define __NR_subpage_prot 310 -#define __NR_timerfd_settime 311 -#define __NR_timerfd_gettime 312 -#define __NR_signalfd4 313 -#define __NR_eventfd2 314 -#define __NR_epoll_create1 315 -#define __NR_dup3 316 -#define __NR_pipe2 317 -#define __NR_inotify_init1 318 -#define __NR_perf_event_open 319 -#define __NR_preadv 320 -#define __NR_pwritev 321 -#define __NR_rt_tgsigqueueinfo 322 -#define __NR_fanotify_init 323 -#define __NR_fanotify_mark 324 -#define __NR_prlimit64 325 -#define __NR_socket 326 -#define __NR_bind 327 -#define __NR_connect 328 -#define __NR_listen 329 -#define __NR_accept 330 -#define __NR_getsockname 331 -#define __NR_getpeername 332 -#define __NR_socketpair 333 -#define __NR_send 334 -#define __NR_sendto 335 -#define __NR_recv 336 -#define __NR_recvfrom 337 -#define __NR_shutdown 338 -#define __NR_setsockopt 339 -#define __NR_getsockopt 340 -#define __NR_sendmsg 341 -#define __NR_recvmsg 342 -#define __NR_recvmmsg 343 -#define __NR_accept4 344 -#define __NR_name_to_handle_at 345 -#define __NR_open_by_handle_at 346 -#define __NR_clock_adjtime 347 -#define __NR_syncfs 348 -#define __NR_sendmmsg 349 -#define __NR_setns 350 -#define __NR_process_vm_readv 351 -#define __NR_process_vm_writev 352 -#define __NR_finit_module 353 -#define __NR_kcmp 354 -#define __NR_sched_setattr 355 -#define __NR_sched_getattr 356 -#define __NR_renameat2 357 -#define __NR_seccomp 358 -#define __NR_getrandom 359 -#define __NR_memfd_create 360 -#define __NR_bpf 361 -#define __NR_execveat 362 -#define __NR_switch_endian 363 -#define __NR_userfaultfd 364 -#define __NR_membarrier 365 -#define __NR_mlock2 378 -#define __NR_copy_file_range 379 -#define __NR_preadv2 380 -#define __NR_pwritev2 381 -#define __NR_kexec_file_load 382 -#define __NR_statx 383 -#define __NR_pkey_alloc 384 -#define __NR_pkey_free 385 -#define __NR_pkey_mprotect 386 -#define __NR_rseq 387 -#define __NR_io_pgetevents 388 -#define __NR_semtimedop 392 -#define __NR_semget 393 -#define __NR_semctl 394 -#define __NR_shmget 395 -#define __NR_shmctl 396 -#define __NR_shmat 397 -#define __NR_shmdt 398 -#define __NR_msgget 399 -#define __NR_msgsnd 400 -#define __NR_msgrcv 401 -#define __NR_msgctl 402 -#define __NR_pidfd_send_signal 424 -#define __NR_io_uring_setup 425 -#define __NR_io_uring_enter 426 -#define __NR_io_uring_register 427 -#define __NR_open_tree 428 -#define __NR_move_mount 429 -#define __NR_fsopen 430 -#define __NR_fsconfig 431 -#define __NR_fsmount 432 -#define __NR_fspick 433 -#define __NR_pidfd_open 434 -#define __NR_clone3 435 -#define __NR_openat2 437 -#define __NR_pidfd_getfd 438 - - -#endif /* _ASM_POWERPC_UNISTD_64_H */ diff --git a/contrib/libs/linux-headers/asm/unistd_64_x86.h b/contrib/libs/linux-headers/asm/unistd_64_x86.h deleted file mode 100644 index 6daf0aecb29..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_64_x86.h +++ /dev/null @@ -1,355 +0,0 @@ -#ifndef _ASM_X86_UNISTD_64_H -#define _ASM_X86_UNISTD_64_H 1 - -#define __NR_read 0 -#define __NR_write 1 -#define __NR_open 2 -#define __NR_close 3 -#define __NR_stat 4 -#define __NR_fstat 5 -#define __NR_lstat 6 -#define __NR_poll 7 -#define __NR_lseek 8 -#define __NR_mmap 9 -#define __NR_mprotect 10 -#define __NR_munmap 11 -#define __NR_brk 12 -#define __NR_rt_sigaction 13 -#define __NR_rt_sigprocmask 14 -#define __NR_rt_sigreturn 15 -#define __NR_ioctl 16 -#define __NR_pread64 17 -#define __NR_pwrite64 18 -#define __NR_readv 19 -#define __NR_writev 20 -#define __NR_access 21 -#define __NR_pipe 22 -#define __NR_select 23 -#define __NR_sched_yield 24 -#define __NR_mremap 25 -#define __NR_msync 26 -#define __NR_mincore 27 -#define __NR_madvise 28 -#define __NR_shmget 29 -#define __NR_shmat 30 -#define __NR_shmctl 31 -#define __NR_dup 32 -#define __NR_dup2 33 -#define __NR_pause 34 -#define __NR_nanosleep 35 -#define __NR_getitimer 36 -#define __NR_alarm 37 -#define __NR_setitimer 38 -#define __NR_getpid 39 -#define __NR_sendfile 40 -#define __NR_socket 41 -#define __NR_connect 42 -#define __NR_accept 43 -#define __NR_sendto 44 -#define __NR_recvfrom 45 -#define __NR_sendmsg 46 -#define __NR_recvmsg 47 -#define __NR_shutdown 48 -#define __NR_bind 49 -#define __NR_listen 50 -#define __NR_getsockname 51 -#define __NR_getpeername 52 -#define __NR_socketpair 53 -#define __NR_setsockopt 54 -#define __NR_getsockopt 55 -#define __NR_clone 56 -#define __NR_fork 57 -#define __NR_vfork 58 -#define __NR_execve 59 -#define __NR_exit 60 -#define __NR_wait4 61 -#define __NR_kill 62 -#define __NR_uname 63 -#define __NR_semget 64 -#define __NR_semop 65 -#define __NR_semctl 66 -#define __NR_shmdt 67 -#define __NR_msgget 68 -#define __NR_msgsnd 69 -#define __NR_msgrcv 70 -#define __NR_msgctl 71 -#define __NR_fcntl 72 -#define __NR_flock 73 -#define __NR_fsync 74 -#define __NR_fdatasync 75 -#define __NR_truncate 76 -#define __NR_ftruncate 77 -#define __NR_getdents 78 -#define __NR_getcwd 79 -#define __NR_chdir 80 -#define __NR_fchdir 81 -#define __NR_rename 82 -#define __NR_mkdir 83 -#define __NR_rmdir 84 -#define __NR_creat 85 -#define __NR_link 86 -#define __NR_unlink 87 -#define __NR_symlink 88 -#define __NR_readlink 89 -#define __NR_chmod 90 -#define __NR_fchmod 91 -#define __NR_chown 92 -#define __NR_fchown 93 -#define __NR_lchown 94 -#define __NR_umask 95 -#define __NR_gettimeofday 96 -#define __NR_getrlimit 97 -#define __NR_getrusage 98 -#define __NR_sysinfo 99 -#define __NR_times 100 -#define __NR_ptrace 101 -#define __NR_getuid 102 -#define __NR_syslog 103 -#define __NR_getgid 104 -#define __NR_setuid 105 -#define __NR_setgid 106 -#define __NR_geteuid 107 -#define __NR_getegid 108 -#define __NR_setpgid 109 -#define __NR_getppid 110 -#define __NR_getpgrp 111 -#define __NR_setsid 112 -#define __NR_setreuid 113 -#define __NR_setregid 114 -#define __NR_getgroups 115 -#define __NR_setgroups 116 -#define __NR_setresuid 117 -#define __NR_getresuid 118 -#define __NR_setresgid 119 -#define __NR_getresgid 120 -#define __NR_getpgid 121 -#define __NR_setfsuid 122 -#define __NR_setfsgid 123 -#define __NR_getsid 124 -#define __NR_capget 125 -#define __NR_capset 126 -#define __NR_rt_sigpending 127 -#define __NR_rt_sigtimedwait 128 -#define __NR_rt_sigqueueinfo 129 -#define __NR_rt_sigsuspend 130 -#define __NR_sigaltstack 131 -#define __NR_utime 132 -#define __NR_mknod 133 -#define __NR_uselib 134 -#define __NR_personality 135 -#define __NR_ustat 136 -#define __NR_statfs 137 -#define __NR_fstatfs 138 -#define __NR_sysfs 139 -#define __NR_getpriority 140 -#define __NR_setpriority 141 -#define __NR_sched_setparam 142 -#define __NR_sched_getparam 143 -#define __NR_sched_setscheduler 144 -#define __NR_sched_getscheduler 145 -#define __NR_sched_get_priority_max 146 -#define __NR_sched_get_priority_min 147 -#define __NR_sched_rr_get_interval 148 -#define __NR_mlock 149 -#define __NR_munlock 150 -#define __NR_mlockall 151 -#define __NR_munlockall 152 -#define __NR_vhangup 153 -#define __NR_modify_ldt 154 -#define __NR_pivot_root 155 -#define __NR__sysctl 156 -#define __NR_prctl 157 -#define __NR_arch_prctl 158 -#define __NR_adjtimex 159 -#define __NR_setrlimit 160 -#define __NR_chroot 161 -#define __NR_sync 162 -#define __NR_acct 163 -#define __NR_settimeofday 164 -#define __NR_mount 165 -#define __NR_umount2 166 -#define __NR_swapon 167 -#define __NR_swapoff 168 -#define __NR_reboot 169 -#define __NR_sethostname 170 -#define __NR_setdomainname 171 -#define __NR_iopl 172 -#define __NR_ioperm 173 -#define __NR_create_module 174 -#define __NR_init_module 175 -#define __NR_delete_module 176 -#define __NR_get_kernel_syms 177 -#define __NR_query_module 178 -#define __NR_quotactl 179 -#define __NR_nfsservctl 180 -#define __NR_getpmsg 181 -#define __NR_putpmsg 182 -#define __NR_afs_syscall 183 -#define __NR_tuxcall 184 -#define __NR_security 185 -#define __NR_gettid 186 -#define __NR_readahead 187 -#define __NR_setxattr 188 -#define __NR_lsetxattr 189 -#define __NR_fsetxattr 190 -#define __NR_getxattr 191 -#define __NR_lgetxattr 192 -#define __NR_fgetxattr 193 -#define __NR_listxattr 194 -#define __NR_llistxattr 195 -#define __NR_flistxattr 196 -#define __NR_removexattr 197 -#define __NR_lremovexattr 198 -#define __NR_fremovexattr 199 -#define __NR_tkill 200 -#define __NR_time 201 -#define __NR_futex 202 -#define __NR_sched_setaffinity 203 -#define __NR_sched_getaffinity 204 -#define __NR_set_thread_area 205 -#define __NR_io_setup 206 -#define __NR_io_destroy 207 -#define __NR_io_getevents 208 -#define __NR_io_submit 209 -#define __NR_io_cancel 210 -#define __NR_get_thread_area 211 -#define __NR_lookup_dcookie 212 -#define __NR_epoll_create 213 -#define __NR_epoll_ctl_old 214 -#define __NR_epoll_wait_old 215 -#define __NR_remap_file_pages 216 -#define __NR_getdents64 217 -#define __NR_set_tid_address 218 -#define __NR_restart_syscall 219 -#define __NR_semtimedop 220 -#define __NR_fadvise64 221 -#define __NR_timer_create 222 -#define __NR_timer_settime 223 -#define __NR_timer_gettime 224 -#define __NR_timer_getoverrun 225 -#define __NR_timer_delete 226 -#define __NR_clock_settime 227 -#define __NR_clock_gettime 228 -#define __NR_clock_getres 229 -#define __NR_clock_nanosleep 230 -#define __NR_exit_group 231 -#define __NR_epoll_wait 232 -#define __NR_epoll_ctl 233 -#define __NR_tgkill 234 -#define __NR_utimes 235 -#define __NR_vserver 236 -#define __NR_mbind 237 -#define __NR_set_mempolicy 238 -#define __NR_get_mempolicy 239 -#define __NR_mq_open 240 -#define __NR_mq_unlink 241 -#define __NR_mq_timedsend 242 -#define __NR_mq_timedreceive 243 -#define __NR_mq_notify 244 -#define __NR_mq_getsetattr 245 -#define __NR_kexec_load 246 -#define __NR_waitid 247 -#define __NR_add_key 248 -#define __NR_request_key 249 -#define __NR_keyctl 250 -#define __NR_ioprio_set 251 -#define __NR_ioprio_get 252 -#define __NR_inotify_init 253 -#define __NR_inotify_add_watch 254 -#define __NR_inotify_rm_watch 255 -#define __NR_migrate_pages 256 -#define __NR_openat 257 -#define __NR_mkdirat 258 -#define __NR_mknodat 259 -#define __NR_fchownat 260 -#define __NR_futimesat 261 -#define __NR_newfstatat 262 -#define __NR_unlinkat 263 -#define __NR_renameat 264 -#define __NR_linkat 265 -#define __NR_symlinkat 266 -#define __NR_readlinkat 267 -#define __NR_fchmodat 268 -#define __NR_faccessat 269 -#define __NR_pselect6 270 -#define __NR_ppoll 271 -#define __NR_unshare 272 -#define __NR_set_robust_list 273 -#define __NR_get_robust_list 274 -#define __NR_splice 275 -#define __NR_tee 276 -#define __NR_sync_file_range 277 -#define __NR_vmsplice 278 -#define __NR_move_pages 279 -#define __NR_utimensat 280 -#define __NR_epoll_pwait 281 -#define __NR_signalfd 282 -#define __NR_timerfd_create 283 -#define __NR_eventfd 284 -#define __NR_fallocate 285 -#define __NR_timerfd_settime 286 -#define __NR_timerfd_gettime 287 -#define __NR_accept4 288 -#define __NR_signalfd4 289 -#define __NR_eventfd2 290 -#define __NR_epoll_create1 291 -#define __NR_dup3 292 -#define __NR_pipe2 293 -#define __NR_inotify_init1 294 -#define __NR_preadv 295 -#define __NR_pwritev 296 -#define __NR_rt_tgsigqueueinfo 297 -#define __NR_perf_event_open 298 -#define __NR_recvmmsg 299 -#define __NR_fanotify_init 300 -#define __NR_fanotify_mark 301 -#define __NR_prlimit64 302 -#define __NR_name_to_handle_at 303 -#define __NR_open_by_handle_at 304 -#define __NR_clock_adjtime 305 -#define __NR_syncfs 306 -#define __NR_sendmmsg 307 -#define __NR_setns 308 -#define __NR_getcpu 309 -#define __NR_process_vm_readv 310 -#define __NR_process_vm_writev 311 -#define __NR_kcmp 312 -#define __NR_finit_module 313 -#define __NR_sched_setattr 314 -#define __NR_sched_getattr 315 -#define __NR_renameat2 316 -#define __NR_seccomp 317 -#define __NR_getrandom 318 -#define __NR_memfd_create 319 -#define __NR_kexec_file_load 320 -#define __NR_bpf 321 -#define __NR_execveat 322 -#define __NR_userfaultfd 323 -#define __NR_membarrier 324 -#define __NR_mlock2 325 -#define __NR_copy_file_range 326 -#define __NR_preadv2 327 -#define __NR_pwritev2 328 -#define __NR_pkey_mprotect 329 -#define __NR_pkey_alloc 330 -#define __NR_pkey_free 331 -#define __NR_statx 332 -#define __NR_io_pgetevents 333 -#define __NR_rseq 334 -#define __NR_pidfd_send_signal 424 -#define __NR_io_uring_setup 425 -#define __NR_io_uring_enter 426 -#define __NR_io_uring_register 427 -#define __NR_open_tree 428 -#define __NR_move_mount 429 -#define __NR_fsopen 430 -#define __NR_fsconfig 431 -#define __NR_fsmount 432 -#define __NR_fspick 433 -#define __NR_pidfd_open 434 -#define __NR_clone3 435 -#define __NR_openat2 437 -#define __NR_pidfd_getfd 438 - - -#endif /* _ASM_X86_UNISTD_64_H */ diff --git a/contrib/libs/linux-headers/asm/unistd_arm.h b/contrib/libs/linux-headers/asm/unistd_arm.h deleted file mode 100644 index 18b0825885e..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_arm.h +++ /dev/null @@ -1,41 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * arch/arm/include/asm/unistd.h - * - * Copyright (C) 2001-2005 Russell King - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Please forward _all_ changes to this file to rmk@arm.linux.org.uk, - * no matter what the change is. Thanks! - */ -#ifndef __ASM_ARM_UNISTD_H -#define __ASM_ARM_UNISTD_H - -#define __NR_OABI_SYSCALL_BASE 0x900000 - -#if defined(__thumb__) || defined(__ARM_EABI__) -#define __NR_SYSCALL_BASE 0 -#include <asm/unistd-eabi.h> -#else -#define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE -#include <asm/unistd-oabi.h> -#endif - -#include <asm/unistd-common.h> -#define __NR_sync_file_range2 __NR_arm_sync_file_range - -/* - * The following SWIs are ARM private. - */ -#define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000) -#define __ARM_NR_breakpoint (__ARM_NR_BASE+1) -#define __ARM_NR_cacheflush (__ARM_NR_BASE+2) -#define __ARM_NR_usr26 (__ARM_NR_BASE+3) -#define __ARM_NR_usr32 (__ARM_NR_BASE+4) -#define __ARM_NR_set_tls (__ARM_NR_BASE+5) -#define __ARM_NR_get_tls (__ARM_NR_BASE+6) - -#endif /* __ASM_ARM_UNISTD_H */ diff --git a/contrib/libs/linux-headers/asm/unistd_arm64.h b/contrib/libs/linux-headers/asm/unistd_arm64.h deleted file mode 100644 index f83a70e07df..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_arm64.h +++ /dev/null @@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#define __ARCH_WANT_RENAMEAT -#define __ARCH_WANT_NEW_STAT -#define __ARCH_WANT_SET_GET_RLIMIT -#define __ARCH_WANT_TIME32_SYSCALLS -#define __ARCH_WANT_SYS_CLONE3 - -#include <asm-generic/unistd.h> diff --git a/contrib/libs/linux-headers/asm/unistd_powerpc.h b/contrib/libs/linux-headers/asm/unistd_powerpc.h deleted file mode 100644 index 2b29bd80961..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_powerpc.h +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * This file contains the system call numbers. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -#ifndef _ASM_POWERPC_UNISTD_H_ -#define _ASM_POWERPC_UNISTD_H_ - -#ifndef __powerpc64__ -#include <asm/unistd_32.h> -#else -#include <asm/unistd_64.h> -#endif - -#endif /* _ASM_POWERPC_UNISTD_H_ */ diff --git a/contrib/libs/linux-headers/asm/unistd_x32.h b/contrib/libs/linux-headers/asm/unistd_x32.h deleted file mode 100644 index 104f5d51194..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_x32.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "unistd_x32_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/unistd_x32_x86.h b/contrib/libs/linux-headers/asm/unistd_x32_x86.h deleted file mode 100644 index e3f17ef370f..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_x32_x86.h +++ /dev/null @@ -1,344 +0,0 @@ -#ifndef _ASM_X86_UNISTD_X32_H -#define _ASM_X86_UNISTD_X32_H 1 - -#define __NR_read (__X32_SYSCALL_BIT + 0) -#define __NR_write (__X32_SYSCALL_BIT + 1) -#define __NR_open (__X32_SYSCALL_BIT + 2) -#define __NR_close (__X32_SYSCALL_BIT + 3) -#define __NR_stat (__X32_SYSCALL_BIT + 4) -#define __NR_fstat (__X32_SYSCALL_BIT + 5) -#define __NR_lstat (__X32_SYSCALL_BIT + 6) -#define __NR_poll (__X32_SYSCALL_BIT + 7) -#define __NR_lseek (__X32_SYSCALL_BIT + 8) -#define __NR_mmap (__X32_SYSCALL_BIT + 9) -#define __NR_mprotect (__X32_SYSCALL_BIT + 10) -#define __NR_munmap (__X32_SYSCALL_BIT + 11) -#define __NR_brk (__X32_SYSCALL_BIT + 12) -#define __NR_rt_sigprocmask (__X32_SYSCALL_BIT + 14) -#define __NR_pread64 (__X32_SYSCALL_BIT + 17) -#define __NR_pwrite64 (__X32_SYSCALL_BIT + 18) -#define __NR_access (__X32_SYSCALL_BIT + 21) -#define __NR_pipe (__X32_SYSCALL_BIT + 22) -#define __NR_select (__X32_SYSCALL_BIT + 23) -#define __NR_sched_yield (__X32_SYSCALL_BIT + 24) -#define __NR_mremap (__X32_SYSCALL_BIT + 25) -#define __NR_msync (__X32_SYSCALL_BIT + 26) -#define __NR_mincore (__X32_SYSCALL_BIT + 27) -#define __NR_madvise (__X32_SYSCALL_BIT + 28) -#define __NR_shmget (__X32_SYSCALL_BIT + 29) -#define __NR_shmat (__X32_SYSCALL_BIT + 30) -#define __NR_shmctl (__X32_SYSCALL_BIT + 31) -#define __NR_dup (__X32_SYSCALL_BIT + 32) -#define __NR_dup2 (__X32_SYSCALL_BIT + 33) -#define __NR_pause (__X32_SYSCALL_BIT + 34) -#define __NR_nanosleep (__X32_SYSCALL_BIT + 35) -#define __NR_getitimer (__X32_SYSCALL_BIT + 36) -#define __NR_alarm (__X32_SYSCALL_BIT + 37) -#define __NR_setitimer (__X32_SYSCALL_BIT + 38) -#define __NR_getpid (__X32_SYSCALL_BIT + 39) -#define __NR_sendfile (__X32_SYSCALL_BIT + 40) -#define __NR_socket (__X32_SYSCALL_BIT + 41) -#define __NR_connect (__X32_SYSCALL_BIT + 42) -#define __NR_accept (__X32_SYSCALL_BIT + 43) -#define __NR_sendto (__X32_SYSCALL_BIT + 44) -#define __NR_shutdown (__X32_SYSCALL_BIT + 48) -#define __NR_bind (__X32_SYSCALL_BIT + 49) -#define __NR_listen (__X32_SYSCALL_BIT + 50) -#define __NR_getsockname (__X32_SYSCALL_BIT + 51) -#define __NR_getpeername (__X32_SYSCALL_BIT + 52) -#define __NR_socketpair (__X32_SYSCALL_BIT + 53) -#define __NR_clone (__X32_SYSCALL_BIT + 56) -#define __NR_fork (__X32_SYSCALL_BIT + 57) -#define __NR_vfork (__X32_SYSCALL_BIT + 58) -#define __NR_exit (__X32_SYSCALL_BIT + 60) -#define __NR_wait4 (__X32_SYSCALL_BIT + 61) -#define __NR_kill (__X32_SYSCALL_BIT + 62) -#define __NR_uname (__X32_SYSCALL_BIT + 63) -#define __NR_semget (__X32_SYSCALL_BIT + 64) -#define __NR_semop (__X32_SYSCALL_BIT + 65) -#define __NR_semctl (__X32_SYSCALL_BIT + 66) -#define __NR_shmdt (__X32_SYSCALL_BIT + 67) -#define __NR_msgget (__X32_SYSCALL_BIT + 68) -#define __NR_msgsnd (__X32_SYSCALL_BIT + 69) -#define __NR_msgrcv (__X32_SYSCALL_BIT + 70) -#define __NR_msgctl (__X32_SYSCALL_BIT + 71) -#define __NR_fcntl (__X32_SYSCALL_BIT + 72) -#define __NR_flock (__X32_SYSCALL_BIT + 73) -#define __NR_fsync (__X32_SYSCALL_BIT + 74) -#define __NR_fdatasync (__X32_SYSCALL_BIT + 75) -#define __NR_truncate (__X32_SYSCALL_BIT + 76) -#define __NR_ftruncate (__X32_SYSCALL_BIT + 77) -#define __NR_getdents (__X32_SYSCALL_BIT + 78) -#define __NR_getcwd (__X32_SYSCALL_BIT + 79) -#define __NR_chdir (__X32_SYSCALL_BIT + 80) -#define __NR_fchdir (__X32_SYSCALL_BIT + 81) -#define __NR_rename (__X32_SYSCALL_BIT + 82) -#define __NR_mkdir (__X32_SYSCALL_BIT + 83) -#define __NR_rmdir (__X32_SYSCALL_BIT + 84) -#define __NR_creat (__X32_SYSCALL_BIT + 85) -#define __NR_link (__X32_SYSCALL_BIT + 86) -#define __NR_unlink (__X32_SYSCALL_BIT + 87) -#define __NR_symlink (__X32_SYSCALL_BIT + 88) -#define __NR_readlink (__X32_SYSCALL_BIT + 89) -#define __NR_chmod (__X32_SYSCALL_BIT + 90) -#define __NR_fchmod (__X32_SYSCALL_BIT + 91) -#define __NR_chown (__X32_SYSCALL_BIT + 92) -#define __NR_fchown (__X32_SYSCALL_BIT + 93) -#define __NR_lchown (__X32_SYSCALL_BIT + 94) -#define __NR_umask (__X32_SYSCALL_BIT + 95) -#define __NR_gettimeofday (__X32_SYSCALL_BIT + 96) -#define __NR_getrlimit (__X32_SYSCALL_BIT + 97) -#define __NR_getrusage (__X32_SYSCALL_BIT + 98) -#define __NR_sysinfo (__X32_SYSCALL_BIT + 99) -#define __NR_times (__X32_SYSCALL_BIT + 100) -#define __NR_getuid (__X32_SYSCALL_BIT + 102) -#define __NR_syslog (__X32_SYSCALL_BIT + 103) -#define __NR_getgid (__X32_SYSCALL_BIT + 104) -#define __NR_setuid (__X32_SYSCALL_BIT + 105) -#define __NR_setgid (__X32_SYSCALL_BIT + 106) -#define __NR_geteuid (__X32_SYSCALL_BIT + 107) -#define __NR_getegid (__X32_SYSCALL_BIT + 108) -#define __NR_setpgid (__X32_SYSCALL_BIT + 109) -#define __NR_getppid (__X32_SYSCALL_BIT + 110) -#define __NR_getpgrp (__X32_SYSCALL_BIT + 111) -#define __NR_setsid (__X32_SYSCALL_BIT + 112) -#define __NR_setreuid (__X32_SYSCALL_BIT + 113) -#define __NR_setregid (__X32_SYSCALL_BIT + 114) -#define __NR_getgroups (__X32_SYSCALL_BIT + 115) -#define __NR_setgroups (__X32_SYSCALL_BIT + 116) -#define __NR_setresuid (__X32_SYSCALL_BIT + 117) -#define __NR_getresuid (__X32_SYSCALL_BIT + 118) -#define __NR_setresgid (__X32_SYSCALL_BIT + 119) -#define __NR_getresgid (__X32_SYSCALL_BIT + 120) -#define __NR_getpgid (__X32_SYSCALL_BIT + 121) -#define __NR_setfsuid (__X32_SYSCALL_BIT + 122) -#define __NR_setfsgid (__X32_SYSCALL_BIT + 123) -#define __NR_getsid (__X32_SYSCALL_BIT + 124) -#define __NR_capget (__X32_SYSCALL_BIT + 125) -#define __NR_capset (__X32_SYSCALL_BIT + 126) -#define __NR_rt_sigsuspend (__X32_SYSCALL_BIT + 130) -#define __NR_utime (__X32_SYSCALL_BIT + 132) -#define __NR_mknod (__X32_SYSCALL_BIT + 133) -#define __NR_personality (__X32_SYSCALL_BIT + 135) -#define __NR_ustat (__X32_SYSCALL_BIT + 136) -#define __NR_statfs (__X32_SYSCALL_BIT + 137) -#define __NR_fstatfs (__X32_SYSCALL_BIT + 138) -#define __NR_sysfs (__X32_SYSCALL_BIT + 139) -#define __NR_getpriority (__X32_SYSCALL_BIT + 140) -#define __NR_setpriority (__X32_SYSCALL_BIT + 141) -#define __NR_sched_setparam (__X32_SYSCALL_BIT + 142) -#define __NR_sched_getparam (__X32_SYSCALL_BIT + 143) -#define __NR_sched_setscheduler (__X32_SYSCALL_BIT + 144) -#define __NR_sched_getscheduler (__X32_SYSCALL_BIT + 145) -#define __NR_sched_get_priority_max (__X32_SYSCALL_BIT + 146) -#define __NR_sched_get_priority_min (__X32_SYSCALL_BIT + 147) -#define __NR_sched_rr_get_interval (__X32_SYSCALL_BIT + 148) -#define __NR_mlock (__X32_SYSCALL_BIT + 149) -#define __NR_munlock (__X32_SYSCALL_BIT + 150) -#define __NR_mlockall (__X32_SYSCALL_BIT + 151) -#define __NR_munlockall (__X32_SYSCALL_BIT + 152) -#define __NR_vhangup (__X32_SYSCALL_BIT + 153) -#define __NR_modify_ldt (__X32_SYSCALL_BIT + 154) -#define __NR_pivot_root (__X32_SYSCALL_BIT + 155) -#define __NR_prctl (__X32_SYSCALL_BIT + 157) -#define __NR_arch_prctl (__X32_SYSCALL_BIT + 158) -#define __NR_adjtimex (__X32_SYSCALL_BIT + 159) -#define __NR_setrlimit (__X32_SYSCALL_BIT + 160) -#define __NR_chroot (__X32_SYSCALL_BIT + 161) -#define __NR_sync (__X32_SYSCALL_BIT + 162) -#define __NR_acct (__X32_SYSCALL_BIT + 163) -#define __NR_settimeofday (__X32_SYSCALL_BIT + 164) -#define __NR_mount (__X32_SYSCALL_BIT + 165) -#define __NR_umount2 (__X32_SYSCALL_BIT + 166) -#define __NR_swapon (__X32_SYSCALL_BIT + 167) -#define __NR_swapoff (__X32_SYSCALL_BIT + 168) -#define __NR_reboot (__X32_SYSCALL_BIT + 169) -#define __NR_sethostname (__X32_SYSCALL_BIT + 170) -#define __NR_setdomainname (__X32_SYSCALL_BIT + 171) -#define __NR_iopl (__X32_SYSCALL_BIT + 172) -#define __NR_ioperm (__X32_SYSCALL_BIT + 173) -#define __NR_init_module (__X32_SYSCALL_BIT + 175) -#define __NR_delete_module (__X32_SYSCALL_BIT + 176) -#define __NR_quotactl (__X32_SYSCALL_BIT + 179) -#define __NR_getpmsg (__X32_SYSCALL_BIT + 181) -#define __NR_putpmsg (__X32_SYSCALL_BIT + 182) -#define __NR_afs_syscall (__X32_SYSCALL_BIT + 183) -#define __NR_tuxcall (__X32_SYSCALL_BIT + 184) -#define __NR_security (__X32_SYSCALL_BIT + 185) -#define __NR_gettid (__X32_SYSCALL_BIT + 186) -#define __NR_readahead (__X32_SYSCALL_BIT + 187) -#define __NR_setxattr (__X32_SYSCALL_BIT + 188) -#define __NR_lsetxattr (__X32_SYSCALL_BIT + 189) -#define __NR_fsetxattr (__X32_SYSCALL_BIT + 190) -#define __NR_getxattr (__X32_SYSCALL_BIT + 191) -#define __NR_lgetxattr (__X32_SYSCALL_BIT + 192) -#define __NR_fgetxattr (__X32_SYSCALL_BIT + 193) -#define __NR_listxattr (__X32_SYSCALL_BIT + 194) -#define __NR_llistxattr (__X32_SYSCALL_BIT + 195) -#define __NR_flistxattr (__X32_SYSCALL_BIT + 196) -#define __NR_removexattr (__X32_SYSCALL_BIT + 197) -#define __NR_lremovexattr (__X32_SYSCALL_BIT + 198) -#define __NR_fremovexattr (__X32_SYSCALL_BIT + 199) -#define __NR_tkill (__X32_SYSCALL_BIT + 200) -#define __NR_time (__X32_SYSCALL_BIT + 201) -#define __NR_futex (__X32_SYSCALL_BIT + 202) -#define __NR_sched_setaffinity (__X32_SYSCALL_BIT + 203) -#define __NR_sched_getaffinity (__X32_SYSCALL_BIT + 204) -#define __NR_io_destroy (__X32_SYSCALL_BIT + 207) -#define __NR_io_getevents (__X32_SYSCALL_BIT + 208) -#define __NR_io_cancel (__X32_SYSCALL_BIT + 210) -#define __NR_lookup_dcookie (__X32_SYSCALL_BIT + 212) -#define __NR_epoll_create (__X32_SYSCALL_BIT + 213) -#define __NR_remap_file_pages (__X32_SYSCALL_BIT + 216) -#define __NR_getdents64 (__X32_SYSCALL_BIT + 217) -#define __NR_set_tid_address (__X32_SYSCALL_BIT + 218) -#define __NR_restart_syscall (__X32_SYSCALL_BIT + 219) -#define __NR_semtimedop (__X32_SYSCALL_BIT + 220) -#define __NR_fadvise64 (__X32_SYSCALL_BIT + 221) -#define __NR_timer_settime (__X32_SYSCALL_BIT + 223) -#define __NR_timer_gettime (__X32_SYSCALL_BIT + 224) -#define __NR_timer_getoverrun (__X32_SYSCALL_BIT + 225) -#define __NR_timer_delete (__X32_SYSCALL_BIT + 226) -#define __NR_clock_settime (__X32_SYSCALL_BIT + 227) -#define __NR_clock_gettime (__X32_SYSCALL_BIT + 228) -#define __NR_clock_getres (__X32_SYSCALL_BIT + 229) -#define __NR_clock_nanosleep (__X32_SYSCALL_BIT + 230) -#define __NR_exit_group (__X32_SYSCALL_BIT + 231) -#define __NR_epoll_wait (__X32_SYSCALL_BIT + 232) -#define __NR_epoll_ctl (__X32_SYSCALL_BIT + 233) -#define __NR_tgkill (__X32_SYSCALL_BIT + 234) -#define __NR_utimes (__X32_SYSCALL_BIT + 235) -#define __NR_mbind (__X32_SYSCALL_BIT + 237) -#define __NR_set_mempolicy (__X32_SYSCALL_BIT + 238) -#define __NR_get_mempolicy (__X32_SYSCALL_BIT + 239) -#define __NR_mq_open (__X32_SYSCALL_BIT + 240) -#define __NR_mq_unlink (__X32_SYSCALL_BIT + 241) -#define __NR_mq_timedsend (__X32_SYSCALL_BIT + 242) -#define __NR_mq_timedreceive (__X32_SYSCALL_BIT + 243) -#define __NR_mq_getsetattr (__X32_SYSCALL_BIT + 245) -#define __NR_add_key (__X32_SYSCALL_BIT + 248) -#define __NR_request_key (__X32_SYSCALL_BIT + 249) -#define __NR_keyctl (__X32_SYSCALL_BIT + 250) -#define __NR_ioprio_set (__X32_SYSCALL_BIT + 251) -#define __NR_ioprio_get (__X32_SYSCALL_BIT + 252) -#define __NR_inotify_init (__X32_SYSCALL_BIT + 253) -#define __NR_inotify_add_watch (__X32_SYSCALL_BIT + 254) -#define __NR_inotify_rm_watch (__X32_SYSCALL_BIT + 255) -#define __NR_migrate_pages (__X32_SYSCALL_BIT + 256) -#define __NR_openat (__X32_SYSCALL_BIT + 257) -#define __NR_mkdirat (__X32_SYSCALL_BIT + 258) -#define __NR_mknodat (__X32_SYSCALL_BIT + 259) -#define __NR_fchownat (__X32_SYSCALL_BIT + 260) -#define __NR_futimesat (__X32_SYSCALL_BIT + 261) -#define __NR_newfstatat (__X32_SYSCALL_BIT + 262) -#define __NR_unlinkat (__X32_SYSCALL_BIT + 263) -#define __NR_renameat (__X32_SYSCALL_BIT + 264) -#define __NR_linkat (__X32_SYSCALL_BIT + 265) -#define __NR_symlinkat (__X32_SYSCALL_BIT + 266) -#define __NR_readlinkat (__X32_SYSCALL_BIT + 267) -#define __NR_fchmodat (__X32_SYSCALL_BIT + 268) -#define __NR_faccessat (__X32_SYSCALL_BIT + 269) -#define __NR_pselect6 (__X32_SYSCALL_BIT + 270) -#define __NR_ppoll (__X32_SYSCALL_BIT + 271) -#define __NR_unshare (__X32_SYSCALL_BIT + 272) -#define __NR_splice (__X32_SYSCALL_BIT + 275) -#define __NR_tee (__X32_SYSCALL_BIT + 276) -#define __NR_sync_file_range (__X32_SYSCALL_BIT + 277) -#define __NR_utimensat (__X32_SYSCALL_BIT + 280) -#define __NR_epoll_pwait (__X32_SYSCALL_BIT + 281) -#define __NR_signalfd (__X32_SYSCALL_BIT + 282) -#define __NR_timerfd_create (__X32_SYSCALL_BIT + 283) -#define __NR_eventfd (__X32_SYSCALL_BIT + 284) -#define __NR_fallocate (__X32_SYSCALL_BIT + 285) -#define __NR_timerfd_settime (__X32_SYSCALL_BIT + 286) -#define __NR_timerfd_gettime (__X32_SYSCALL_BIT + 287) -#define __NR_accept4 (__X32_SYSCALL_BIT + 288) -#define __NR_signalfd4 (__X32_SYSCALL_BIT + 289) -#define __NR_eventfd2 (__X32_SYSCALL_BIT + 290) -#define __NR_epoll_create1 (__X32_SYSCALL_BIT + 291) -#define __NR_dup3 (__X32_SYSCALL_BIT + 292) -#define __NR_pipe2 (__X32_SYSCALL_BIT + 293) -#define __NR_inotify_init1 (__X32_SYSCALL_BIT + 294) -#define __NR_perf_event_open (__X32_SYSCALL_BIT + 298) -#define __NR_fanotify_init (__X32_SYSCALL_BIT + 300) -#define __NR_fanotify_mark (__X32_SYSCALL_BIT + 301) -#define __NR_prlimit64 (__X32_SYSCALL_BIT + 302) -#define __NR_name_to_handle_at (__X32_SYSCALL_BIT + 303) -#define __NR_open_by_handle_at (__X32_SYSCALL_BIT + 304) -#define __NR_clock_adjtime (__X32_SYSCALL_BIT + 305) -#define __NR_syncfs (__X32_SYSCALL_BIT + 306) -#define __NR_setns (__X32_SYSCALL_BIT + 308) -#define __NR_getcpu (__X32_SYSCALL_BIT + 309) -#define __NR_kcmp (__X32_SYSCALL_BIT + 312) -#define __NR_finit_module (__X32_SYSCALL_BIT + 313) -#define __NR_sched_setattr (__X32_SYSCALL_BIT + 314) -#define __NR_sched_getattr (__X32_SYSCALL_BIT + 315) -#define __NR_renameat2 (__X32_SYSCALL_BIT + 316) -#define __NR_seccomp (__X32_SYSCALL_BIT + 317) -#define __NR_getrandom (__X32_SYSCALL_BIT + 318) -#define __NR_memfd_create (__X32_SYSCALL_BIT + 319) -#define __NR_kexec_file_load (__X32_SYSCALL_BIT + 320) -#define __NR_bpf (__X32_SYSCALL_BIT + 321) -#define __NR_userfaultfd (__X32_SYSCALL_BIT + 323) -#define __NR_membarrier (__X32_SYSCALL_BIT + 324) -#define __NR_mlock2 (__X32_SYSCALL_BIT + 325) -#define __NR_copy_file_range (__X32_SYSCALL_BIT + 326) -#define __NR_pkey_mprotect (__X32_SYSCALL_BIT + 329) -#define __NR_pkey_alloc (__X32_SYSCALL_BIT + 330) -#define __NR_pkey_free (__X32_SYSCALL_BIT + 331) -#define __NR_statx (__X32_SYSCALL_BIT + 332) -#define __NR_io_pgetevents (__X32_SYSCALL_BIT + 333) -#define __NR_rseq (__X32_SYSCALL_BIT + 334) -#define __NR_pidfd_send_signal (__X32_SYSCALL_BIT + 424) -#define __NR_io_uring_setup (__X32_SYSCALL_BIT + 425) -#define __NR_io_uring_enter (__X32_SYSCALL_BIT + 426) -#define __NR_io_uring_register (__X32_SYSCALL_BIT + 427) -#define __NR_open_tree (__X32_SYSCALL_BIT + 428) -#define __NR_move_mount (__X32_SYSCALL_BIT + 429) -#define __NR_fsopen (__X32_SYSCALL_BIT + 430) -#define __NR_fsconfig (__X32_SYSCALL_BIT + 431) -#define __NR_fsmount (__X32_SYSCALL_BIT + 432) -#define __NR_fspick (__X32_SYSCALL_BIT + 433) -#define __NR_pidfd_open (__X32_SYSCALL_BIT + 434) -#define __NR_clone3 (__X32_SYSCALL_BIT + 435) -#define __NR_openat2 (__X32_SYSCALL_BIT + 437) -#define __NR_pidfd_getfd (__X32_SYSCALL_BIT + 438) -#define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512) -#define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513) -#define __NR_ioctl (__X32_SYSCALL_BIT + 514) -#define __NR_readv (__X32_SYSCALL_BIT + 515) -#define __NR_writev (__X32_SYSCALL_BIT + 516) -#define __NR_recvfrom (__X32_SYSCALL_BIT + 517) -#define __NR_sendmsg (__X32_SYSCALL_BIT + 518) -#define __NR_recvmsg (__X32_SYSCALL_BIT + 519) -#define __NR_execve (__X32_SYSCALL_BIT + 520) -#define __NR_ptrace (__X32_SYSCALL_BIT + 521) -#define __NR_rt_sigpending (__X32_SYSCALL_BIT + 522) -#define __NR_rt_sigtimedwait (__X32_SYSCALL_BIT + 523) -#define __NR_rt_sigqueueinfo (__X32_SYSCALL_BIT + 524) -#define __NR_sigaltstack (__X32_SYSCALL_BIT + 525) -#define __NR_timer_create (__X32_SYSCALL_BIT + 526) -#define __NR_mq_notify (__X32_SYSCALL_BIT + 527) -#define __NR_kexec_load (__X32_SYSCALL_BIT + 528) -#define __NR_waitid (__X32_SYSCALL_BIT + 529) -#define __NR_set_robust_list (__X32_SYSCALL_BIT + 530) -#define __NR_get_robust_list (__X32_SYSCALL_BIT + 531) -#define __NR_vmsplice (__X32_SYSCALL_BIT + 532) -#define __NR_move_pages (__X32_SYSCALL_BIT + 533) -#define __NR_preadv (__X32_SYSCALL_BIT + 534) -#define __NR_pwritev (__X32_SYSCALL_BIT + 535) -#define __NR_rt_tgsigqueueinfo (__X32_SYSCALL_BIT + 536) -#define __NR_recvmmsg (__X32_SYSCALL_BIT + 537) -#define __NR_sendmmsg (__X32_SYSCALL_BIT + 538) -#define __NR_process_vm_readv (__X32_SYSCALL_BIT + 539) -#define __NR_process_vm_writev (__X32_SYSCALL_BIT + 540) -#define __NR_setsockopt (__X32_SYSCALL_BIT + 541) -#define __NR_getsockopt (__X32_SYSCALL_BIT + 542) -#define __NR_io_setup (__X32_SYSCALL_BIT + 543) -#define __NR_io_submit (__X32_SYSCALL_BIT + 544) -#define __NR_execveat (__X32_SYSCALL_BIT + 545) -#define __NR_preadv2 (__X32_SYSCALL_BIT + 546) -#define __NR_pwritev2 (__X32_SYSCALL_BIT + 547) - - -#endif /* _ASM_X86_UNISTD_X32_H */ diff --git a/contrib/libs/linux-headers/asm/unistd_x86.h b/contrib/libs/linux-headers/asm/unistd_x86.h deleted file mode 100644 index d2af42d61de..00000000000 --- a/contrib/libs/linux-headers/asm/unistd_x86.h +++ /dev/null @@ -1,23 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_UNISTD_H -#define _ASM_X86_UNISTD_H - -/* - * x32 syscall flag bit. Some user programs expect syscall NR macros - * and __X32_SYSCALL_BIT to have type int, even though syscall numbers - * are, for practical purposes, unsigned long. - * - * Fortunately, expressions like (nr & ~__X32_SYSCALL_BIT) do the right - * thing regardless. - */ -#define __X32_SYSCALL_BIT 0x40000000 - -# ifdef __i386__ -# include <asm/unistd_32.h> -# elif defined(__ILP32__) -# include <asm/unistd_x32.h> -# else -# include <asm/unistd_64.h> -# endif - -#endif /* _ASM_X86_UNISTD_H */ diff --git a/contrib/libs/linux-headers/asm/vm86.h b/contrib/libs/linux-headers/asm/vm86.h deleted file mode 100644 index 312f51b820e..00000000000 --- a/contrib/libs/linux-headers/asm/vm86.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "vm86_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/vm86_x86.h b/contrib/libs/linux-headers/asm/vm86_x86.h deleted file mode 100644 index 287f7c81365..00000000000 --- a/contrib/libs/linux-headers/asm/vm86_x86.h +++ /dev/null @@ -1,130 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_VM86_H -#define _ASM_X86_VM86_H - -/* - * I'm guessing at the VIF/VIP flag usage, but hope that this is how - * the Pentium uses them. Linux will return from vm86 mode when both - * VIF and VIP is set. - * - * On a Pentium, we could probably optimize the virtual flags directly - * in the eflags register instead of doing it "by hand" in vflags... - * - * Linus - */ - -#include <asm/processor-flags.h> - -#define BIOSSEG 0x0f000 - -#define CPU_086 0 -#define CPU_186 1 -#define CPU_286 2 -#define CPU_386 3 -#define CPU_486 4 -#define CPU_586 5 - -/* - * Return values for the 'vm86()' system call - */ -#define VM86_TYPE(retval) ((retval) & 0xff) -#define VM86_ARG(retval) ((retval) >> 8) - -#define VM86_SIGNAL 0 /* return due to signal */ -#define VM86_UNKNOWN 1 /* unhandled GP fault - - IO-instruction or similar */ -#define VM86_INTx 2 /* int3/int x instruction (ARG = x) */ -#define VM86_STI 3 /* sti/popf/iret instruction enabled - virtual interrupts */ - -/* - * Additional return values when invoking new vm86() - */ -#define VM86_PICRETURN 4 /* return due to pending PIC request */ -#define VM86_TRAP 6 /* return due to DOS-debugger request */ - -/* - * function codes when invoking new vm86() - */ -#define VM86_PLUS_INSTALL_CHECK 0 -#define VM86_ENTER 1 -#define VM86_ENTER_NO_BYPASS 2 -#define VM86_REQUEST_IRQ 3 -#define VM86_FREE_IRQ 4 -#define VM86_GET_IRQ_BITS 5 -#define VM86_GET_AND_RESET_IRQ 6 - -/* - * This is the stack-layout seen by the user space program when we have - * done a translation of "SAVE_ALL" from vm86 mode. The real kernel layout - * is 'kernel_vm86_regs' (see below). - */ - -struct vm86_regs { -/* - * normal regs, with special meaning for the segment descriptors.. - */ - long ebx; - long ecx; - long edx; - long esi; - long edi; - long ebp; - long eax; - long __null_ds; - long __null_es; - long __null_fs; - long __null_gs; - long orig_eax; - long eip; - unsigned short cs, __csh; - long eflags; - long esp; - unsigned short ss, __ssh; -/* - * these are specific to v86 mode: - */ - unsigned short es, __esh; - unsigned short ds, __dsh; - unsigned short fs, __fsh; - unsigned short gs, __gsh; -}; - -struct revectored_struct { - unsigned long __map[8]; /* 256 bits */ -}; - -struct vm86_struct { - struct vm86_regs regs; - unsigned long flags; - unsigned long screen_bitmap; - unsigned long cpu_type; - struct revectored_struct int_revectored; - struct revectored_struct int21_revectored; -}; - -/* - * flags masks - */ -#define VM86_SCREEN_BITMAP 0x0001 - -struct vm86plus_info_struct { - unsigned long force_return_for_pic:1; - unsigned long vm86dbg_active:1; /* for debugger */ - unsigned long vm86dbg_TFpendig:1; /* for debugger */ - unsigned long unused:28; - unsigned long is_vm86pus:1; /* for vm86 internal use */ - unsigned char vm86dbg_intxxtab[32]; /* for debugger */ -}; -struct vm86plus_struct { - struct vm86_regs regs; - unsigned long flags; - unsigned long screen_bitmap; - unsigned long cpu_type; - struct revectored_struct int_revectored; - struct revectored_struct int21_revectored; - struct vm86plus_info_struct vm86plus; -}; - - -#endif /* _ASM_X86_VM86_H */ diff --git a/contrib/libs/linux-headers/asm/vmx.h b/contrib/libs/linux-headers/asm/vmx.h deleted file mode 100644 index cef1c8281dc..00000000000 --- a/contrib/libs/linux-headers/asm/vmx.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "vmx_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/vmx_x86.h b/contrib/libs/linux-headers/asm/vmx_x86.h deleted file mode 100644 index d8dbf0bd5db..00000000000 --- a/contrib/libs/linux-headers/asm/vmx_x86.h +++ /dev/null @@ -1,157 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * vmx.h: VMX Architecture related definitions - * Copyright (c) 2004, Intel Corporation. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place - Suite 330, Boston, MA 02111-1307 USA. - * - * A few random additions are: - * Copyright (C) 2006 Qumranet - * Avi Kivity <avi@qumranet.com> - * Yaniv Kamay <yaniv@qumranet.com> - * - */ -#ifndef VMX_H -#define VMX_H - - -#define VMX_EXIT_REASONS_FAILED_VMENTRY 0x80000000 - -#define EXIT_REASON_EXCEPTION_NMI 0 -#define EXIT_REASON_EXTERNAL_INTERRUPT 1 -#define EXIT_REASON_TRIPLE_FAULT 2 -#define EXIT_REASON_INIT_SIGNAL 3 - -#define EXIT_REASON_INTERRUPT_WINDOW 7 -#define EXIT_REASON_NMI_WINDOW 8 -#define EXIT_REASON_TASK_SWITCH 9 -#define EXIT_REASON_CPUID 10 -#define EXIT_REASON_HLT 12 -#define EXIT_REASON_INVD 13 -#define EXIT_REASON_INVLPG 14 -#define EXIT_REASON_RDPMC 15 -#define EXIT_REASON_RDTSC 16 -#define EXIT_REASON_VMCALL 18 -#define EXIT_REASON_VMCLEAR 19 -#define EXIT_REASON_VMLAUNCH 20 -#define EXIT_REASON_VMPTRLD 21 -#define EXIT_REASON_VMPTRST 22 -#define EXIT_REASON_VMREAD 23 -#define EXIT_REASON_VMRESUME 24 -#define EXIT_REASON_VMWRITE 25 -#define EXIT_REASON_VMOFF 26 -#define EXIT_REASON_VMON 27 -#define EXIT_REASON_CR_ACCESS 28 -#define EXIT_REASON_DR_ACCESS 29 -#define EXIT_REASON_IO_INSTRUCTION 30 -#define EXIT_REASON_MSR_READ 31 -#define EXIT_REASON_MSR_WRITE 32 -#define EXIT_REASON_INVALID_STATE 33 -#define EXIT_REASON_MSR_LOAD_FAIL 34 -#define EXIT_REASON_MWAIT_INSTRUCTION 36 -#define EXIT_REASON_MONITOR_TRAP_FLAG 37 -#define EXIT_REASON_MONITOR_INSTRUCTION 39 -#define EXIT_REASON_PAUSE_INSTRUCTION 40 -#define EXIT_REASON_MCE_DURING_VMENTRY 41 -#define EXIT_REASON_TPR_BELOW_THRESHOLD 43 -#define EXIT_REASON_APIC_ACCESS 44 -#define EXIT_REASON_EOI_INDUCED 45 -#define EXIT_REASON_GDTR_IDTR 46 -#define EXIT_REASON_LDTR_TR 47 -#define EXIT_REASON_EPT_VIOLATION 48 -#define EXIT_REASON_EPT_MISCONFIG 49 -#define EXIT_REASON_INVEPT 50 -#define EXIT_REASON_RDTSCP 51 -#define EXIT_REASON_PREEMPTION_TIMER 52 -#define EXIT_REASON_INVVPID 53 -#define EXIT_REASON_WBINVD 54 -#define EXIT_REASON_XSETBV 55 -#define EXIT_REASON_APIC_WRITE 56 -#define EXIT_REASON_RDRAND 57 -#define EXIT_REASON_INVPCID 58 -#define EXIT_REASON_VMFUNC 59 -#define EXIT_REASON_ENCLS 60 -#define EXIT_REASON_RDSEED 61 -#define EXIT_REASON_PML_FULL 62 -#define EXIT_REASON_XSAVES 63 -#define EXIT_REASON_XRSTORS 64 -#define EXIT_REASON_UMWAIT 67 -#define EXIT_REASON_TPAUSE 68 - -#define VMX_EXIT_REASONS \ - { EXIT_REASON_EXCEPTION_NMI, "EXCEPTION_NMI" }, \ - { EXIT_REASON_EXTERNAL_INTERRUPT, "EXTERNAL_INTERRUPT" }, \ - { EXIT_REASON_TRIPLE_FAULT, "TRIPLE_FAULT" }, \ - { EXIT_REASON_INIT_SIGNAL, "INIT_SIGNAL" }, \ - { EXIT_REASON_INTERRUPT_WINDOW, "INTERRUPT_WINDOW" }, \ - { EXIT_REASON_NMI_WINDOW, "NMI_WINDOW" }, \ - { EXIT_REASON_TASK_SWITCH, "TASK_SWITCH" }, \ - { EXIT_REASON_CPUID, "CPUID" }, \ - { EXIT_REASON_HLT, "HLT" }, \ - { EXIT_REASON_INVD, "INVD" }, \ - { EXIT_REASON_INVLPG, "INVLPG" }, \ - { EXIT_REASON_RDPMC, "RDPMC" }, \ - { EXIT_REASON_RDTSC, "RDTSC" }, \ - { EXIT_REASON_VMCALL, "VMCALL" }, \ - { EXIT_REASON_VMCLEAR, "VMCLEAR" }, \ - { EXIT_REASON_VMLAUNCH, "VMLAUNCH" }, \ - { EXIT_REASON_VMPTRLD, "VMPTRLD" }, \ - { EXIT_REASON_VMPTRST, "VMPTRST" }, \ - { EXIT_REASON_VMREAD, "VMREAD" }, \ - { EXIT_REASON_VMRESUME, "VMRESUME" }, \ - { EXIT_REASON_VMWRITE, "VMWRITE" }, \ - { EXIT_REASON_VMOFF, "VMOFF" }, \ - { EXIT_REASON_VMON, "VMON" }, \ - { EXIT_REASON_CR_ACCESS, "CR_ACCESS" }, \ - { EXIT_REASON_DR_ACCESS, "DR_ACCESS" }, \ - { EXIT_REASON_IO_INSTRUCTION, "IO_INSTRUCTION" }, \ - { EXIT_REASON_MSR_READ, "MSR_READ" }, \ - { EXIT_REASON_MSR_WRITE, "MSR_WRITE" }, \ - { EXIT_REASON_INVALID_STATE, "INVALID_STATE" }, \ - { EXIT_REASON_MSR_LOAD_FAIL, "MSR_LOAD_FAIL" }, \ - { EXIT_REASON_MWAIT_INSTRUCTION, "MWAIT_INSTRUCTION" }, \ - { EXIT_REASON_MONITOR_TRAP_FLAG, "MONITOR_TRAP_FLAG" }, \ - { EXIT_REASON_MONITOR_INSTRUCTION, "MONITOR_INSTRUCTION" }, \ - { EXIT_REASON_PAUSE_INSTRUCTION, "PAUSE_INSTRUCTION" }, \ - { EXIT_REASON_MCE_DURING_VMENTRY, "MCE_DURING_VMENTRY" }, \ - { EXIT_REASON_TPR_BELOW_THRESHOLD, "TPR_BELOW_THRESHOLD" }, \ - { EXIT_REASON_APIC_ACCESS, "APIC_ACCESS" }, \ - { EXIT_REASON_EOI_INDUCED, "EOI_INDUCED" }, \ - { EXIT_REASON_GDTR_IDTR, "GDTR_IDTR" }, \ - { EXIT_REASON_LDTR_TR, "LDTR_TR" }, \ - { EXIT_REASON_EPT_VIOLATION, "EPT_VIOLATION" }, \ - { EXIT_REASON_EPT_MISCONFIG, "EPT_MISCONFIG" }, \ - { EXIT_REASON_INVEPT, "INVEPT" }, \ - { EXIT_REASON_RDTSCP, "RDTSCP" }, \ - { EXIT_REASON_PREEMPTION_TIMER, "PREEMPTION_TIMER" }, \ - { EXIT_REASON_INVVPID, "INVVPID" }, \ - { EXIT_REASON_WBINVD, "WBINVD" }, \ - { EXIT_REASON_XSETBV, "XSETBV" }, \ - { EXIT_REASON_APIC_WRITE, "APIC_WRITE" }, \ - { EXIT_REASON_RDRAND, "RDRAND" }, \ - { EXIT_REASON_INVPCID, "INVPCID" }, \ - { EXIT_REASON_VMFUNC, "VMFUNC" }, \ - { EXIT_REASON_ENCLS, "ENCLS" }, \ - { EXIT_REASON_RDSEED, "RDSEED" }, \ - { EXIT_REASON_PML_FULL, "PML_FULL" }, \ - { EXIT_REASON_XSAVES, "XSAVES" }, \ - { EXIT_REASON_XRSTORS, "XRSTORS" }, \ - { EXIT_REASON_UMWAIT, "UMWAIT" }, \ - { EXIT_REASON_TPAUSE, "TPAUSE" } - -#define VMX_ABORT_SAVE_GUEST_MSR_FAIL 1 -#define VMX_ABORT_LOAD_HOST_PDPTE_FAIL 2 -#define VMX_ABORT_LOAD_HOST_MSR_FAIL 4 - -#endif /* VMX_H */ diff --git a/contrib/libs/linux-headers/asm/vsyscall.h b/contrib/libs/linux-headers/asm/vsyscall.h deleted file mode 100644 index 4e5b019a8e8..00000000000 --- a/contrib/libs/linux-headers/asm/vsyscall.h +++ /dev/null @@ -1,11 +0,0 @@ -#if defined(__arm__) -#error unavailable for arm -#elif defined(__aarch64__) -#error unavailable for arm64 -#elif defined(__powerpc__) -#error unavailable for powerpc -#elif defined(__i386__) || defined(__x86_64__) -#include "vsyscall_x86.h" -#else -#error unexpected -#endif diff --git a/contrib/libs/linux-headers/asm/vsyscall_x86.h b/contrib/libs/linux-headers/asm/vsyscall_x86.h deleted file mode 100644 index 4a1bbdc26c6..00000000000 --- a/contrib/libs/linux-headers/asm/vsyscall_x86.h +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _ASM_X86_VSYSCALL_H -#define _ASM_X86_VSYSCALL_H - -enum vsyscall_num { - __NR_vgettimeofday, - __NR_vtime, - __NR_vgetcpu, -}; - -#define VSYSCALL_ADDR (-10UL << 20) - -#endif /* _ASM_X86_VSYSCALL_H */ |