From 1376572c821a073bd2c1b63fa8afb28c6be64608 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Fri, 31 Jan 2014 04:58:10 +0800 Subject: Populate arch-x86_64/usr/include/asm/*h Copied from bionic/libc/kernel/uapi/asm-x86/asm/*h Unlike arm64, both 32-/64-bit of x86 use the same asm-x86/asm/* Change-Id: I57894a82e7ce0ddd044c8a6a15327435c6af40c9 --- .../android-19/arch-x86_64/usr/include/asm/a.out.h | 39 ++ .../arch-x86_64/usr/include/asm/auxvec.h | 28 ++ .../arch-x86_64/usr/include/asm/bitsperlong.h | 9 +- .../android-19/arch-x86_64/usr/include/asm/boot.h | 25 + .../arch-x86_64/usr/include/asm/bootparam.h | 186 +++++++ .../arch-x86_64/usr/include/asm/byteorder.h | 23 + .../arch-x86_64/usr/include/asm/debugreg.h | 65 +++ .../android-19/arch-x86_64/usr/include/asm/e820.h | 56 +++ .../android-19/arch-x86_64/usr/include/asm/fcntl.h | 9 - .../arch-x86_64/usr/include/asm/hw_breakpoint.h | 18 + .../arch-x86_64/usr/include/asm/hyperv.h | 131 +++++ .../android-19/arch-x86_64/usr/include/asm/ioctl.h | 19 + .../arch-x86_64/usr/include/asm/ioctls.h | 19 + .../arch-x86_64/usr/include/asm/ipcbuf.h | 19 + .../android-19/arch-x86_64/usr/include/asm/ist.h | 30 ++ .../android-19/arch-x86_64/usr/include/asm/kvm.h | 363 ++++++++++++++ .../arch-x86_64/usr/include/asm/kvm_para.h | 99 ++++ .../android-19/arch-x86_64/usr/include/asm/ldt.h | 48 ++ .../android-19/arch-x86_64/usr/include/asm/mce.h | 54 ++ .../android-19/arch-x86_64/usr/include/asm/mman.h | 7 + .../arch-x86_64/usr/include/asm/msgbuf.h | 19 + .../arch-x86_64/usr/include/asm/msr-index.h | 558 +++++++++++++++++++++ .../android-19/arch-x86_64/usr/include/asm/msr.h | 30 ++ .../android-19/arch-x86_64/usr/include/asm/mtrr.h | 101 ++++ .../android-19/arch-x86_64/usr/include/asm/param.h | 19 + .../arch-x86_64/usr/include/asm/perf_regs.h | 56 +++ .../android-19/arch-x86_64/usr/include/asm/poll.h | 19 + .../arch-x86_64/usr/include/asm/posix_types.h | 9 +- .../arch-x86_64/usr/include/asm/posix_types_32.h | 34 ++ .../arch-x86_64/usr/include/asm/posix_types_64.h | 29 ++ .../arch-x86_64/usr/include/asm/posix_types_x32.h | 26 + .../android-19/arch-x86_64/usr/include/asm/prctl.h | 26 + .../arch-x86_64/usr/include/asm/processor-flags.h | 103 ++++ .../arch-x86_64/usr/include/asm/ptrace-abi.h | 101 ++++ .../arch-x86_64/usr/include/asm/ptrace.h | 84 ++++ .../arch-x86_64/usr/include/asm/resource.h | 19 + .../arch-x86_64/usr/include/asm/sembuf.h | 34 ++ .../android-19/arch-x86_64/usr/include/asm/setup.h | 18 + .../arch-x86_64/usr/include/asm/shmbuf.h | 19 + .../arch-x86_64/usr/include/asm/sigcontext.h | 193 +++++++ .../arch-x86_64/usr/include/asm/sigcontext32.h | 96 ++++ .../arch-x86_64/usr/include/asm/siginfo.h | 14 +- .../arch-x86_64/usr/include/asm/signal.h | 108 +++- .../arch-x86_64/usr/include/asm/socket.h | 19 + .../arch-x86_64/usr/include/asm/sockios.h | 19 + .../android-19/arch-x86_64/usr/include/asm/stat.h | 133 +++++ .../arch-x86_64/usr/include/asm/statfs.h | 24 + .../android-19/arch-x86_64/usr/include/asm/svm.h | 114 +++++ .../android-19/arch-x86_64/usr/include/asm/swab.h | 30 ++ .../arch-x86_64/usr/include/asm/termbits.h | 19 + .../arch-x86_64/usr/include/asm/termios.h | 19 + .../android-19/arch-x86_64/usr/include/asm/types.h | 4 + .../arch-x86_64/usr/include/asm/ucontext.h | 24 + .../arch-x86_64/usr/include/asm/unistd.h | 31 ++ .../arch-x86_64/usr/include/asm/unistd_32.h | 455 +++++++++++++++++ .../arch-x86_64/usr/include/asm/unistd_64.h | 414 +++++++++++++++ .../arch-x86_64/usr/include/asm/unistd_x32.h | 400 +++++++++++++++ .../android-19/arch-x86_64/usr/include/asm/vm86.h | 115 +++++ .../android-19/arch-x86_64/usr/include/asm/vmx.h | 76 +++ .../arch-x86_64/usr/include/asm/vsyscall.h | 34 ++ 60 files changed, 4875 insertions(+), 17 deletions(-) create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/a.out.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/auxvec.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/boot.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/bootparam.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/byteorder.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/debugreg.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/e820.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/hw_breakpoint.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/hyperv.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/ioctl.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/ioctls.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/ipcbuf.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/ist.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/kvm.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/kvm_para.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/ldt.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/mce.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/msgbuf.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/msr-index.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/msr.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/mtrr.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/param.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/perf_regs.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/poll.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/posix_types_32.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/posix_types_64.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/posix_types_x32.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/prctl.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/processor-flags.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/ptrace-abi.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/ptrace.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/resource.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/sembuf.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/setup.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/shmbuf.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/sigcontext.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/sigcontext32.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/socket.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/sockios.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/stat.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/statfs.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/svm.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/swab.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/termbits.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/termios.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/ucontext.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/unistd.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/unistd_32.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/unistd_64.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/unistd_x32.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/vm86.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/vmx.h create mode 100644 9/platforms/android-19/arch-x86_64/usr/include/asm/vsyscall.h (limited to '9') diff --git a/9/platforms/android-19/arch-x86_64/usr/include/asm/a.out.h b/9/platforms/android-19/arch-x86_64/usr/include/asm/a.out.h new file mode 100644 index 0000000..fa287b5 --- /dev/null +++ b/9/platforms/android-19/arch-x86_64/usr/include/asm/a.out.h @@ -0,0 +1,39 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _ASM_X86_A_OUT_H +#define _ASM_X86_A_OUT_H +struct exec +{ +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned int a_info; + unsigned a_text; + unsigned a_data; + unsigned a_bss; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned a_syms; + unsigned a_entry; + unsigned a_trsize; + unsigned a_drsize; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +}; +#define N_TRSIZE(a) ((a).a_trsize) +#define N_DRSIZE(a) ((a).a_drsize) +#define N_SYMSIZE(a) ((a).a_syms) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif diff --git a/9/platforms/android-19/arch-x86_64/usr/include/asm/auxvec.h b/9/platforms/android-19/arch-x86_64/usr/include/asm/auxvec.h new file mode 100644 index 0000000..3ff7f71 --- /dev/null +++ b/9/platforms/android-19/arch-x86_64/usr/include/asm/auxvec.h @@ -0,0 +1,28 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _ASM_X86_AUXVEC_H +#define _ASM_X86_AUXVEC_H +#ifdef __i386__ +#define AT_SYSINFO 32 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif +#define AT_SYSINFO_EHDR 33 +#define AT_VECTOR_SIZE_ARCH 2 +#endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/9/platforms/android-19/arch-x86_64/usr/include/asm/bitsperlong.h b/9/platforms/android-19/arch-x86_64/usr/include/asm/bitsperlong.h index e53ff65..2deae24 100644 --- a/9/platforms/android-19/arch-x86_64/usr/include/asm/bitsperlong.h +++ b/9/platforms/android-19/arch-x86_64/usr/include/asm/bitsperlong.h @@ -16,9 +16,14 @@ *** **************************************************************************** ****************************************************************************/ -#ifndef __ASM_BITSPERLONG_H -#define __ASM_BITSPERLONG_H +#ifndef __ASM_X86_BITSPERLONG_H +#define __ASM_X86_BITSPERLONG_H +#ifdef __x86_64__ #define __BITS_PER_LONG 64 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#else +#define __BITS_PER_LONG 32 +#endif #include /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif diff --git a/9/platforms/android-19/arch-x86_64/usr/include/asm/boot.h b/9/platforms/android-19/arch-x86_64/usr/include/asm/boot.h new file mode 100644 index 0000000..1560dd0 --- /dev/null +++ b/9/platforms/android-19/arch-x86_64/usr/include/asm/boot.h @@ -0,0 +1,25 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI_ASM_X86_BOOT_H +#define _UAPI_ASM_X86_BOOT_H +#define NORMAL_VGA 0xffff +#define EXTENDED_VGA 0xfffe +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define ASK_VGA 0xfffd +#endif diff --git a/9/platforms/android-19/arch-x86_64/usr/include/asm/bootparam.h b/9/platforms/android-19/arch-x86_64/usr/include/asm/bootparam.h new file mode 100644 index 0000000..af98489 --- /dev/null +++ b/9/platforms/android-19/arch-x86_64/usr/include/asm/bootparam.h @@ -0,0 +1,186 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _ASM_X86_BOOTPARAM_H +#define _ASM_X86_BOOTPARAM_H +#define SETUP_NONE 0 +#define SETUP_E820_EXT 1 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SETUP_DTB 2 +#define SETUP_PCI 3 +#define RAMDISK_IMAGE_START_MASK 0x07FF +#define RAMDISK_PROMPT_FLAG 0x8000 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define RAMDISK_LOAD_FLAG 0x4000 +#define LOADED_HIGH (1<<0) +#define QUIET_FLAG (1<<5) +#define KEEP_SEGMENTS (1<<6) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define CAN_USE_HEAP (1<<7) +#define XLF_KERNEL_64 (1<<0) +#define XLF_CAN_BE_LOADED_ABOVE_4G (1<<1) +#define XLF_EFI_HANDOVER_32 (1<<2) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define XLF_EFI_HANDOVER_64 (1<<3) +#ifndef __ASSEMBLY__ +#include +#include +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#include +#include +#include +#include +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#include