From d0d75da5aa1eaead54086401fbbae792876b9df9 Mon Sep 17 00:00:00 2001 From: Zachery Wu Date: Mon, 9 Aug 2021 11:01:43 +0800 Subject: [PATCH] add arm64 uapi Signed-off-by: Zachery Wu Change-Id: I144e518ed12832b2e883f80917b32b554d707722 --- .../asm-arm/{uapi => }/asm/bitsperlong.h | 0 .../asm-arm/{uapi => }/asm/bpf_perf_event.h | 0 .../usr/include/asm-arm/asm/byteorder.h | 2 +- .../include/asm-arm/{uapi => }/asm/errno.h | 0 .../prebuilts/usr/include/asm-arm/asm/hwcap.h | 4 +- .../include/asm-arm/{uapi => }/asm/ioctl.h | 0 .../include/asm-arm/{uapi => }/asm/ipcbuf.h | 0 .../prebuilts/usr/include/asm-arm/asm/kvm.h | 2 - .../include/asm-arm/{uapi => }/asm/msgbuf.h | 0 .../include/asm-arm/{uapi => }/asm/param.h | 0 .../usr/include/asm-arm/{uapi => }/asm/poll.h | 0 .../usr/include/asm-arm/asm/ptrace.h | 15 +- .../include/asm-arm/{uapi => }/asm/resource.h | 0 .../include/asm-arm/{uapi => }/asm/sembuf.h | 0 .../prebuilts/usr/include/asm-arm/asm/setup.h | 4 +- .../include/asm-arm/{uapi => }/asm/shmbuf.h | 0 .../include/asm-arm/{uapi => }/asm/siginfo.h | 0 .../usr/include/asm-arm/asm/signal.h | 10 +- .../include/asm-arm/{uapi => }/asm/socket.h | 0 .../include/asm-arm/{uapi => }/asm/sockios.h | 0 .../prebuilts/usr/include/asm-arm/asm/stat.h | 4 +- .../prebuilts/usr/include/asm-arm/asm/swab.h | 11 +- .../include/asm-arm/{uapi => }/asm/termbits.h | 0 .../include/asm-arm/{uapi => }/asm/termios.h | 0 .../prebuilts/usr/include/asm-arm/asm/types.h | 4 +- .../asm-arm/{uapi => }/asm/unistd-common.h | 0 .../asm-arm/{uapi => }/asm/unistd-eabi.h | 0 .../asm-arm/{uapi => }/asm/unistd-oabi.h | 0 .../usr/include/asm-arm/asm/unistd.h | 6 +- .../usr/include/asm-arm64/asm/.install | 0 .../usr/include/{ => asm-arm64}/asm/auxvec.h | 2 + .../include/{ => asm-arm64}/asm/bitsperlong.h | 4 + .../asm/bpf_perf_event.h} | 19 +- .../include/{ => asm-arm64}/asm/byteorder.h | 6 +- .../usr/include/{ => asm-arm64}/asm/errno.h | 0 .../usr/include/{ => asm-arm64}/asm/fcntl.h | 4 +- .../usr/include/asm-arm64/asm/hwcap.h | 37 ++ .../usr/include/{ => asm-arm64}/asm/ioctl.h | 0 .../usr/include/{ => asm-arm64}/asm/ioctls.h | 4 - .../usr/include/{ => asm-arm64}/asm/ipcbuf.h | 0 .../usr/include/{ => asm-arm64}/asm/kvm.h | 151 ++++---- .../include/{ => asm-arm64}/asm/kvm_para.h | 0 .../usr/include/{ => asm-arm64}/asm/mman.h | 2 - .../usr/include/{ => asm-arm64}/asm/msgbuf.h | 0 .../usr/include/{ => asm-arm64}/asm/param.h | 4 + .../usr/include/asm-arm64/asm/perf_regs.h | 44 +++ .../usr/include/{ => asm-arm64}/asm/poll.h | 0 .../include/{ => asm-arm64}/asm/posix_types.h | 16 +- .../usr/include/asm-arm64/asm/ptrace.h | 114 ++++++ .../include/{ => asm-arm64}/asm/resource.h | 0 .../usr/include/{ => asm-arm64}/asm/sembuf.h | 0 .../usr/include/asm-arm64/asm/setup.h | 10 + .../usr/include/{ => asm-arm64}/asm/shmbuf.h | 0 .../usr/include/asm-arm64/asm/sigcontext.h | 83 ++++ .../usr/include/{ => asm-arm64}/asm/siginfo.h | 4 + .../usr/include/asm-arm64/asm/signal.h | 12 + .../usr/include/{ => asm-arm64}/asm/socket.h | 0 .../usr/include/{ => asm-arm64}/asm/sockios.h | 0 .../bpf_perf_event.h => asm-arm64/asm/stat.h} | 2 +- .../usr/include/{ => asm-arm64}/asm/statfs.h | 6 +- .../unistd-eabi.h => asm-arm64/asm/swab.h} | 4 +- .../include/{ => asm-arm64}/asm/termbits.h | 0 .../usr/include/{ => asm-arm64}/asm/termios.h | 0 .../usr/include/asm-arm64/asm/types.h | 6 + .../perf_regs.h => asm-arm64/asm/ucontext.h} | 32 +- .../usr/include/asm-arm64/asm/unistd.h | 7 + linux-4.19/prebuilts/usr/include/asm/hwcap.h | 36 -- linux-4.19/prebuilts/usr/include/asm/ptrace.h | 95 ----- linux-4.19/prebuilts/usr/include/asm/setup.h | 120 ------ .../prebuilts/usr/include/asm/sigcontext.h | 31 -- linux-4.19/prebuilts/usr/include/asm/signal.h | 79 ---- linux-4.19/prebuilts/usr/include/asm/stat.h | 74 ---- linux-4.19/prebuilts/usr/include/asm/swab.h | 28 -- .../prebuilts/usr/include/asm/unistd-common.h | 363 ------------------ .../prebuilts/usr/include/asm/unistd-oabi.h | 20 - linux-4.19/prebuilts/usr/include/asm/unistd.h | 25 -- 76 files changed, 451 insertions(+), 1055 deletions(-) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/bitsperlong.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/bpf_perf_event.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/errno.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/ioctl.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/ipcbuf.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/msgbuf.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/param.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/poll.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/resource.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/sembuf.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/shmbuf.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/siginfo.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/socket.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/sockios.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/termbits.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/termios.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/unistd-common.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/unistd-eabi.h (100%) rename linux-4.19/prebuilts/usr/include/asm-arm/{uapi => }/asm/unistd-oabi.h (100%) create mode 100644 linux-4.19/prebuilts/usr/include/asm-arm64/asm/.install rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/auxvec.h (85%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/bitsperlong.h (75%) rename linux-4.19/prebuilts/usr/include/{asm/types.h => asm-arm64/asm/bpf_perf_event.h} (42%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/byteorder.h (81%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/errno.h (100%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/fcntl.h (89%) create mode 100644 linux-4.19/prebuilts/usr/include/asm-arm64/asm/hwcap.h rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/ioctl.h (100%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/ioctls.h (76%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/ipcbuf.h (100%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/kvm.h (59%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/kvm_para.h (100%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/mman.h (70%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/msgbuf.h (100%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/param.h (77%) create mode 100644 linux-4.19/prebuilts/usr/include/asm-arm64/asm/perf_regs.h rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/poll.h (100%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/posix_types.h (39%) create mode 100644 linux-4.19/prebuilts/usr/include/asm-arm64/asm/ptrace.h rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/resource.h (100%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/sembuf.h (100%) create mode 100644 linux-4.19/prebuilts/usr/include/asm-arm64/asm/setup.h rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/shmbuf.h (100%) create mode 100644 linux-4.19/prebuilts/usr/include/asm-arm64/asm/sigcontext.h rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/siginfo.h (72%) create mode 100644 linux-4.19/prebuilts/usr/include/asm-arm64/asm/signal.h rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/socket.h (100%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/sockios.h (100%) rename linux-4.19/prebuilts/usr/include/{asm/bpf_perf_event.h => asm-arm64/asm/stat.h} (85%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/statfs.h (71%) rename linux-4.19/prebuilts/usr/include/{asm/unistd-eabi.h => asm-arm64/asm/swab.h} (77%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/termbits.h (100%) rename linux-4.19/prebuilts/usr/include/{ => asm-arm64}/asm/termios.h (100%) create mode 100644 linux-4.19/prebuilts/usr/include/asm-arm64/asm/types.h rename linux-4.19/prebuilts/usr/include/{asm/perf_regs.h => asm-arm64/asm/ucontext.h} (39%) create mode 100644 linux-4.19/prebuilts/usr/include/asm-arm64/asm/unistd.h delete mode 100644 linux-4.19/prebuilts/usr/include/asm/hwcap.h delete mode 100644 linux-4.19/prebuilts/usr/include/asm/ptrace.h delete mode 100644 linux-4.19/prebuilts/usr/include/asm/setup.h delete mode 100644 linux-4.19/prebuilts/usr/include/asm/sigcontext.h delete mode 100644 linux-4.19/prebuilts/usr/include/asm/signal.h delete mode 100644 linux-4.19/prebuilts/usr/include/asm/stat.h delete mode 100644 linux-4.19/prebuilts/usr/include/asm/swab.h delete mode 100644 linux-4.19/prebuilts/usr/include/asm/unistd-common.h delete mode 100644 linux-4.19/prebuilts/usr/include/asm/unistd-oabi.h delete mode 100644 linux-4.19/prebuilts/usr/include/asm/unistd.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/bitsperlong.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/bitsperlong.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/bitsperlong.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/bitsperlong.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/bpf_perf_event.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/bpf_perf_event.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/bpf_perf_event.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/bpf_perf_event.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/byteorder.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/byteorder.h index e419075..c958030 100644 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/byteorder.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm/asm/byteorder.h @@ -5,7 +5,7 @@ */ #ifndef __ASM_ARM_BYTEORDER_H #define __ASM_ARM_BYTEORDER_H -#if 0 +#ifdef __ARMEB__ #include #else #include diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/errno.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/errno.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/errno.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/errno.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/hwcap.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/hwcap.h index c433f09..5fc1027 100644 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/hwcap.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm/asm/hwcap.h @@ -3,8 +3,8 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _UAPI__ASMARM_HWCAP_H -#define _UAPI__ASMARM_HWCAP_H +#ifndef __ASMARM_HWCAP_H +#define __ASMARM_HWCAP_H #define HWCAP_SWP (1 << 0) #define HWCAP_HALF (1 << 1) #define HWCAP_THUMB (1 << 2) diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/ioctl.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/ioctl.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/ioctl.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/ioctl.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/ipcbuf.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/ipcbuf.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/ipcbuf.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/ipcbuf.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/kvm.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/kvm.h index 91b90c1..7ce7f3a 100644 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/kvm.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm/asm/kvm.h @@ -188,9 +188,7 @@ struct kvm_vcpu_events { #define KVM_ARM_IRQ_TYPE_PPI 2 #define KVM_ARM_IRQ_CPU_IRQ 0 #define KVM_ARM_IRQ_CPU_FIQ 1 -#ifndef __KERNEL__ #define KVM_ARM_IRQ_GIC_MAX 127 -#endif #define KVM_NR_IRQCHIPS 1 #define KVM_PSCI_FN_BASE 0x95c1ba5e #define KVM_PSCI_FN(n) (KVM_PSCI_FN_BASE + (n)) diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/msgbuf.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/msgbuf.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/msgbuf.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/msgbuf.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/param.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/param.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/param.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/param.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/poll.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/poll.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/poll.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/poll.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/ptrace.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/ptrace.h index 13fdbe4..c45ee94 100644 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/ptrace.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm/asm/ptrace.h @@ -3,8 +3,8 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _UAPI__ASM_ARM_PTRACE_H -#define _UAPI__ASM_ARM_PTRACE_H +#ifndef __ASM_ARM_PTRACE_H +#define __ASM_ARM_PTRACE_H #include #define PTRACE_GETREGS 12 #define PTRACE_SETREGS 13 @@ -28,13 +28,8 @@ #define FIQ26_MODE 0x00000001 #define IRQ26_MODE 0x00000002 #define SVC26_MODE 0x00000003 -#if defined(__KERNEL__) && defined(CONFIG_CPU_V7M) -#define USR_MODE 0x00000000 -#define SVC_MODE 0x00000000 -#else #define USR_MODE 0x00000010 #define SVC_MODE 0x00000013 -#endif #define FIQ_MODE 0x00000011 #define IRQ_MODE 0x00000012 #define MON_MODE 0x00000016 @@ -46,11 +41,7 @@ #define MODE_MASK 0x0000001f #define V4_PSR_T_BIT 0x00000020 #define V7M_PSR_T_BIT 0x01000000 -#if defined(__KERNEL__) && defined(CONFIG_CPU_V7M) -#define PSR_T_BIT V7M_PSR_T_BIT -#else #define PSR_T_BIT V4_PSR_T_BIT -#endif #define PSR_F_BIT 0x00000040 #define PSR_I_BIT 0x00000080 #define PSR_A_BIT 0x00000100 @@ -78,11 +69,9 @@ #define PT_DATA_ADDR 0x10004 #define PT_TEXT_END_ADDR 0x10008 #ifndef __ASSEMBLY__ -#ifndef __KERNEL__ struct pt_regs { long uregs[18]; }; -#endif #define ARM_cpsr uregs[16] #define ARM_pc uregs[15] #define ARM_lr uregs[14] diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/resource.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/resource.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/resource.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/resource.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/sembuf.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/sembuf.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/sembuf.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/sembuf.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/setup.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/setup.h index 3af5413..b0a9172 100644 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/setup.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm/asm/setup.h @@ -3,8 +3,8 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _UAPI__ASMARM_SETUP_H -#define _UAPI__ASMARM_SETUP_H +#ifndef __ASMARM_SETUP_H +#define __ASMARM_SETUP_H #include #define COMMAND_LINE_SIZE 1024 #define ATAG_NONE 0x00000000 diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/shmbuf.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/shmbuf.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/shmbuf.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/shmbuf.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/siginfo.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/siginfo.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/siginfo.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/siginfo.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/signal.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/signal.h index 06721bd..2e20abb 100644 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/signal.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm/asm/signal.h @@ -3,14 +3,12 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _UAPI_ASMARM_SIGNAL_H -#define _UAPI_ASMARM_SIGNAL_H +#ifndef _ASMARM_SIGNAL_H +#define _ASMARM_SIGNAL_H #include struct siginfo; -#ifndef __KERNEL__ #define _KERNEL_NSIG 32 typedef unsigned long sigset_t; -#endif #define SIGHUP 1 #define SIGINT 2 #define SIGQUIT 3 @@ -62,7 +60,6 @@ typedef unsigned long sigset_t; #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 #include -#ifndef __KERNEL__ struct sigaction { union { __sighandler_t _sa_handler; @@ -74,9 +71,8 @@ struct sigaction { }; #define sa_handler _u._sa_handler #define sa_sigaction _u._sa_sigaction -#endif typedef struct sigaltstack { - void __user *ss_sp; + void *ss_sp; int ss_flags; size_t ss_size; } stack_t; diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/socket.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/socket.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/socket.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/socket.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/sockios.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/sockios.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/sockios.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/sockios.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/stat.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/stat.h index 454abf0..5a5bf86 100644 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/stat.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm/asm/stat.h @@ -20,7 +20,7 @@ struct __old_kernel_stat { }; #define STAT_HAVE_NSEC struct stat { -#if 0 +#if defined(__ARMEB__) unsigned short st_dev; unsigned short __pad1; #else @@ -31,7 +31,7 @@ struct stat { unsigned short st_nlink; unsigned short st_uid; unsigned short st_gid; -#if 0 +#if defined(__ARMEB__) unsigned short st_rdev; unsigned short __pad2; #else diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/swab.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/swab.h index 0ba6389..8b8bf24 100644 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/swab.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm/asm/swab.h @@ -3,21 +3,19 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _UAPI__ASM_ARM_SWAB_H -#define _UAPI__ASM_ARM_SWAB_H -#include +#ifndef __ASM_ARM_SWAB_H +#define __ASM_ARM_SWAB_H #include #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) # define __SWAB_64_THRU_32__ #endif -#if !defined(__KERNEL__) || __LINUX_ARM_ARCH__ < 6 -static inline __attribute_const__ __u32 __arch_swab32(__u32 x) +static __inline__ __u32 __arch_swab32(__u32 x) { __u32 t; #ifndef __thumb__ if (!__builtin_constant_p(x)) { - asm ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); + __asm__ ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); } else #endif t = x ^ ((x << 16) | (x >> 16)); @@ -28,4 +26,3 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x) } #define __arch_swab32 __arch_swab32 #endif -#endif diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/termbits.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/termbits.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/termbits.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/termbits.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/termios.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/termios.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/termios.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/termios.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/types.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/types.h index 11b0fee..04764cf 100644 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/types.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm/asm/types.h @@ -3,8 +3,8 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _UAPI_ASM_TYPES_H -#define _UAPI_ASM_TYPES_H +#ifndef _ASM_TYPES_H +#define _ASM_TYPES_H #include #ifdef __INT32_TYPE__ #undef __INT32_TYPE__ diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/unistd-common.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/unistd-common.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/unistd-common.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/unistd-common.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/unistd-eabi.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/unistd-eabi.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/unistd-eabi.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/unistd-eabi.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/unistd-oabi.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/unistd-oabi.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/unistd-oabi.h rename to linux-4.19/prebuilts/usr/include/asm-arm/asm/unistd-oabi.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/unistd.h b/linux-4.19/prebuilts/usr/include/asm-arm/asm/unistd.h index 777a04d..8927d1c 100644 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/unistd.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm/asm/unistd.h @@ -3,10 +3,10 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _UAPI__ASM_ARM_UNISTD_H -#define _UAPI__ASM_ARM_UNISTD_H +#ifndef __ASM_ARM_UNISTD_H +#define __ASM_ARM_UNISTD_H #define __NR_OABI_SYSCALL_BASE 0x900000 -#if defined(__thumb__) || 1 +#if defined(__thumb__) || defined(__ARM_EABI__) #define __NR_SYSCALL_BASE 0 #include #else diff --git a/linux-4.19/prebuilts/usr/include/asm-arm64/asm/.install b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/.install new file mode 100644 index 0000000..e69de29 diff --git a/linux-4.19/prebuilts/usr/include/asm/auxvec.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/auxvec.h similarity index 85% rename from linux-4.19/prebuilts/usr/include/asm/auxvec.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/auxvec.h index 7416f18..5d1f0f6 100644 --- a/linux-4.19/prebuilts/usr/include/asm/auxvec.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/auxvec.h @@ -6,4 +6,6 @@ #ifndef __ASM_AUXVEC_H #define __ASM_AUXVEC_H #define AT_SYSINFO_EHDR 33 +#define AT_MINSIGSTKSZ 51 +#define AT_VECTOR_SIZE_ARCH 2 #endif diff --git a/linux-4.19/prebuilts/usr/include/asm/bitsperlong.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/bitsperlong.h similarity index 75% rename from linux-4.19/prebuilts/usr/include/asm/bitsperlong.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/bitsperlong.h index 3c87a8d..7975820 100644 --- a/linux-4.19/prebuilts/usr/include/asm/bitsperlong.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/bitsperlong.h @@ -3,4 +3,8 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ +#ifndef __ASM_BITSPERLONG_H +#define __ASM_BITSPERLONG_H +#define __BITS_PER_LONG 64 #include +#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/types.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/bpf_perf_event.h similarity index 42% rename from linux-4.19/prebuilts/usr/include/asm/types.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/bpf_perf_event.h index 04764cf..89078f7 100644 --- a/linux-4.19/prebuilts/usr/include/asm/types.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/bpf_perf_event.h @@ -3,19 +3,8 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _ASM_TYPES_H -#define _ASM_TYPES_H -#include -#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 +#ifndef __ASM_BPF_PERF_EVENT_H__ +#define __ASM_BPF_PERF_EVENT_H__ +#include +typedef struct user_pt_regs bpf_user_pt_regs_t; #endif diff --git a/linux-4.19/prebuilts/usr/include/asm/byteorder.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/byteorder.h similarity index 81% rename from linux-4.19/prebuilts/usr/include/asm/byteorder.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/byteorder.h index c958030..7e11d24 100644 --- a/linux-4.19/prebuilts/usr/include/asm/byteorder.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/byteorder.h @@ -3,9 +3,9 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef __ASM_ARM_BYTEORDER_H -#define __ASM_ARM_BYTEORDER_H -#ifdef __ARMEB__ +#ifndef __ASM_BYTEORDER_H +#define __ASM_BYTEORDER_H +#ifdef __AARCH64EB__ #include #else #include diff --git a/linux-4.19/prebuilts/usr/include/asm/errno.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/errno.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/errno.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/errno.h diff --git a/linux-4.19/prebuilts/usr/include/asm/fcntl.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/fcntl.h similarity index 89% rename from linux-4.19/prebuilts/usr/include/asm/fcntl.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/fcntl.h index 6004fa7..173f434 100644 --- a/linux-4.19/prebuilts/usr/include/asm/fcntl.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/fcntl.h @@ -3,8 +3,8 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _ARM_FCNTL_H -#define _ARM_FCNTL_H +#ifndef __ASM_FCNTL_H +#define __ASM_FCNTL_H #define O_DIRECTORY 040000 #define O_NOFOLLOW 0100000 #define O_DIRECT 0200000 diff --git a/linux-4.19/prebuilts/usr/include/asm-arm64/asm/hwcap.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/hwcap.h new file mode 100644 index 0000000..dd212fc --- /dev/null +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/hwcap.h @@ -0,0 +1,37 @@ +/* + * This header was generated from the Linux kernel headers by update_headers.py, + * to provide necessary information from kernel to userspace, such as constants, + * structures, and macros, and thus, contains no copyrightable information. + */ +#ifndef __ASM_HWCAP_H +#define __ASM_HWCAP_H +#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) +#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/ioctl.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/ioctl.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/ioctl.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/ioctl.h diff --git a/linux-4.19/prebuilts/usr/include/asm/ioctls.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/ioctls.h similarity index 76% rename from linux-4.19/prebuilts/usr/include/asm/ioctls.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/ioctls.h index 2d824e1..58a92e2 100644 --- a/linux-4.19/prebuilts/usr/include/asm/ioctls.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/ioctls.h @@ -3,8 +3,4 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef __ASM_ARM_IOCTLS_H -#define __ASM_ARM_IOCTLS_H -#define FIOQSIZE 0x545E #include -#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/ipcbuf.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/ipcbuf.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/ipcbuf.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/ipcbuf.h diff --git a/linux-4.19/prebuilts/usr/include/asm/kvm.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/kvm.h similarity index 59% rename from linux-4.19/prebuilts/usr/include/asm/kvm.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/kvm.h index 7ce7f3a..486e60b 100644 --- a/linux-4.19/prebuilts/usr/include/asm/kvm.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/kvm.h @@ -5,8 +5,16 @@ */ #ifndef __ARM_KVM_H__ #define __ARM_KVM_H__ -#include +#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 +#include #include #define __KVM_HAVE_GUEST_DEBUG #define __KVM_HAVE_IRQ_LINE @@ -15,37 +23,20 @@ #define KVM_COALESCED_MMIO_PAGE_OFFSET 1 #define KVM_REG_SIZE(id) \ (1U << (((id) & KVM_REG_SIZE_MASK) >> KVM_REG_SIZE_SHIFT)) -#define KVM_ARM_SVC_sp svc_regs[0] -#define KVM_ARM_SVC_lr svc_regs[1] -#define KVM_ARM_SVC_spsr svc_regs[2] -#define KVM_ARM_ABT_sp abt_regs[0] -#define KVM_ARM_ABT_lr abt_regs[1] -#define KVM_ARM_ABT_spsr abt_regs[2] -#define KVM_ARM_UND_sp und_regs[0] -#define KVM_ARM_UND_lr und_regs[1] -#define KVM_ARM_UND_spsr und_regs[2] -#define KVM_ARM_IRQ_sp irq_regs[0] -#define KVM_ARM_IRQ_lr irq_regs[1] -#define KVM_ARM_IRQ_spsr irq_regs[2] -#define KVM_ARM_FIQ_r8 fiq_regs[0] -#define KVM_ARM_FIQ_r9 fiq_regs[1] -#define KVM_ARM_FIQ_r10 fiq_regs[2] -#define KVM_ARM_FIQ_fp fiq_regs[3] -#define KVM_ARM_FIQ_ip fiq_regs[4] -#define KVM_ARM_FIQ_sp fiq_regs[5] -#define KVM_ARM_FIQ_lr fiq_regs[6] -#define KVM_ARM_FIQ_spsr fiq_regs[7] struct kvm_regs { - struct pt_regs usr_regs; - unsigned long svc_regs[3]; - unsigned long abt_regs[3]; - unsigned long und_regs[3]; - unsigned long irq_regs[3]; - unsigned long fiq_regs[8]; + struct user_pt_regs regs; + __u64 sp_el1; + __u64 elr_el1; + __u64 spsr[KVM_NR_SPSR]; + struct user_fpsimd_state fp_regs; }; -#define KVM_ARM_TARGET_CORTEX_A15 0 -#define KVM_ARM_TARGET_CORTEX_A7 1 -#define KVM_ARM_NUM_TARGETS 2 +#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 +#define KVM_ARM_TARGET_GENERIC_V8 5 +#define KVM_ARM_NUM_TARGETS 6 #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 @@ -63,7 +54,9 @@ struct kvm_regs { #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 -#define KVM_ARM_VCPU_PSCI_0_2 1 +#define KVM_ARM_VCPU_EL1_32BIT 1 +#define KVM_ARM_VCPU_PSCI_0_2 2 +#define KVM_ARM_VCPU_PMU_V3 3 struct kvm_vcpu_init { __u32 target; __u32 features[7]; @@ -72,10 +65,19 @@ struct kvm_sregs { }; struct kvm_fpu { }; +#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; }; +#define KVM_GUESTDBG_USE_SW_BP (1 << 16) +#define KVM_GUESTDBG_USE_HW (1 << 17) struct kvm_sync_regs { __u64 device_irq_level; @@ -94,54 +96,44 @@ struct kvm_vcpu_events { }; #define KVM_REG_ARM_COPROC_MASK 0x000000000FFF0000 #define KVM_REG_ARM_COPROC_SHIFT 16 -#define KVM_REG_ARM_32_OPC2_MASK 0x0000000000000007 -#define KVM_REG_ARM_32_OPC2_SHIFT 0 -#define KVM_REG_ARM_OPC1_MASK 0x0000000000000078 -#define KVM_REG_ARM_OPC1_SHIFT 3 -#define KVM_REG_ARM_CRM_MASK 0x0000000000000780 -#define KVM_REG_ARM_CRM_SHIFT 7 -#define KVM_REG_ARM_32_CRN_MASK 0x0000000000007800 -#define KVM_REG_ARM_32_CRN_SHIFT 11 -#define KVM_REG_ARM_SECURE_MASK 0x0000000010000000 -#define KVM_REG_ARM_SECURE_SHIFT 28 -#define ARM_CP15_REG_SHIFT_MASK(x,n) \ - (((x) << KVM_REG_ARM_ ## n ## _SHIFT) & KVM_REG_ARM_ ## n ## _MASK) -#define __ARM_CP15_REG(op1,crn,crm,op2) \ - (KVM_REG_ARM | (15 << KVM_REG_ARM_COPROC_SHIFT) | \ - ARM_CP15_REG_SHIFT_MASK(op1, OPC1) | \ - ARM_CP15_REG_SHIFT_MASK(crn, 32_CRN) | \ - ARM_CP15_REG_SHIFT_MASK(crm, CRM) | \ - ARM_CP15_REG_SHIFT_MASK(op2, 32_OPC2)) -#define ARM_CP15_REG32(...) (__ARM_CP15_REG(__VA_ARGS__) | KVM_REG_SIZE_U32) -#define __ARM_CP15_REG64(op1,crm) \ - (__ARM_CP15_REG(op1, 0, crm, 0) | KVM_REG_SIZE_U64) -#define ARM_CP15_REG64(...) __ARM_CP15_REG64(__VA_ARGS__) -#define KVM_REG_ARM_PTIMER_CTL ARM_CP15_REG32(0, 14, 2, 1) -#define KVM_REG_ARM_PTIMER_CNT ARM_CP15_REG64(0, 14) -#define KVM_REG_ARM_PTIMER_CVAL ARM_CP15_REG64(2, 14) -#define KVM_REG_ARM_TIMER_CTL ARM_CP15_REG32(0, 14, 3, 1) -#define KVM_REG_ARM_TIMER_CNT ARM_CP15_REG64(1, 14) -#define KVM_REG_ARM_TIMER_CVAL ARM_CP15_REG64(3, 14) #define KVM_REG_ARM_CORE (0x0010 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_CORE_REG(name) (offsetof(struct kvm_regs, name) / 4) +#define KVM_REG_ARM_CORE_REG(name) (offsetof(struct kvm_regs, name) / sizeof(__u32)) #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 -#define KVM_REG_ARM_VFP (0x0012 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_VFP_MASK 0x000000000000FFFF -#define KVM_REG_ARM_VFP_BASE_REG 0x0 -#define KVM_REG_ARM_VFP_FPSID 0x1000 -#define KVM_REG_ARM_VFP_FPSCR 0x1001 -#define KVM_REG_ARM_VFP_MVFR1 0x1006 -#define KVM_REG_ARM_VFP_MVFR0 0x1007 -#define KVM_REG_ARM_VFP_FPEXC 0x1008 -#define KVM_REG_ARM_VFP_FPINST 0x1009 -#define KVM_REG_ARM_VFP_FPINST2 0x100A +#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) +#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) +#define KVM_REG_ARM_TIMER_CTL ARM64_SYS_REG(3, 3, 14, 3, 1) +#define KVM_REG_ARM_TIMER_CNT ARM64_SYS_REG(3, 3, 14, 3, 2) +#define KVM_REG_ARM_TIMER_CVAL ARM64_SYS_REG(3, 3, 14, 0, 2) #define KVM_REG_ARM_FW (0x0014 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_FW_REG(r) (KVM_REG_ARM | KVM_REG_SIZE_U64 | \ +#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_DEV_ARM_VGIC_GRP_ADDR 0 @@ -156,27 +148,27 @@ struct kvm_vcpu_events { #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_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_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 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 #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_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 #define KVM_ARM_IRQ_TYPE_SHIFT 24 #define KVM_ARM_IRQ_TYPE_MASK 0xff #define KVM_ARM_IRQ_VCPU_SHIFT 16 @@ -201,3 +193,4 @@ struct kvm_vcpu_events { #define KVM_PSCI_RET_INVAL PSCI_RET_INVALID_PARAMS #define KVM_PSCI_RET_DENIED PSCI_RET_DENIED #endif +#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/kvm_para.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/kvm_para.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/kvm_para.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/kvm_para.h diff --git a/linux-4.19/prebuilts/usr/include/asm/mman.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/mman.h similarity index 70% rename from linux-4.19/prebuilts/usr/include/asm/mman.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/mman.h index 65a6a5c..4324326 100644 --- a/linux-4.19/prebuilts/usr/include/asm/mman.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/mman.h @@ -4,5 +4,3 @@ * structures, and macros, and thus, contains no copyrightable information. */ #include -#define arch_mmap_check(addr, len, flags) \ - (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0) diff --git a/linux-4.19/prebuilts/usr/include/asm/msgbuf.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/msgbuf.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/msgbuf.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/msgbuf.h diff --git a/linux-4.19/prebuilts/usr/include/asm/param.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/param.h similarity index 77% rename from linux-4.19/prebuilts/usr/include/asm/param.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/param.h index 67e7728..3346751 100644 --- a/linux-4.19/prebuilts/usr/include/asm/param.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/param.h @@ -3,4 +3,8 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ +#ifndef __ASM_PARAM_H +#define __ASM_PARAM_H +#define EXEC_PAGESIZE 65536 #include +#endif diff --git a/linux-4.19/prebuilts/usr/include/asm-arm64/asm/perf_regs.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/perf_regs.h new file mode 100644 index 0000000..4d62572 --- /dev/null +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/perf_regs.h @@ -0,0 +1,44 @@ +/* + * This header was generated from the Linux kernel headers by update_headers.py, + * to provide necessary information from kernel to userspace, such as constants, + * structures, and macros, and thus, contains no copyrightable information. + */ +#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 diff --git a/linux-4.19/prebuilts/usr/include/asm/poll.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/poll.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/poll.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/poll.h diff --git a/linux-4.19/prebuilts/usr/include/asm/posix_types.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/posix_types.h similarity index 39% rename from linux-4.19/prebuilts/usr/include/asm/posix_types.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/posix_types.h index 8ba2dc2..a5d7eda 100644 --- a/linux-4.19/prebuilts/usr/include/asm/posix_types.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/posix_types.h @@ -3,16 +3,10 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef __ARCH_ARM_POSIX_TYPES_H -#define __ARCH_ARM_POSIX_TYPES_H -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 +#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 #endif diff --git a/linux-4.19/prebuilts/usr/include/asm-arm64/asm/ptrace.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/ptrace.h new file mode 100644 index 0000000..3d3a53a --- /dev/null +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/ptrace.h @@ -0,0 +1,114 @@ +/* + * This header was generated from the Linux kernel headers by update_headers.py, + * to provide necessary information from kernel to userspace, such as constants, + * structures, and macros, and thus, contains no copyrightable information. + */ +#ifndef __ASM_PTRACE_H +#define __ASM_PTRACE_H +#include +#include +#include +#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 +#define PSR_MODE32_BIT 0x00000010 +#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 +#define PSR_f 0xff000000 +#define PSR_s 0x00ff0000 +#define PSR_x 0x0000ff00 +#define PSR_c 0x000000ff +#ifndef __ASSEMBLY__ +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]; +}; +struct user_sve_header { + __u32 size; + __u32 max_size; + __u16 vl; + __u16 max_vl; + __u16 flags; + __u16 __reserved; +}; +#define SVE_PT_REGS_MASK (1 << 0) +#define SVE_PT_REGS_FPSIMD 0 +#define SVE_PT_REGS_SVE SVE_PT_REGS_MASK +#define SVE_PT_VL_INHERIT ((1 << 17) >> 16) +#define SVE_PT_VL_ONEXEC ((1 << 18) >> 16) +#define SVE_PT_REGS_OFFSET \ + ((sizeof(struct user_sve_header) + (SVE_VQ_BYTES - 1)) \ + / SVE_VQ_BYTES * SVE_VQ_BYTES) +#define SVE_PT_FPSIMD_OFFSET SVE_PT_REGS_OFFSET +#define SVE_PT_FPSIMD_SIZE(vq, flags) (sizeof(struct user_fpsimd_state)) +#define SVE_PT_SVE_ZREG_SIZE(vq) SVE_SIG_ZREG_SIZE(vq) +#define SVE_PT_SVE_PREG_SIZE(vq) SVE_SIG_PREG_SIZE(vq) +#define SVE_PT_SVE_FFR_SIZE(vq) SVE_SIG_FFR_SIZE(vq) +#define SVE_PT_SVE_FPSR_SIZE sizeof(__u32) +#define SVE_PT_SVE_FPCR_SIZE sizeof(__u32) +#define __SVE_SIG_TO_PT(offset) \ + ((offset) - SVE_SIG_REGS_OFFSET + SVE_PT_REGS_OFFSET) +#define SVE_PT_SVE_OFFSET SVE_PT_REGS_OFFSET +#define SVE_PT_SVE_ZREGS_OFFSET \ + __SVE_SIG_TO_PT(SVE_SIG_ZREGS_OFFSET) +#define SVE_PT_SVE_ZREG_OFFSET(vq, n) \ + __SVE_SIG_TO_PT(SVE_SIG_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_SIG_TO_PT(SVE_SIG_PREGS_OFFSET(vq)) +#define SVE_PT_SVE_PREG_OFFSET(vq, n) \ + __SVE_SIG_TO_PT(SVE_SIG_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_SIG_TO_PT(SVE_SIG_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) +#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)) +#endif +#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/resource.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/resource.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/resource.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/resource.h diff --git a/linux-4.19/prebuilts/usr/include/asm/sembuf.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/sembuf.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/sembuf.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/sembuf.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm64/asm/setup.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/setup.h new file mode 100644 index 0000000..8a38565 --- /dev/null +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/setup.h @@ -0,0 +1,10 @@ +/* + * This header was generated from the Linux kernel headers by update_headers.py, + * to provide necessary information from kernel to userspace, such as constants, + * structures, and macros, and thus, contains no copyrightable information. + */ +#ifndef __ASM_SETUP_H +#define __ASM_SETUP_H +#include +#define COMMAND_LINE_SIZE 2048 +#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/shmbuf.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/shmbuf.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/shmbuf.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/shmbuf.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm64/asm/sigcontext.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/sigcontext.h new file mode 100644 index 0000000..e01162e --- /dev/null +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/sigcontext.h @@ -0,0 +1,83 @@ +/* + * This header was generated from the Linux kernel headers by update_headers.py, + * to provide necessary information from kernel to userspace, such as constants, + * structures, and macros, and thus, contains no copyrightable information. + */ +#ifndef __ASM_SIGCONTEXT_H +#define __ASM_SIGCONTEXT_H +#ifndef __ASSEMBLY__ +#include +struct sigcontext { + __u64 fault_address; + + __u64 regs[31]; + __u64 sp; + __u64 pc; + __u64 pstate; + + __u8 __reserved[4096] __attribute__((__aligned__(16))); +}; +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]; +}; +#define ESR_MAGIC 0x45535201 +struct esr_context { + struct _aarch64_ctx head; + __u64 esr; +}; +#define EXTRA_MAGIC 0x45585401 +struct extra_context { + struct _aarch64_ctx head; + __u64 datap; + __u32 size; + __u32 __reserved[3]; +}; +#define SVE_MAGIC 0x53564501 +struct sve_context { + struct _aarch64_ctx head; + __u16 vl; + __u16 __reserved[3]; +}; +#endif +#define SVE_VQ_BYTES 16 +#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_SIG_ZREG_SIZE(vq) ((__u32)(vq) * SVE_VQ_BYTES) +#define SVE_SIG_PREG_SIZE(vq) ((__u32)(vq) * (SVE_VQ_BYTES / 8)) +#define SVE_SIG_FFR_SIZE(vq) SVE_SIG_PREG_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 +#define SVE_SIG_ZREG_OFFSET(vq, n) \ + (SVE_SIG_ZREGS_OFFSET + SVE_SIG_ZREG_SIZE(vq) * (n)) +#define SVE_SIG_ZREGS_SIZE(vq) \ + (SVE_SIG_ZREG_OFFSET(vq, SVE_NUM_ZREGS) - SVE_SIG_ZREGS_OFFSET) +#define SVE_SIG_PREGS_OFFSET(vq) \ + (SVE_SIG_ZREGS_OFFSET + SVE_SIG_ZREGS_SIZE(vq)) +#define SVE_SIG_PREG_OFFSET(vq, n) \ + (SVE_SIG_PREGS_OFFSET(vq) + SVE_SIG_PREG_SIZE(vq) * (n)) +#define SVE_SIG_PREGS_SIZE(vq) \ + (SVE_SIG_PREG_OFFSET(vq, SVE_NUM_PREGS) - SVE_SIG_PREGS_OFFSET(vq)) +#define SVE_SIG_FFR_OFFSET(vq) \ + (SVE_SIG_PREGS_OFFSET(vq) + SVE_SIG_PREGS_SIZE(vq)) +#define SVE_SIG_REGS_SIZE(vq) \ + (SVE_SIG_FFR_OFFSET(vq) + SVE_SIG_FFR_SIZE(vq) - SVE_SIG_REGS_OFFSET) +#define SVE_SIG_CONTEXT_SIZE(vq) (SVE_SIG_REGS_OFFSET + SVE_SIG_REGS_SIZE(vq)) +#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/siginfo.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/siginfo.h similarity index 72% rename from linux-4.19/prebuilts/usr/include/asm/siginfo.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/siginfo.h index 05b664d..a1f3c60 100644 --- a/linux-4.19/prebuilts/usr/include/asm/siginfo.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/siginfo.h @@ -3,4 +3,8 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ +#ifndef __ASM_SIGINFO_H +#define __ASM_SIGINFO_H +#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) #include +#endif diff --git a/linux-4.19/prebuilts/usr/include/asm-arm64/asm/signal.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/signal.h new file mode 100644 index 0000000..92cecc0 --- /dev/null +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/signal.h @@ -0,0 +1,12 @@ +/* + * This header was generated from the Linux kernel headers by update_headers.py, + * to provide necessary information from kernel to userspace, such as constants, + * structures, and macros, and thus, contains no copyrightable information. + */ +#ifndef __ASM_SIGNAL_H +#define __ASM_SIGNAL_H +#define SA_RESTORER 0x04000000 +#define MINSIGSTKSZ 5120 +#define SIGSTKSZ 16384 +#include +#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/socket.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/socket.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/socket.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/socket.h diff --git a/linux-4.19/prebuilts/usr/include/asm/sockios.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/sockios.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/sockios.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/sockios.h diff --git a/linux-4.19/prebuilts/usr/include/asm/bpf_perf_event.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/stat.h similarity index 85% rename from linux-4.19/prebuilts/usr/include/asm/bpf_perf_event.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/stat.h index 5cef26b..ca7a369 100644 --- a/linux-4.19/prebuilts/usr/include/asm/bpf_perf_event.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/stat.h @@ -3,4 +3,4 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#include +#include diff --git a/linux-4.19/prebuilts/usr/include/asm/statfs.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/statfs.h similarity index 71% rename from linux-4.19/prebuilts/usr/include/asm/statfs.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/statfs.h index 3131a41..8575142 100644 --- a/linux-4.19/prebuilts/usr/include/asm/statfs.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/statfs.h @@ -3,8 +3,8 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _ASMARM_STATFS_H -#define _ASMARM_STATFS_H -#define ARCH_PACK_STATFS64 __attribute__((packed,aligned(4))) +#ifndef __ASM_STATFS_H +#define __ASM_STATFS_H +#define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed,aligned(4))) #include #endif diff --git a/linux-4.19/prebuilts/usr/include/asm/unistd-eabi.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/swab.h similarity index 77% rename from linux-4.19/prebuilts/usr/include/asm/unistd-eabi.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/swab.h index 151eabf..5a26646 100644 --- a/linux-4.19/prebuilts/usr/include/asm/unistd-eabi.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/swab.h @@ -3,6 +3,4 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#ifndef _ASM_ARM_UNISTD_EABI_H -#define _ASM_ARM_UNISTD_EABI_H 1 -#endif +#include diff --git a/linux-4.19/prebuilts/usr/include/asm/termbits.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/termbits.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/termbits.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/termbits.h diff --git a/linux-4.19/prebuilts/usr/include/asm/termios.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/termios.h similarity index 100% rename from linux-4.19/prebuilts/usr/include/asm/termios.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/termios.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm64/asm/types.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/types.h new file mode 100644 index 0000000..f65195e --- /dev/null +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/types.h @@ -0,0 +1,6 @@ +/* + * This header was generated from the Linux kernel headers by update_headers.py, + * to provide necessary information from kernel to userspace, such as constants, + * structures, and macros, and thus, contains no copyrightable information. + */ +#include diff --git a/linux-4.19/prebuilts/usr/include/asm/perf_regs.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/ucontext.h similarity index 39% rename from linux-4.19/prebuilts/usr/include/asm/perf_regs.h rename to linux-4.19/prebuilts/usr/include/asm-arm64/asm/ucontext.h index 1f7361c..273ff97 100644 --- a/linux-4.19/prebuilts/usr/include/asm/perf_regs.h +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/ucontext.h @@ -3,25 +3,17 @@ * to provide necessary information from kernel to userspace, such as constants, * structures, and macros, and thus, contains no copyrightable information. */ -#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, +#ifndef __ASM_UCONTEXT_H +#define __ASM_UCONTEXT_H +#include +struct ucontext { + unsigned long uc_flags; + struct ucontext *uc_link; + stack_t uc_stack; + sigset_t uc_sigmask; + + __u8 __linux_unused[1024 / 8 - sizeof(sigset_t)]; + + struct sigcontext uc_mcontext; }; #endif diff --git a/linux-4.19/prebuilts/usr/include/asm-arm64/asm/unistd.h b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/unistd.h new file mode 100644 index 0000000..61a6d66 --- /dev/null +++ b/linux-4.19/prebuilts/usr/include/asm-arm64/asm/unistd.h @@ -0,0 +1,7 @@ +/* + * This header was generated from the Linux kernel headers by update_headers.py, + * to provide necessary information from kernel to userspace, such as constants, + * structures, and macros, and thus, contains no copyrightable information. + */ +#define __ARCH_WANT_RENAMEAT +#include diff --git a/linux-4.19/prebuilts/usr/include/asm/hwcap.h b/linux-4.19/prebuilts/usr/include/asm/hwcap.h deleted file mode 100644 index 5fc1027..0000000 --- a/linux-4.19/prebuilts/usr/include/asm/hwcap.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASMARM_HWCAP_H -#define __ASMARM_HWCAP_H -#define HWCAP_SWP (1 << 0) -#define HWCAP_HALF (1 << 1) -#define HWCAP_THUMB (1 << 2) -#define HWCAP_26BIT (1 << 3) -#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) -#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) -#define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT) -#define HWCAP_LPAE (1 << 20) -#define HWCAP_EVTSTRM (1 << 21) -#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 diff --git a/linux-4.19/prebuilts/usr/include/asm/ptrace.h b/linux-4.19/prebuilts/usr/include/asm/ptrace.h deleted file mode 100644 index c45ee94..0000000 --- a/linux-4.19/prebuilts/usr/include/asm/ptrace.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASM_ARM_PTRACE_H -#define __ASM_ARM_PTRACE_H -#include -#define PTRACE_GETREGS 12 -#define PTRACE_SETREGS 13 -#define PTRACE_GETFPREGS 14 -#define PTRACE_SETFPREGS 15 -#define PTRACE_GETWMMXREGS 18 -#define PTRACE_SETWMMXREGS 19 -#define PTRACE_OLDSETOPTIONS 21 -#define PTRACE_GET_THREAD_AREA 22 -#define PTRACE_SET_SYSCALL 23 -#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 -#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 -#define V7M_PSR_T_BIT 0x01000000 -#define PSR_T_BIT V4_PSR_T_BIT -#define PSR_F_BIT 0x00000040 -#define PSR_I_BIT 0x00000080 -#define PSR_A_BIT 0x00000100 -#define PSR_E_BIT 0x00000200 -#define PSR_J_BIT 0x01000000 -#define PSR_Q_BIT 0x08000000 -#define PSR_V_BIT 0x10000000 -#define PSR_C_BIT 0x20000000 -#define PSR_Z_BIT 0x40000000 -#define PSR_N_BIT 0x80000000 -#define PSR_f 0xff000000 -#define PSR_s 0x00ff0000 -#define PSR_x 0x0000ff00 -#define PSR_c 0x000000ff -#define APSR_MASK 0xf80f0000 -#define PSR_ISET_MASK 0x01000010 -#define PSR_IT_MASK 0x0600fc00 -#define PSR_ENDIAN_MASK 0x00000200 -#ifdef CONFIG_CPU_ENDIAN_BE8 -#define PSR_ENDSTATE PSR_E_BIT -#else -#define PSR_ENDSTATE 0 -#endif -#define PT_TEXT_ADDR 0x10000 -#define PT_DATA_ADDR 0x10004 -#define PT_TEXT_END_ADDR 0x10008 -#ifndef __ASSEMBLY__ -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] -#define ARM_VFPREGS_SIZE ( 32 * 8 ) -#endif -#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/setup.h b/linux-4.19/prebuilts/usr/include/asm/setup.h deleted file mode 100644 index b0a9172..0000000 --- a/linux-4.19/prebuilts/usr/include/asm/setup.h +++ /dev/null @@ -1,120 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASMARM_SETUP_H -#define __ASMARM_SETUP_H -#include -#define COMMAND_LINE_SIZE 1024 -#define ATAG_NONE 0x00000000 -struct tag_header { - __u32 size; - __u32 tag; -}; -#define ATAG_CORE 0x54410001 -struct tag_core { - __u32 flags; - __u32 pagesize; - __u32 rootdev; -}; -#define ATAG_MEM 0x54410002 -struct tag_mem32 { - __u32 size; - __u32 start; -}; -#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; -}; -#define ATAG_RAMDISK 0x54410004 -struct tag_ramdisk { - __u32 flags; - __u32 size; - __u32 start; -}; -#define ATAG_INITRD 0x54410005 -#define ATAG_INITRD2 0x54420005 -struct tag_initrd { - __u32 start; - __u32 size; -}; -#define ATAG_SERIAL 0x54410006 -struct tag_serialnr { - __u32 low; - __u32 high; -}; -#define ATAG_REVISION 0x54410007 -struct tag_revision { - __u32 rev; -}; -#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; -}; -#define ATAG_CMDLINE 0x54410009 -struct tag_cmdline { - char cmdline[1]; -}; -#define ATAG_ACORN 0x41000101 -struct tag_acorn { - __u32 memc_control_reg; - __u32 vram_pages; - __u8 sounddefault; - __u8 adfsdrives; -}; -#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; - - struct tag_acorn acorn; - - 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 diff --git a/linux-4.19/prebuilts/usr/include/asm/sigcontext.h b/linux-4.19/prebuilts/usr/include/asm/sigcontext.h deleted file mode 100644 index fe3eee7..0000000 --- a/linux-4.19/prebuilts/usr/include/asm/sigcontext.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef _ASMARM_SIGCONTEXT_H -#define _ASMARM_SIGCONTEXT_H -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/linux-4.19/prebuilts/usr/include/asm/signal.h b/linux-4.19/prebuilts/usr/include/asm/signal.h deleted file mode 100644 index 2e20abb..0000000 --- a/linux-4.19/prebuilts/usr/include/asm/signal.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef _ASMARM_SIGNAL_H -#define _ASMARM_SIGNAL_H -#include -struct siginfo; -#define _KERNEL_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 SIGPWR 30 -#define SIGSYS 31 -#define SIGUNUSED 31 -#define __SIGRTMIN 32 -#define __SIGRTMAX _KERNEL__NSIG -#define SIGSWI 32 -#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 -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 diff --git a/linux-4.19/prebuilts/usr/include/asm/stat.h b/linux-4.19/prebuilts/usr/include/asm/stat.h deleted file mode 100644 index 5a5bf86..0000000 --- a/linux-4.19/prebuilts/usr/include/asm/stat.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#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; -}; -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; - 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/linux-4.19/prebuilts/usr/include/asm/swab.h b/linux-4.19/prebuilts/usr/include/asm/swab.h deleted file mode 100644 index 8b8bf24..0000000 --- a/linux-4.19/prebuilts/usr/include/asm/swab.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASM_ARM_SWAB_H -#define __ASM_ARM_SWAB_H -#include -#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)) { - - __asm__ ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); - } else -#endif - t = x ^ ((x << 16) | (x >> 16)); - x = (x << 24) | (x >> 8); - t &= ~0x00FF0000; - x ^= (t >> 8); - return x; -} -#define __arch_swab32 __arch_swab32 -#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/unistd-common.h b/linux-4.19/prebuilts/usr/include/asm/unistd-common.h deleted file mode 100644 index 164c599..0000000 --- a/linux-4.19/prebuilts/usr/include/asm/unistd-common.h +++ /dev/null @@ -1,363 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#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) -#endif diff --git a/linux-4.19/prebuilts/usr/include/asm/unistd-oabi.h b/linux-4.19/prebuilts/usr/include/asm/unistd-oabi.h deleted file mode 100644 index a795bbf..0000000 --- a/linux-4.19/prebuilts/usr/include/asm/unistd-oabi.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#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 diff --git a/linux-4.19/prebuilts/usr/include/asm/unistd.h b/linux-4.19/prebuilts/usr/include/asm/unistd.h deleted file mode 100644 index 8927d1c..0000000 --- a/linux-4.19/prebuilts/usr/include/asm/unistd.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#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 -#else -#define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE -#include -#endif -#include -#define __NR_sync_file_range2 __NR_arm_sync_file_range -#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 -- Gitee