From 38062f954c637861348dd8078cefb73554e6f12c Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Wed, 9 Jul 2014 15:33:25 -0700 Subject: [PATCH] Update kernel headers to v3.14. Other changes: - Modify update_all.py to skip ion header files when importing into aosp. - Fix generate_uapi_headers.sh to handle imports from a linux-stable kernel. Change-Id: I1ad81b9ccb063c21740f9875f2cc1238052cd4b3 --- libc/kernel/tools/generate_uapi_headers.sh | 28 +- libc/kernel/tools/update_all.py | 16 +- libc/kernel/uapi/asm-arm/asm/hwcap.h | 4 +- libc/kernel/uapi/asm-arm/asm/kvm.h | 48 +- libc/kernel/uapi/asm-arm/asm/perf_regs.h | 45 ++ libc/kernel/uapi/asm-arm/asm/ptrace.h | 32 +- libc/kernel/uapi/asm-arm/asm/unistd.h | 11 +- libc/kernel/uapi/asm-arm64/asm/byteorder.h | 5 + libc/kernel/uapi/asm-arm64/asm/hwcap.h | 7 + libc/kernel/uapi/asm-arm64/asm/kvm.h | 158 ++++++ libc/kernel/uapi/asm-generic/fcntl.h | 50 +- libc/kernel/uapi/asm-generic/ipcbuf.h | 4 +- libc/kernel/uapi/asm-generic/msgbuf.h | 10 +- libc/kernel/uapi/asm-generic/poll.h | 5 +- libc/kernel/uapi/asm-generic/shmbuf.h | 24 +- libc/kernel/uapi/asm-generic/socket.h | 4 + libc/kernel/uapi/asm-generic/statfs.h | 2 +- libc/kernel/uapi/asm-generic/unistd.h | 63 +-- libc/kernel/uapi/asm-mips/asm/auxvec.h | 4 +- libc/kernel/uapi/asm-mips/asm/fcntl.h | 26 +- libc/kernel/uapi/asm-mips/asm/inst.h | 133 ++--- libc/kernel/uapi/asm-mips/asm/msgbuf.h | 6 +- libc/kernel/uapi/asm-mips/asm/resource.h | 2 +- libc/kernel/uapi/asm-mips/asm/siginfo.h | 43 +- libc/kernel/uapi/asm-mips/asm/socket.h | 5 +- libc/kernel/uapi/asm-mips/asm/swab.h | 9 + libc/kernel/uapi/asm-mips/asm/types.h | 5 + libc/kernel/uapi/asm-mips/asm/ucontext.h | 19 + libc/kernel/uapi/asm-mips/asm/unistd.h | 178 +++---- libc/kernel/uapi/asm-x86/asm/bootparam.h | 69 +-- libc/kernel/uapi/asm-x86/asm/hyperv.h | 55 +- libc/kernel/uapi/asm-x86/asm/kvm.h | 6 +- libc/kernel/uapi/asm-x86/asm/kvm_para.h | 27 +- libc/kernel/uapi/asm-x86/asm/msr-index.h | 160 +++--- libc/kernel/uapi/asm-x86/asm/processor-flags.h | 200 +++++--- libc/kernel/uapi/asm-x86/asm/sembuf.h | 10 +- libc/kernel/uapi/asm-x86/asm/stat.h | 67 +-- libc/kernel/uapi/asm-x86/asm/unistd_32.h | 3 + libc/kernel/uapi/asm-x86/asm/unistd_64.h | 2 + libc/kernel/uapi/asm-x86/asm/unistd_x32.h | 19 +- libc/kernel/uapi/asm-x86/asm/vmx.h | 6 +- libc/kernel/uapi/drm/armada_drm.h | 51 ++ libc/kernel/uapi/drm/drm.h | 191 +++---- libc/kernel/uapi/drm/drm_mode.h | 141 ++++-- libc/kernel/uapi/drm/i915_drm.h | 200 ++++---- libc/kernel/uapi/drm/msm_drm.h | 144 ++++++ libc/kernel/uapi/drm/radeon_drm.h | 8 +- libc/kernel/uapi/drm/tegra_drm.h | 35 +- libc/kernel/uapi/drm/vmwgfx_drm.h | 196 ++++++-- libc/kernel/uapi/linux/apm_bios.h | 23 +- libc/kernel/uapi/linux/audit.h | 156 +++--- libc/kernel/uapi/linux/bcache.h | 209 ++++++++ libc/kernel/uapi/linux/btrfs.h | 132 +++-- libc/kernel/uapi/linux/can/gw.h | 23 +- libc/kernel/uapi/linux/cifs/cifs_mount.h | 28 ++ libc/kernel/uapi/linux/cm4000_cs.h | 18 +- libc/kernel/uapi/linux/const.h | 3 + libc/kernel/uapi/linux/dm-ioctl.h | 6 +- libc/kernel/uapi/linux/dm-log-userspace.h | 2 +- libc/kernel/uapi/linux/dn.h | 51 +- libc/kernel/uapi/linux/dqblk_xfs.h | 63 ++- libc/kernel/uapi/linux/elf-em.h | 11 +- libc/kernel/uapi/linux/fd.h | 53 +- libc/kernel/uapi/linux/fib_rules.h | 4 +- libc/kernel/uapi/linux/fiemap.h | 9 +- libc/kernel/uapi/linux/fs.h | 6 +- libc/kernel/uapi/linux/gen_stats.h | 18 +- libc/kernel/uapi/linux/genetlink.h | 24 +- libc/kernel/uapi/linux/genwqe/genwqe_card.h | 331 ++++++++++++ libc/kernel/uapi/linux/gfs2_ondisk.h | 42 +- libc/kernel/uapi/linux/hash_info.h | 46 ++ libc/kernel/uapi/linux/hsr_netlink.h | 54 ++ libc/kernel/uapi/linux/icmpv6.h | 13 +- libc/kernel/uapi/linux/if.h | 53 +- libc/kernel/uapi/linux/if_addr.h | 14 +- libc/kernel/uapi/linux/if_arp.h | 20 +- libc/kernel/uapi/linux/if_bonding.h | 12 +- libc/kernel/uapi/linux/if_bridge.h | 75 +-- libc/kernel/uapi/linux/if_ether.h | 20 +- libc/kernel/uapi/linux/if_link.h | 195 ++++++-- libc/kernel/uapi/linux/if_packet.h | 98 ++-- libc/kernel/uapi/linux/if_pppox.h | 21 +- libc/kernel/uapi/linux/if_tun.h | 20 +- libc/kernel/uapi/linux/in.h | 59 ++- libc/kernel/uapi/linux/in6.h | 62 ++- libc/kernel/uapi/linux/input.h | 329 ++++++------ libc/kernel/uapi/linux/ip.h | 43 +- libc/kernel/uapi/linux/ip_vs.h | 124 ++--- libc/kernel/uapi/linux/ipv6.h | 4 + libc/kernel/uapi/linux/kexec.h | 9 +- libc/kernel/uapi/linux/keyctl.h | 1 + libc/kernel/uapi/linux/kvm.h | 200 ++++---- libc/kernel/uapi/linux/kvm_para.h | 3 +- libc/kernel/uapi/linux/libc-compat.h | 53 ++ libc/kernel/uapi/linux/magic.h | 2 + libc/kernel/uapi/linux/major.h | 49 +- libc/kernel/uapi/linux/media.h | 14 +- libc/kernel/uapi/linux/mic_common.h | 114 +++++ libc/kernel/uapi/linux/mic_ioctl.h | 35 ++ libc/kernel/uapi/linux/mqueue.h | 10 +- libc/kernel/uapi/linux/msdos_fs.h | 36 +- libc/kernel/uapi/linux/msg.h | 2 +- libc/kernel/uapi/linux/netconf.h | 4 +- libc/kernel/uapi/linux/netfilter.h | 9 +- libc/kernel/uapi/linux/netfilter/ipset/ip_set.h | 105 ++-- .../uapi/linux/netfilter/nf_conntrack_common.h | 27 +- libc/kernel/uapi/linux/netfilter/nf_nat.h | 19 +- libc/kernel/uapi/linux/netfilter/nf_tables.h | 454 +++++++++++++++++ .../kernel/uapi/linux/netfilter/nf_tables_compat.h | 58 +++ libc/kernel/uapi/linux/netfilter/nfnetlink.h | 20 +- .../uapi/linux/netfilter/nfnetlink_conntrack.h | 109 ++-- .../uapi/linux/netfilter/nfnetlink_cttimeout.h | 50 +- libc/kernel/uapi/linux/netfilter/nfnetlink_queue.h | 28 +- libc/kernel/uapi/linux/netfilter/xt_HMARK.h | 74 +++ libc/kernel/uapi/linux/netfilter/xt_IDLETIMER.h | 5 - libc/kernel/uapi/linux/netfilter/xt_SYNPROXY.h | 34 ++ libc/kernel/uapi/linux/netfilter/xt_cgroup.h | 28 ++ libc/kernel/uapi/linux/netfilter/xt_ipcomp.h | 31 ++ libc/kernel/uapi/linux/netfilter/xt_l2tp.h | 44 ++ libc/kernel/uapi/linux/netfilter/xt_rpfilter.h | 34 ++ libc/kernel/uapi/linux/netfilter/xt_socket.h | 13 +- .../kernel/uapi/linux/netfilter_bridge/ebt_802_3.h | 24 +- .../uapi/linux/netfilter_ipv4/ipt_CLUSTERIP.h | 14 +- libc/kernel/uapi/linux/nfc.h | 58 ++- libc/kernel/uapi/linux/nfs4.h | 2 +- libc/kernel/uapi/linux/nl80211.h | 557 ++++++++++++--------- libc/kernel/uapi/linux/nvme.h | 554 ++++++++++++++++++++ libc/kernel/uapi/linux/openvswitch.h | 152 ++++-- libc/kernel/uapi/linux/pci_regs.h | 285 ++++++----- libc/kernel/uapi/linux/perf_event.h | 143 ++++-- libc/kernel/uapi/linux/pkt_cls.h | 37 +- libc/kernel/uapi/linux/pkt_sched.h | 290 +++++++---- libc/kernel/uapi/linux/ppp-ioctl.h | 43 +- libc/kernel/uapi/linux/prctl.h | 4 - libc/kernel/uapi/linux/ptrace.h | 14 +- libc/kernel/uapi/linux/raid/md_p.h | 75 +-- libc/kernel/uapi/linux/random.h | 4 - libc/kernel/uapi/linux/reiserfs_xattr.h | 2 +- libc/kernel/uapi/linux/resource.h | 32 +- libc/kernel/uapi/linux/rtnetlink.h | 94 ++-- libc/kernel/uapi/linux/sched.h | 4 +- libc/kernel/uapi/linux/serial_core.h | 5 + libc/kernel/uapi/linux/shm.h | 10 +- libc/kernel/uapi/linux/snmp.h | 27 +- libc/kernel/uapi/linux/sockios.h | 20 +- libc/kernel/uapi/linux/tc_act/tc_defact.h | 36 ++ libc/kernel/uapi/linux/tc_act/tc_ipt.h | 7 +- libc/kernel/uapi/linux/tcp.h | 36 +- libc/kernel/uapi/linux/tcp_metrics.h | 8 +- libc/kernel/uapi/linux/timex.h | 30 +- libc/kernel/uapi/linux/usb/ch11.h | 73 +-- libc/kernel/uapi/linux/v4l2-controls.h | 342 +++++++------ libc/kernel/uapi/linux/v4l2-dv-timings.h | 2 - libc/kernel/uapi/linux/v4l2-mediabus.h | 33 +- libc/kernel/uapi/linux/version.h | 2 +- libc/kernel/uapi/linux/vfio.h | 92 +++- libc/kernel/uapi/linux/videodev2.h | 484 +++++++++--------- libc/kernel/uapi/linux/virtio_config.h | 2 + libc/kernel/uapi/linux/virtio_console.h | 13 +- libc/kernel/uapi/linux/virtio_net.h | 2 +- libc/kernel/uapi/linux/virtio_pci.h | 5 +- libc/kernel/uapi/linux/vsp1.h | 29 ++ libc/kernel/uapi/linux/wimax/i2400m.h | 147 +++--- libc/kernel/uapi/linux/xattr.h | 18 +- libc/kernel/uapi/linux/zorro.h | 93 ++++ libc/kernel/uapi/linux/zorro_ids.h | 553 ++++++++++++++++++++ libc/kernel/uapi/rdma/ib_user_verbs.h | 415 +++++++++------ libc/kernel/uapi/rdma/rdma_user_cm.h | 128 +++-- libc/kernel/uapi/sound/asound.h | 372 +++++++------- libc/kernel/uapi/sound/compress_offload.h | 6 +- libc/kernel/uapi/sound/compress_params.h | 92 ++-- libc/kernel/uapi/sound/firewire.h | 58 +++ libc/kernel/uapi/sound/hdspm.h | 2 +- libc/kernel/uapi/xen/gntalloc.h | 49 ++ libc/kernel/uapi/xen/gntdev.h | 66 +++ 175 files changed, 8669 insertions(+), 3660 deletions(-) create mode 100644 libc/kernel/uapi/asm-arm/asm/perf_regs.h create mode 100644 libc/kernel/uapi/asm-arm64/asm/kvm.h create mode 100644 libc/kernel/uapi/asm-mips/asm/ucontext.h create mode 100644 libc/kernel/uapi/drm/armada_drm.h create mode 100644 libc/kernel/uapi/drm/msm_drm.h create mode 100644 libc/kernel/uapi/linux/bcache.h create mode 100644 libc/kernel/uapi/linux/cifs/cifs_mount.h create mode 100644 libc/kernel/uapi/linux/genwqe/genwqe_card.h create mode 100644 libc/kernel/uapi/linux/hash_info.h create mode 100644 libc/kernel/uapi/linux/hsr_netlink.h create mode 100644 libc/kernel/uapi/linux/libc-compat.h create mode 100644 libc/kernel/uapi/linux/mic_common.h create mode 100644 libc/kernel/uapi/linux/mic_ioctl.h create mode 100644 libc/kernel/uapi/linux/netfilter/nf_tables.h create mode 100644 libc/kernel/uapi/linux/netfilter/nf_tables_compat.h create mode 100644 libc/kernel/uapi/linux/netfilter/xt_HMARK.h create mode 100644 libc/kernel/uapi/linux/netfilter/xt_SYNPROXY.h create mode 100644 libc/kernel/uapi/linux/netfilter/xt_cgroup.h create mode 100644 libc/kernel/uapi/linux/netfilter/xt_ipcomp.h create mode 100644 libc/kernel/uapi/linux/netfilter/xt_l2tp.h create mode 100644 libc/kernel/uapi/linux/netfilter/xt_rpfilter.h create mode 100644 libc/kernel/uapi/linux/nvme.h create mode 100644 libc/kernel/uapi/linux/tc_act/tc_defact.h create mode 100644 libc/kernel/uapi/linux/vsp1.h create mode 100644 libc/kernel/uapi/linux/zorro.h create mode 100644 libc/kernel/uapi/linux/zorro_ids.h create mode 100644 libc/kernel/uapi/sound/firewire.h create mode 100644 libc/kernel/uapi/xen/gntalloc.h create mode 100644 libc/kernel/uapi/xen/gntdev.h diff --git a/libc/kernel/tools/generate_uapi_headers.sh b/libc/kernel/tools/generate_uapi_headers.sh index 9eeb2a58b..386159aab 100755 --- a/libc/kernel/tools/generate_uapi_headers.sh +++ b/libc/kernel/tools/generate_uapi_headers.sh @@ -148,22 +148,28 @@ elif [[ ! -d "${ANDROID_KERNEL_DIR}" ]]; then exit 1 fi +if [[ -d "${KERNEL_DIR}/linux-stable" ]]; then + src_dir="linux-stable" +else + src_dir="common" +fi + if [[ ${KERNEL_DOWNLOAD} -eq 1 ]]; then TMPDIR=$(mktemp -d /tmp/android_kernelXXXXXXXX) cd "${TMPDIR}" echo "Fetching android kernel source ${KERNEL_VERSION}" git clone https://android.googlesource.com/kernel/common.git - cd common + cd "${COMMON}" git checkout "${KERNEL_VERSION}" KERNEL_DIR="${TMPDIR}" elif [[ "${KERNEL_DIR}" == "" ]]; then echo "Must specify one of --use-kernel-dir or --download-kernel." exit 1 -elif [[ ! -d "${KERNEL_DIR}" ]] || [[ ! -d "${KERNEL_DIR}/common" ]]; then - echo "The kernel directory $KERNEL_DIR or $KERNEL_DIR/common does not exist." +elif [[ ! -d "${KERNEL_DIR}" ]] || [[ ! -d "${KERNEL_DIR}/${src_dir}" ]]; then + echo "The kernel directory $KERNEL_DIR or $KERNEL_DIR/${src_dir} does not exist." exit 1 else - cd "${KERNEL_DIR}/common" + cd "${KERNEL_DIR}/${src_dir}" fi if [[ ${SKIP_GENERATION} -eq 0 ]]; then @@ -175,27 +181,27 @@ if [[ ${SKIP_GENERATION} -eq 0 ]]; then fi # Copy all of the include/uapi files to the kernel headers uapi directory. -copy_hdrs "${KERNEL_DIR}/common/include/uapi" "${ANDROID_KERNEL_DIR}/uapi" +copy_hdrs "${KERNEL_DIR}/${src_dir}/include/uapi" "${ANDROID_KERNEL_DIR}/uapi" # Copy the staging files to uapi/linux. -copy_hdrs "${KERNEL_DIR}/common/drivers/staging/android/uapi" \ +copy_hdrs "${KERNEL_DIR}/${src_dir}/drivers/staging/android/uapi" \ "${ANDROID_KERNEL_DIR}/uapi/linux" "no-copy-dirs" # Copy the generated headers. -copy_hdrs "${KERNEL_DIR}/common/include/generated/uapi" \ +copy_hdrs "${KERNEL_DIR}/${src_dir}/include/generated/uapi" \ "${ANDROID_KERNEL_DIR}/uapi" for arch in "${ARCH_LIST[@]}"; do # Copy arch headers. - copy_hdrs "${KERNEL_DIR}/common/arch/${arch}/include/uapi" \ + copy_hdrs "${KERNEL_DIR}/${src_dir}/arch/${arch}/include/uapi" \ "${ANDROID_KERNEL_DIR}/uapi/asm-${arch}" # Copy the generated arch headers. - copy_hdrs "${KERNEL_DIR}/common/arch/${arch}/include/generated/uapi" \ + copy_hdrs "${KERNEL_DIR}/${src_dir}/arch/${arch}/include/generated/uapi" \ "${ANDROID_KERNEL_DIR}/uapi/asm-${arch}" # Special copy of generated header files from arch//generated/asm that # also exist in uapi/asm-generic. - copy_if_exists "${KERNEL_DIR}/common/include/uapi/asm-generic" \ - "${KERNEL_DIR}/common/arch/${arch}/include/generated/asm" \ + copy_if_exists "${KERNEL_DIR}/${src_dir}/include/uapi/asm-generic" \ + "${KERNEL_DIR}/${src_dir}/arch/${arch}/include/generated/asm" \ "${ANDROID_KERNEL_DIR}/uapi/asm-${arch}/asm" done diff --git a/libc/kernel/tools/update_all.py b/libc/kernel/tools/update_all.py index 3f1d1e6d0..73862da17 100755 --- a/libc/kernel/tools/update_all.py +++ b/libc/kernel/tools/update_all.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -import sys, cpp, kernel, glob, os, re, getopt, clean_header +import sys, cpp, kernel, glob, os, re, getopt, clean_header, subprocess from defaults import * from utils import * @@ -40,11 +40,22 @@ else: if not os.path.isdir(original_dir): panic( "Missing directory, please specify one through command-line: %s\n" % original_dir ) +# Fixme: This should be removed after next release. +# Do not update ion.h ion_test.h until after next release in aosp. +source = subprocess.check_output('git remote show', shell=True).strip() +skip_ion = False +if source == "aosp": + skip_ion = True + # find all source files in 'original' # sources = [] +warning_ion = [] for root, dirs, files in os.walk( original_dir ): for file in files: + if skip_ion and (file == "ion.h" or file == "ion_test.h"): + warning_ion.append(" Skipped file %s/%s" % (root, file)) + continue base, ext = os.path.splitext(file) if ext == ".h": sources.append( "%s/%s" % (root,file) ) @@ -90,4 +101,7 @@ print "%-*s" % (oldlen,"Done!") b.updateGitFiles() +if warning_ion: + print "NOTE: Due to import into aosp, some files were not processed." + print "\n".join(warning_ion) sys.exit(0) diff --git a/libc/kernel/uapi/asm-arm/asm/hwcap.h b/libc/kernel/uapi/asm-arm/asm/hwcap.h index 54e433cf4..e70f3b8f0 100644 --- a/libc/kernel/uapi/asm-arm/asm/hwcap.h +++ b/libc/kernel/uapi/asm-arm/asm/hwcap.h @@ -44,5 +44,7 @@ #define HWCAP_IDIVT (1 << 18) #define HWCAP_VFPD32 (1 << 19) #define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT) -#endif +#define HWCAP_LPAE (1 << 20) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define HWCAP_EVTSTRM (1 << 21) +#endif diff --git a/libc/kernel/uapi/asm-arm/asm/kvm.h b/libc/kernel/uapi/asm-arm/asm/kvm.h index 31a2a2f9c..2b5a17e02 100644 --- a/libc/kernel/uapi/asm-arm/asm/kvm.h +++ b/libc/kernel/uapi/asm-arm/asm/kvm.h @@ -61,74 +61,94 @@ struct kvm_regs { }; #define KVM_ARM_TARGET_CORTEX_A15 0 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define KVM_ARM_NUM_TARGETS 1 +#define KVM_ARM_TARGET_CORTEX_A7 1 +#define KVM_ARM_NUM_TARGETS 2 #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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_ARM_DEVICE_ID_SHIFT 16 #define KVM_ARM_DEVICE_ID_MASK (0xffff << KVM_ARM_DEVICE_ID_SHIFT) #define KVM_ARM_DEVICE_VGIC_V2 0 #define KVM_VGIC_V2_ADDR_TYPE_DIST 0 -#define KVM_VGIC_V2_ADDR_TYPE_CPU 1 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_VGIC_V2_ADDR_TYPE_CPU 1 #define KVM_VGIC_V2_DIST_SIZE 0x1000 #define KVM_VGIC_V2_CPU_SIZE 0x2000 #define KVM_ARM_VCPU_POWER_OFF 0 -struct kvm_vcpu_init { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct kvm_vcpu_init { __u32 target; __u32 features[7]; }; -struct kvm_sregs { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct kvm_sregs { }; struct kvm_fpu { }; -struct kvm_guest_debug_arch { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct kvm_guest_debug_arch { }; struct kvm_debug_exit_arch { }; -struct kvm_sync_regs { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct kvm_sync_regs { }; struct kvm_arch_memory_slot { }; -#define KVM_REG_ARM_COPROC_MASK 0x000000000FFF0000 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_REG_ARM_32_CRN_MASK 0x0000000000007800 #define KVM_REG_ARM_32_CRN_SHIFT 11 +#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)) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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_TIMER_CTL ARM_CP15_REG32(0, 14, 3, 1) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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_DEMUX (0x0011 << KVM_REG_ARM_COPROC_SHIFT) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_DEV_ARM_VGIC_GRP_ADDR 0 +#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1 +#define KVM_DEV_ARM_VGIC_GRP_CPU_REGS 2 +#define KVM_DEV_ARM_VGIC_CPUID_SHIFT 32 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_DEV_ARM_VGIC_CPUID_MASK (0xffULL << KVM_DEV_ARM_VGIC_CPUID_SHIFT) +#define KVM_DEV_ARM_VGIC_OFFSET_SHIFT 0 +#define KVM_DEV_ARM_VGIC_OFFSET_MASK (0xffffffffULL << KVM_DEV_ARM_VGIC_OFFSET_SHIFT) #define KVM_ARM_IRQ_TYPE_SHIFT 24 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define KVM_ARM_IRQ_TYPE_MASK 0xff diff --git a/libc/kernel/uapi/asm-arm/asm/perf_regs.h b/libc/kernel/uapi/asm-arm/asm/perf_regs.h new file mode 100644 index 000000000..745bcf30c --- /dev/null +++ b/libc/kernel/uapi/asm-arm/asm/perf_regs.h @@ -0,0 +1,45 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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_ARM_PERF_REGS_H +#define _ASM_ARM_PERF_REGS_H +enum perf_event_arm_regs { + PERF_REG_ARM_R0, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + PERF_REG_ARM_R1, + PERF_REG_ARM_R2, + PERF_REG_ARM_R3, + PERF_REG_ARM_R4, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + PERF_REG_ARM_R5, + PERF_REG_ARM_R6, + PERF_REG_ARM_R7, + PERF_REG_ARM_R8, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + PERF_REG_ARM_R9, + PERF_REG_ARM_R10, + PERF_REG_ARM_FP, + PERF_REG_ARM_IP, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + PERF_REG_ARM_SP, + PERF_REG_ARM_LR, + PERF_REG_ARM_PC, + PERF_REG_ARM_MAX, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +}; +#endif diff --git a/libc/kernel/uapi/asm-arm/asm/ptrace.h b/libc/kernel/uapi/asm-arm/asm/ptrace.h index 78191ac88..9d39d4917 100644 --- a/libc/kernel/uapi/asm-arm/asm/ptrace.h +++ b/libc/kernel/uapi/asm-arm/asm/ptrace.h @@ -44,10 +44,10 @@ #define IRQ26_MODE 0x00000002 #define SVC26_MODE 0x00000003 #define USR_MODE 0x00000010 -#define FIQ_MODE 0x00000011 +#define SVC_MODE 0x00000013 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define FIQ_MODE 0x00000011 #define IRQ_MODE 0x00000012 -#define SVC_MODE 0x00000013 #define ABT_MODE 0x00000017 #define HYP_MODE 0x0000001a /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ @@ -56,63 +56,65 @@ #define MODE32_BIT 0x00000010 #define MODE_MASK 0x0000001f /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define PSR_T_BIT 0x00000020 +#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 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PSR_I_BIT 0x00000080 #define PSR_A_BIT 0x00000100 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PSR_E_BIT 0x00000200 #define PSR_J_BIT 0x01000000 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PSR_Q_BIT 0x08000000 #define PSR_V_BIT 0x10000000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PSR_C_BIT 0x20000000 #define PSR_Z_BIT 0x40000000 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PSR_N_BIT 0x80000000 #define PSR_f 0xff000000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PSR_s 0x00ff0000 #define PSR_x 0x0000ff00 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PSR_c 0x000000ff #define APSR_MASK 0xf80f0000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PSR_ISET_MASK 0x01000010 #define PSR_IT_MASK 0x0600fc00 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PSR_ENDIAN_MASK 0x00000200 #define PSR_ENDSTATE 0 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PT_TEXT_ADDR 0x10000 #define PT_DATA_ADDR 0x10004 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PT_TEXT_END_ADDR 0x10008 #ifndef __ASSEMBLY__ -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct pt_regs { long uregs[18]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ }; #define ARM_cpsr uregs[16] -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ARM_pc uregs[15] #define ARM_lr uregs[14] +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ARM_sp uregs[13] #define ARM_ip uregs[12] -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ARM_fp uregs[11] #define ARM_r10 uregs[10] +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ARM_r9 uregs[9] #define ARM_r8 uregs[8] -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ARM_r7 uregs[7] #define ARM_r6 uregs[6] +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ARM_r5 uregs[5] #define ARM_r4 uregs[4] -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ARM_r3 uregs[3] #define ARM_r2 uregs[2] +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ARM_r1 uregs[1] #define ARM_r0 uregs[0] -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ARM_ORIG_r0 uregs[17] #define ARM_VFPREGS_SIZE ( 32 * 8 + 4 ) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #endif -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-arm/asm/unistd.h b/libc/kernel/uapi/asm-arm/asm/unistd.h index 4ce108ce8..be9f36f17 100644 --- a/libc/kernel/uapi/asm-arm/asm/unistd.h +++ b/libc/kernel/uapi/asm-arm/asm/unistd.h @@ -456,26 +456,29 @@ #define __NR_kcmp (__NR_SYSCALL_BASE+378) #define __NR_finit_module (__NR_SYSCALL_BASE+379) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define __NR_sched_setattr (__NR_SYSCALL_BASE+380) +#define __NR_sched_getattr (__NR_SYSCALL_BASE+381) #define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000) #define __ARM_NR_breakpoint (__ARM_NR_BASE+1) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __ARM_NR_cacheflush (__ARM_NR_BASE+2) #define __ARM_NR_usr26 (__ARM_NR_BASE+3) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __ARM_NR_usr32 (__ARM_NR_BASE+4) #define __ARM_NR_set_tls (__ARM_NR_BASE+5) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #undef __NR_time #undef __NR_umount -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #undef __NR_stime #undef __NR_alarm +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #undef __NR_utime #undef __NR_getrlimit -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #undef __NR_select #undef __NR_readdir +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #undef __NR_mmap #undef __NR_socketcall -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #undef __NR_syscall #undef __NR_ipc +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif diff --git a/libc/kernel/uapi/asm-arm64/asm/byteorder.h b/libc/kernel/uapi/asm-arm64/asm/byteorder.h index 1908aa6c3..92b1d48ac 100644 --- a/libc/kernel/uapi/asm-arm64/asm/byteorder.h +++ b/libc/kernel/uapi/asm-arm64/asm/byteorder.h @@ -18,6 +18,11 @@ ****************************************************************************/ #ifndef __ASM_BYTEORDER_H #define __ASM_BYTEORDER_H +#ifdef __AARCH64EB__ +#include +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#else #include #endif +#endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-arm64/asm/hwcap.h b/libc/kernel/uapi/asm-arm64/asm/hwcap.h index 539b725e9..ccea53df6 100644 --- a/libc/kernel/uapi/asm-arm64/asm/hwcap.h +++ b/libc/kernel/uapi/asm-arm64/asm/hwcap.h @@ -21,4 +21,11 @@ #define HWCAP_FP (1 << 0) #define HWCAP_ASIMD (1 << 1) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define HWCAP_EVTSTRM (1 << 2) +#define HWCAP_AES (1 << 3) +#define HWCAP_PMULL (1 << 4) +#define HWCAP_SHA1 (1 << 5) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define HWCAP_SHA2 (1 << 6) +#define HWCAP_CRC32 (1 << 7) #endif diff --git a/libc/kernel/uapi/asm-arm64/asm/kvm.h b/libc/kernel/uapi/asm-arm64/asm/kvm.h new file mode 100644 index 000000000..93abd430c --- /dev/null +++ b/libc/kernel/uapi/asm-arm64/asm/kvm.h @@ -0,0 +1,158 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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 __ARM_KVM_H__ +#define __ARM_KVM_H__ +#define KVM_SPSR_EL1 0 +#define KVM_SPSR_SVC KVM_SPSR_EL1 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_SPSR_ABT 1 +#define KVM_SPSR_UND 2 +#define KVM_SPSR_IRQ 3 +#define KVM_SPSR_FIQ 4 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_NR_SPSR 5 +#ifndef __ASSEMBLY__ +#include +#include +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define __KVM_HAVE_GUEST_DEBUG +#define __KVM_HAVE_IRQ_LINE +#define KVM_REG_SIZE(id) (1U << (((id) & KVM_REG_SIZE_MASK) >> KVM_REG_SIZE_SHIFT)) +struct kvm_regs { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + struct user_pt_regs regs; + __u64 sp_el1; + __u64 elr_el1; + __u64 spsr[KVM_NR_SPSR]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + struct user_fpsimd_state fp_regs; +}; +#define KVM_ARM_TARGET_AEM_V8 0 +#define KVM_ARM_TARGET_FOUNDATION_V8 1 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_ARM_TARGET_CORTEX_A57 2 +#define KVM_ARM_TARGET_XGENE_POTENZA 3 +#define KVM_ARM_NUM_TARGETS 4 +#define KVM_ARM_DEVICE_TYPE_SHIFT 0 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_ARM_DEVICE_TYPE_MASK (0xffff << KVM_ARM_DEVICE_TYPE_SHIFT) +#define KVM_ARM_DEVICE_ID_SHIFT 16 +#define KVM_ARM_DEVICE_ID_MASK (0xffff << KVM_ARM_DEVICE_ID_SHIFT) +#define KVM_ARM_DEVICE_VGIC_V2 0 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_VGIC_V2_ADDR_TYPE_DIST 0 +#define KVM_VGIC_V2_ADDR_TYPE_CPU 1 +#define KVM_VGIC_V2_DIST_SIZE 0x1000 +#define KVM_VGIC_V2_CPU_SIZE 0x2000 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_ARM_VCPU_POWER_OFF 0 +#define KVM_ARM_VCPU_EL1_32BIT 1 +struct kvm_vcpu_init { + __u32 target; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u32 features[7]; +}; +struct kvm_sregs { +}; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct kvm_fpu { +}; +struct kvm_guest_debug_arch { +}; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct kvm_debug_exit_arch { +}; +struct kvm_sync_regs { +}; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct kvm_arch_memory_slot { +}; +#define KVM_REG_ARM_COPROC_MASK 0x000000000FFF0000 +#define KVM_REG_ARM_COPROC_SHIFT 16 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_REG_ARM_CORE (0x0010 << KVM_REG_ARM_COPROC_SHIFT) +#define KVM_REG_ARM_CORE_REG(name) (offsetof(struct kvm_regs, name) / sizeof(__u32)) +#define KVM_REG_ARM_DEMUX (0x0011 << KVM_REG_ARM_COPROC_SHIFT) +#define KVM_REG_ARM_DEMUX_ID_MASK 0x000000000000FF00 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#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_TIMER_CTL ARM64_SYS_REG(3, 3, 14, 3, 1) +#define KVM_REG_ARM_TIMER_CNT ARM64_SYS_REG(3, 3, 14, 3, 2) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_REG_ARM_TIMER_CVAL ARM64_SYS_REG(3, 3, 14, 0, 2) +#define KVM_DEV_ARM_VGIC_GRP_ADDR 0 +#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1 +#define KVM_DEV_ARM_VGIC_GRP_CPU_REGS 2 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_DEV_ARM_VGIC_CPUID_SHIFT 32 +#define KVM_DEV_ARM_VGIC_CPUID_MASK (0xffULL << KVM_DEV_ARM_VGIC_CPUID_SHIFT) +#define KVM_DEV_ARM_VGIC_OFFSET_SHIFT 0 +#define KVM_DEV_ARM_VGIC_OFFSET_MASK (0xffffffffULL << KVM_DEV_ARM_VGIC_OFFSET_SHIFT) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_ARM_IRQ_TYPE_SHIFT 24 +#define KVM_ARM_IRQ_TYPE_MASK 0xff +#define KVM_ARM_IRQ_VCPU_SHIFT 16 +#define KVM_ARM_IRQ_VCPU_MASK 0xff +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_ARM_IRQ_NUM_SHIFT 0 +#define KVM_ARM_IRQ_NUM_MASK 0xffff +#define KVM_ARM_IRQ_TYPE_CPU 0 +#define KVM_ARM_IRQ_TYPE_SPI 1 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_ARM_IRQ_TYPE_PPI 2 +#define KVM_ARM_IRQ_CPU_IRQ 0 +#define KVM_ARM_IRQ_CPU_FIQ 1 +#define KVM_ARM_IRQ_GIC_MAX 127 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_PSCI_FN_BASE 0x95c1ba5e +#define KVM_PSCI_FN(n) (KVM_PSCI_FN_BASE + (n)) +#define KVM_PSCI_FN_CPU_SUSPEND KVM_PSCI_FN(0) +#define KVM_PSCI_FN_CPU_OFF KVM_PSCI_FN(1) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_PSCI_FN_CPU_ON KVM_PSCI_FN(2) +#define KVM_PSCI_FN_MIGRATE KVM_PSCI_FN(3) +#define KVM_PSCI_RET_SUCCESS 0 +#define KVM_PSCI_RET_NI ((unsigned long)-1) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define KVM_PSCI_RET_INVAL ((unsigned long)-2) +#define KVM_PSCI_RET_DENIED ((unsigned long)-3) +#endif +#endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-generic/fcntl.h b/libc/kernel/uapi/asm-generic/fcntl.h index 207734f55..a15878fe9 100644 --- a/libc/kernel/uapi/asm-generic/fcntl.h +++ b/libc/kernel/uapi/asm-generic/fcntl.h @@ -86,115 +86,121 @@ #define O_PATH 010000000 #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#ifndef __O_TMPFILE +#define __O_TMPFILE 020000000 +#endif +#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT) #ifndef O_NDELAY #define O_NDELAY O_NONBLOCK #endif -#define F_DUPFD 0 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define F_DUPFD 0 #define F_GETFD 1 #define F_SETFD 2 #define F_GETFL 3 -#define F_SETFL 4 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define F_SETFL 4 #ifndef F_GETLK #define F_GETLK 5 #define F_SETLK 6 -#define F_SETLKW 7 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define F_SETLKW 7 #endif #ifndef F_SETOWN #define F_SETOWN 8 -#define F_GETOWN 9 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define F_GETOWN 9 #endif #ifndef F_SETSIG #define F_SETSIG 10 -#define F_GETSIG 11 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define F_GETSIG 11 #endif #ifndef __LP64__ #ifndef F_GETLK64 -#define F_GETLK64 12 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define F_GETLK64 12 #define F_SETLK64 13 #define F_SETLKW64 14 #endif -#endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif #ifndef F_SETOWN_EX #define F_SETOWN_EX 15 #define F_GETOWN_EX 16 -#endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif #ifndef F_GETOWNER_UIDS #define F_GETOWNER_UIDS 17 #endif -#define F_OWNER_TID 0 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define F_OWNER_TID 0 #define F_OWNER_PID 1 #define F_OWNER_PGRP 2 struct f_owner_ex { - int type; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + int type; __kernel_pid_t pid; }; #define FD_CLOEXEC 1 -#ifndef F_RDLCK /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#ifndef F_RDLCK #define F_RDLCK 0 #define F_WRLCK 1 #define F_UNLCK 2 -#endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif #ifndef F_EXLCK #define F_EXLCK 4 #define F_SHLCK 8 -#endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif #define LOCK_SH 1 #define LOCK_EX 2 #define LOCK_NB 4 -#define LOCK_UN 8 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define LOCK_UN 8 #define LOCK_MAND 32 #define LOCK_READ 64 #define LOCK_WRITE 128 -#define LOCK_RW 192 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define LOCK_RW 192 #define F_LINUX_SPECIFIC_BASE 1024 #ifndef HAVE_ARCH_STRUCT_FLOCK #ifndef __ARCH_FLOCK_PAD -#define __ARCH_FLOCK_PAD /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define __ARCH_FLOCK_PAD #endif struct flock { short l_type; - short l_whence; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + short l_whence; __kernel_off_t l_start; __kernel_off_t l_len; __kernel_pid_t l_pid; - __ARCH_FLOCK_PAD /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __ARCH_FLOCK_PAD }; #endif #ifndef __LP64__ -#ifndef HAVE_ARCH_STRUCT_FLOCK64 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#ifndef HAVE_ARCH_STRUCT_FLOCK64 #ifndef __ARCH_FLOCK64_PAD #define __ARCH_FLOCK64_PAD #endif -struct flock64 { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct flock64 { short l_type; short l_whence; __kernel_loff_t l_start; - __kernel_loff_t l_len; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __kernel_loff_t l_len; __kernel_pid_t l_pid; __ARCH_FLOCK64_PAD }; -#endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #endif +#endif diff --git a/libc/kernel/uapi/asm-generic/ipcbuf.h b/libc/kernel/uapi/asm-generic/ipcbuf.h index c1da1de26..cc7274eaf 100644 --- a/libc/kernel/uapi/asm-generic/ipcbuf.h +++ b/libc/kernel/uapi/asm-generic/ipcbuf.h @@ -31,8 +31,8 @@ struct ipc64_perm { unsigned short seq; unsigned short __pad2; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - unsigned long __unused1; - unsigned long __unused2; + __kernel_ulong_t __unused1; + __kernel_ulong_t __unused2; }; #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-generic/msgbuf.h b/libc/kernel/uapi/asm-generic/msgbuf.h index 0c9e46d92..b2500ef53 100644 --- a/libc/kernel/uapi/asm-generic/msgbuf.h +++ b/libc/kernel/uapi/asm-generic/msgbuf.h @@ -37,14 +37,14 @@ struct msqid64_ds { unsigned long __unused3; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif - unsigned long msg_cbytes; - unsigned long msg_qnum; - unsigned long msg_qbytes; + __kernel_ulong_t msg_cbytes; + __kernel_ulong_t msg_qnum; + __kernel_ulong_t msg_qbytes; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __kernel_pid_t msg_lspid; __kernel_pid_t msg_lrpid; - unsigned long __unused4; - unsigned long __unused5; + __kernel_ulong_t __unused4; + __kernel_ulong_t __unused5; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ }; #endif diff --git a/libc/kernel/uapi/asm-generic/poll.h b/libc/kernel/uapi/asm-generic/poll.h index 45d2c94a0..7faa0b871 100644 --- a/libc/kernel/uapi/asm-generic/poll.h +++ b/libc/kernel/uapi/asm-generic/poll.h @@ -48,11 +48,12 @@ /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #define POLLFREE 0x4000 +#define POLL_BUSY_LOOP 0x8000 struct pollfd { - int fd; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + int fd; short events; short revents; }; -#endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif diff --git a/libc/kernel/uapi/asm-generic/shmbuf.h b/libc/kernel/uapi/asm-generic/shmbuf.h index 4cf9efe55..68b859dd5 100644 --- a/libc/kernel/uapi/asm-generic/shmbuf.h +++ b/libc/kernel/uapi/asm-generic/shmbuf.h @@ -41,23 +41,23 @@ struct shmid64_ds { __kernel_pid_t shm_cpid; __kernel_pid_t shm_lpid; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - unsigned long shm_nattch; - unsigned long __unused4; - unsigned long __unused5; + __kernel_ulong_t shm_nattch; + __kernel_ulong_t __unused4; + __kernel_ulong_t __unused5; }; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct shminfo64 { - unsigned long shmmax; - unsigned long shmmin; - unsigned long shmmni; + __kernel_ulong_t shmmax; + __kernel_ulong_t shmmin; + __kernel_ulong_t shmmni; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - unsigned long shmseg; - unsigned long shmall; - unsigned long __unused1; - unsigned long __unused2; + __kernel_ulong_t shmseg; + __kernel_ulong_t shmall; + __kernel_ulong_t __unused1; + __kernel_ulong_t __unused2; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - unsigned long __unused3; - unsigned long __unused4; + __kernel_ulong_t __unused3; + __kernel_ulong_t __unused4; }; #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-generic/socket.h b/libc/kernel/uapi/asm-generic/socket.h index 997db0017..93daf8382 100644 --- a/libc/kernel/uapi/asm-generic/socket.h +++ b/libc/kernel/uapi/asm-generic/socket.h @@ -86,4 +86,8 @@ #define SO_LOCK_FILTER 44 #define SO_SELECT_ERR_QUEUE 45 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SO_BUSY_POLL 46 +#define SO_MAX_PACING_RATE 47 +#define SO_BPF_EXTENSIONS 48 #endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-generic/statfs.h b/libc/kernel/uapi/asm-generic/statfs.h index 860e58461..1c8c58906 100644 --- a/libc/kernel/uapi/asm-generic/statfs.h +++ b/libc/kernel/uapi/asm-generic/statfs.h @@ -22,7 +22,7 @@ #ifndef __statfs_word /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #if __BITS_PER_LONG == 64 -#define __statfs_word long +#define __statfs_word __kernel_long_t #else #define __statfs_word __u32 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-generic/unistd.h b/libc/kernel/uapi/asm-generic/unistd.h index 781941bb4..becc82d14 100644 --- a/libc/kernel/uapi/asm-generic/unistd.h +++ b/libc/kernel/uapi/asm-generic/unistd.h @@ -367,150 +367,153 @@ #define __NR_kcmp 272 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_finit_module 273 +#define __NR_sched_setattr 274 +#define __NR_sched_getattr 275 #undef __NR_syscalls -#define __NR_syscalls 274 -#ifdef __ARCH_WANT_SYSCALL_NO_AT /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define __NR_syscalls 276 +#ifdef __ARCH_WANT_SYSCALL_NO_AT #define __NR_open 1024 #define __NR_link 1025 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_unlink 1026 #define __NR_mknod 1027 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_chmod 1028 #define __NR_chown 1029 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mkdir 1030 #define __NR_rmdir 1031 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_lchown 1032 #define __NR_access 1033 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_rename 1034 #define __NR_readlink 1035 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_symlink 1036 #define __NR_utimes 1037 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR3264_stat 1038 #define __NR3264_lstat 1039 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #undef __NR_syscalls #define __NR_syscalls (__NR3264_lstat+1) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #ifdef __ARCH_WANT_SYSCALL_NO_FLAGS -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_pipe 1040 #define __NR_dup2 1041 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_epoll_create 1042 #define __NR_inotify_init 1043 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_eventfd 1044 #define __NR_signalfd 1045 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #undef __NR_syscalls #define __NR_syscalls (__NR_signalfd+1) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #if (__BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT)) && defined(__ARCH_WANT_SYSCALL_OFF_T) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sendfile 1046 #define __NR_ftruncate 1047 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_truncate 1048 #define __NR_stat 1049 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_lstat 1050 #define __NR_fstat 1051 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fcntl 1052 #define __NR_fadvise64 1053 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __ARCH_WANT_SYS_FADVISE64 #define __NR_newfstatat 1054 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __ARCH_WANT_SYS_NEWFSTATAT #define __NR_fstatfs 1055 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_statfs 1056 #define __NR_lseek 1057 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mmap 1058 #undef __NR_syscalls +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_syscalls (__NR_mmap+1) #endif -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifdef __ARCH_WANT_SYSCALL_DEPRECATED #define __NR_alarm 1059 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __ARCH_WANT_SYS_ALARM #define __NR_getpgrp 1060 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __ARCH_WANT_SYS_GETPGRP #define __NR_pause 1061 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __ARCH_WANT_SYS_PAUSE #define __NR_time 1062 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __ARCH_WANT_SYS_TIME #define __ARCH_WANT_COMPAT_SYS_TIME +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_utime 1063 #define __ARCH_WANT_SYS_UTIME -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_creat 1064 #define __NR_getdents 1065 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __ARCH_WANT_SYS_GETDENTS #define __NR_futimesat 1066 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_select 1067 #define __ARCH_WANT_SYS_SELECT +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_poll 1068 #define __NR_epoll_wait 1069 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_ustat 1070 #define __NR_vfork 1071 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_oldwait4 1072 #define __NR_recv 1073 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_send 1074 #define __NR_bdflush 1075 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_umount 1076 #define __ARCH_WANT_SYS_OLDUMOUNT -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_uselib 1077 #define __NR__sysctl 1078 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fork 1079 #undef __NR_syscalls -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_syscalls (__NR_fork+1) #endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT) #define __NR_fcntl __NR3264_fcntl -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_statfs __NR3264_statfs #define __NR_fstatfs __NR3264_fstatfs +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_truncate __NR3264_truncate #define __NR_ftruncate __NR3264_ftruncate -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_lseek __NR3264_lseek #define __NR_sendfile __NR3264_sendfile +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_newfstatat __NR3264_fstatat #define __NR_fstat __NR3264_fstat -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mmap __NR3264_mmap #define __NR_fadvise64 __NR3264_fadvise64 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifdef __NR3264_stat #define __NR_stat __NR3264_stat -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_lstat __NR3264_lstat #endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #else #define __NR_fcntl64 __NR3264_fcntl -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_statfs64 __NR3264_statfs #define __NR_fstatfs64 __NR3264_fstatfs +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_truncate64 __NR3264_truncate #define __NR_ftruncate64 __NR3264_ftruncate -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_llseek __NR3264_lseek #define __NR_sendfile64 __NR3264_sendfile +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fstatat64 __NR3264_fstatat #define __NR_fstat64 __NR3264_fstat -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mmap2 __NR3264_mmap #define __NR_fadvise64_64 __NR3264_fadvise64 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifdef __NR3264_stat #define __NR_stat64 __NR3264_stat -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_lstat64 __NR3264_lstat #endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif diff --git a/libc/kernel/uapi/asm-mips/asm/auxvec.h b/libc/kernel/uapi/asm-mips/asm/auxvec.h index 0c0490184..2fa0e6b18 100644 --- a/libc/kernel/uapi/asm-mips/asm/auxvec.h +++ b/libc/kernel/uapi/asm-mips/asm/auxvec.h @@ -16,6 +16,4 @@ *** **************************************************************************** ****************************************************************************/ -#ifndef _ASM_AUXVEC_H -#define _ASM_AUXVEC_H -#endif +#include diff --git a/libc/kernel/uapi/asm-mips/asm/fcntl.h b/libc/kernel/uapi/asm-mips/asm/fcntl.h index e77f79acb..02ea3ac69 100644 --- a/libc/kernel/uapi/asm-mips/asm/fcntl.h +++ b/libc/kernel/uapi/asm-mips/asm/fcntl.h @@ -16,51 +16,53 @@ *** **************************************************************************** ****************************************************************************/ -#ifndef _ASM_FCNTL_H -#define _ASM_FCNTL_H +#ifndef _UAPI_ASM_FCNTL_H +#define _UAPI_ASM_FCNTL_H +#include #define O_APPEND 0x0008 -#define O_DSYNC 0x0010 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define O_DSYNC 0x0010 #define O_NONBLOCK 0x0080 #define O_CREAT 0x0100 #define O_TRUNC 0x0200 -#define O_EXCL 0x0400 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define O_EXCL 0x0400 #define O_NOCTTY 0x0800 #define FASYNC 0x1000 #define O_LARGEFILE 0x2000 -#define __O_SYNC 0x4000 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define __O_SYNC 0x4000 #define O_SYNC (__O_SYNC|O_DSYNC) #define O_DIRECT 0x8000 #define F_GETLK 14 -#define F_SETLK 6 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define F_SETLK 6 #define F_SETLKW 7 #define F_SETOWN 24 #define F_GETOWN 23 -#ifndef __mips64 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#ifndef __mips64 #define F_GETLK64 33 #define F_SETLK64 34 #define F_SETLKW64 35 -#endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#ifdef _ABIO32 +#endif +#if _MIPS_SIM != _MIPS_SIM_ABI64 #include struct flock { - short l_type; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + short l_type; short l_whence; __kernel_off_t l_start; __kernel_off_t l_len; - long l_sysid; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + long l_sysid; __kernel_pid_t l_pid; long pad[4]; }; -#define HAVE_ARCH_STRUCT_FLOCK /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define HAVE_ARCH_STRUCT_FLOCK #endif #include #endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-mips/asm/inst.h b/libc/kernel/uapi/asm-mips/asm/inst.h index 43e9a500c..c46d09b48 100644 --- a/libc/kernel/uapi/asm-mips/asm/inst.h +++ b/libc/kernel/uapi/asm-mips/asm/inst.h @@ -97,293 +97,298 @@ enum rt_op { enum cop_op { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ mfc_op = 0x00, dmfc_op = 0x01, - cfc_op = 0x02, mtc_op = 0x04, - dmtc_op = 0x05, ctc_op = 0x06, - bc_op = 0x08, cop_op = 0x10, + cfc_op = 0x02, mfhc_op = 0x03, + mtc_op = 0x04, dmtc_op = 0x05, + ctc_op = 0x06, mthc_op = 0x07, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + bc_op = 0x08, cop_op = 0x10, copm_op = 0x18 }; enum bcop_op { - bcf_op, bct_op, bcfl_op, bctl_op /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + bcf_op, bct_op, bcfl_op, bctl_op }; enum cop0_coi_func { tlbr_op = 0x01, tlbwi_op = 0x02, - tlbwr_op = 0x06, tlbp_op = 0x08, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + tlbwr_op = 0x06, tlbp_op = 0x08, rfe_op = 0x10, eret_op = 0x18 }; enum cop0_com_func { - tlbr1_op = 0x01, tlbw_op = 0x02, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + tlbr1_op = 0x01, tlbw_op = 0x02, tlbp1_op = 0x08, dctr_op = 0x09, dctw_op = 0x0a }; -enum cop1_fmt { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum cop1_fmt { s_fmt, d_fmt, e_fmt, q_fmt, w_fmt, l_fmt }; -enum cop1_sdw_func { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum cop1_sdw_func { fadd_op = 0x00, fsub_op = 0x01, fmul_op = 0x02, fdiv_op = 0x03, fsqrt_op = 0x04, fabs_op = 0x05, - fmov_op = 0x06, fneg_op = 0x07, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + fmov_op = 0x06, fneg_op = 0x07, froundl_op = 0x08, ftruncl_op = 0x09, fceill_op = 0x0a, ffloorl_op = 0x0b, fround_op = 0x0c, ftrunc_op = 0x0d, - fceil_op = 0x0e, ffloor_op = 0x0f, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + fceil_op = 0x0e, ffloor_op = 0x0f, fmovc_op = 0x11, fmovz_op = 0x12, fmovn_op = 0x13, frecip_op = 0x15, frsqrt_op = 0x16, fcvts_op = 0x20, - fcvtd_op = 0x21, fcvte_op = 0x22, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + fcvtd_op = 0x21, fcvte_op = 0x22, fcvtw_op = 0x24, fcvtl_op = 0x25, fcmp_op = 0x30 }; -enum cop1x_func { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum cop1x_func { lwxc1_op = 0x00, ldxc1_op = 0x01, - pfetch_op = 0x07, swxc1_op = 0x08, - sdxc1_op = 0x09, madd_s_op = 0x20, - madd_d_op = 0x21, madd_e_op = 0x22, + swxc1_op = 0x08, sdxc1_op = 0x09, + pfetch_op = 0x0f, madd_s_op = 0x20, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + madd_d_op = 0x21, madd_e_op = 0x22, msub_s_op = 0x28, msub_d_op = 0x29, msub_e_op = 0x2a, nmadd_s_op = 0x30, nmadd_d_op = 0x31, nmadd_e_op = 0x32, - nmsub_s_op = 0x38, nmsub_d_op = 0x39, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + nmsub_s_op = 0x38, nmsub_d_op = 0x39, nmsub_e_op = 0x3a }; enum mad_func { - madd_fp_op = 0x08, msub_fp_op = 0x0a, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + madd_fp_op = 0x08, msub_fp_op = 0x0a, nmadd_fp_op = 0x0c, nmsub_fp_op = 0x0e }; enum lx_func { - lwx_op = 0x00, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + lwx_op = 0x00, lhx_op = 0x04, lbux_op = 0x06, ldx_op = 0x08, - lwux_op = 0x10, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + lwux_op = 0x10, lhux_op = 0x14, lbx_op = 0x16, }; -enum mm_major_op { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum mm_major_op { mm_pool32a_op, mm_pool16a_op, mm_lbu16_op, mm_move16_op, mm_addi32_op, mm_lbu32_op, mm_sb32_op, mm_lb32_op, mm_pool32b_op, mm_pool16b_op, mm_lhu16_op, mm_andi16_op, - mm_addiu32_op, mm_lhu32_op, mm_sh32_op, mm_lh32_op, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_addiu32_op, mm_lhu32_op, mm_sh32_op, mm_lh32_op, mm_pool32i_op, mm_pool16c_op, mm_lwsp16_op, mm_pool16d_op, mm_ori32_op, mm_pool32f_op, mm_reserved1_op, mm_reserved2_op, mm_pool32c_op, mm_lwgp16_op, mm_lw16_op, mm_pool16e_op, - mm_xori32_op, mm_jals32_op, mm_addiupc_op, mm_reserved3_op, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_xori32_op, mm_jals32_op, mm_addiupc_op, mm_reserved3_op, mm_reserved4_op, mm_pool16f_op, mm_sb16_op, mm_beqz16_op, mm_slti32_op, mm_beq32_op, mm_swc132_op, mm_lwc132_op, mm_reserved5_op, mm_reserved6_op, mm_sh16_op, mm_bnez16_op, - mm_sltiu32_op, mm_bne32_op, mm_sdc132_op, mm_ldc132_op, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_sltiu32_op, mm_bne32_op, mm_sdc132_op, mm_ldc132_op, mm_reserved7_op, mm_reserved8_op, mm_swsp16_op, mm_b16_op, mm_andi32_op, mm_j32_op, mm_sd32_op, mm_ld32_op, mm_reserved11_op, mm_reserved12_op, mm_sw16_op, mm_li16_op, - mm_jalx32_op, mm_jal32_op, mm_sw32_op, mm_lw32_op, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_jalx32_op, mm_jal32_op, mm_sw32_op, mm_lw32_op, }; enum mm_32i_minor_op { mm_bltz_op, mm_bltzal_op, mm_bgez_op, mm_bgezal_op, - mm_blez_op, mm_bnezc_op, mm_bgtz_op, mm_beqzc_op, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_blez_op, mm_bnezc_op, mm_bgtz_op, mm_beqzc_op, mm_tlti_op, mm_tgei_op, mm_tltiu_op, mm_tgeiu_op, mm_tnei_op, mm_lui_op, mm_teqi_op, mm_reserved13_op, mm_synci_op, mm_bltzals_op, mm_reserved14_op, mm_bgezals_op, - mm_bc2f_op, mm_bc2t_op, mm_reserved15_op, mm_reserved16_op, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_bc2f_op, mm_bc2t_op, mm_reserved15_op, mm_reserved16_op, mm_reserved17_op, mm_reserved18_op, mm_bposge64_op, mm_bposge32_op, mm_bc1f_op, mm_bc1t_op, mm_reserved19_op, mm_reserved20_op, mm_bc1any2f_op, mm_bc1any2t_op, mm_bc1any4f_op, mm_bc1any4t_op, -}; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +}; enum mm_32a_minor_op { mm_sll32_op = 0x000, mm_ins_op = 0x00c, - mm_ext_op = 0x02c, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_ext_op = 0x02c, mm_pool32axf_op = 0x03c, mm_srl32_op = 0x040, mm_sra_op = 0x080, - mm_rotr_op = 0x0c0, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_rotr_op = 0x0c0, mm_lwxs_op = 0x118, mm_addu32_op = 0x150, mm_subu32_op = 0x1d0, - mm_and_op = 0x250, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_and_op = 0x250, mm_or32_op = 0x290, mm_xor32_op = 0x310, }; -enum mm_32b_func { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum mm_32b_func { mm_lwc2_func = 0x0, mm_lwp_func = 0x1, mm_ldc2_func = 0x2, - mm_ldp_func = 0x4, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_ldp_func = 0x4, mm_lwm32_func = 0x5, mm_cache_func = 0x6, mm_ldm_func = 0x7, - mm_swc2_func = 0x8, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_swc2_func = 0x8, mm_swp_func = 0x9, mm_sdc2_func = 0xa, mm_sdp_func = 0xc, - mm_swm32_func = 0xd, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_swm32_func = 0xd, mm_sdm_func = 0xf, }; enum mm_32c_func { - mm_pref_func = 0x2, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_pref_func = 0x2, mm_ll_func = 0x3, mm_swr_func = 0x9, mm_sc_func = 0xb, - mm_lwu_func = 0xe, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_lwu_func = 0xe, }; enum mm_32axf_minor_op { mm_mfc0_op = 0x003, - mm_mtc0_op = 0x00b, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_mtc0_op = 0x00b, mm_tlbp_op = 0x00d, mm_jalr_op = 0x03c, mm_tlbr_op = 0x04d, - mm_jalrhb_op = 0x07c, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_jalrhb_op = 0x07c, mm_tlbwi_op = 0x08d, mm_tlbwr_op = 0x0cd, mm_jalrs_op = 0x13c, - mm_jalrshb_op = 0x17c, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_jalrshb_op = 0x17c, mm_syscall_op = 0x22d, mm_eret_op = 0x3cd, }; -enum mm_32f_minor_op { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum mm_32f_minor_op { mm_32f_00_op = 0x00, mm_32f_01_op = 0x01, mm_32f_02_op = 0x02, - mm_32f_10_op = 0x08, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_32f_10_op = 0x08, mm_32f_11_op = 0x09, mm_32f_12_op = 0x0a, mm_32f_20_op = 0x10, - mm_32f_30_op = 0x18, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_32f_30_op = 0x18, mm_32f_40_op = 0x20, mm_32f_41_op = 0x21, mm_32f_42_op = 0x22, - mm_32f_50_op = 0x28, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_32f_50_op = 0x28, mm_32f_51_op = 0x29, mm_32f_52_op = 0x2a, mm_32f_60_op = 0x30, - mm_32f_70_op = 0x38, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_32f_70_op = 0x38, mm_32f_73_op = 0x3b, mm_32f_74_op = 0x3c, }; -enum mm_32f_10_minor_op { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum mm_32f_10_minor_op { mm_lwxc1_op = 0x1, mm_swxc1_op, mm_ldxc1_op, - mm_sdxc1_op, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_sdxc1_op, mm_luxc1_op, mm_suxc1_op, }; -enum mm_32f_func { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum mm_32f_func { mm_lwxc1_func = 0x048, mm_swxc1_func = 0x088, mm_ldxc1_func = 0x0c8, - mm_sdxc1_func = 0x108, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_sdxc1_func = 0x108, }; enum mm_32f_40_minor_op { mm_fmovf_op, - mm_fmovt_op, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_fmovt_op, }; enum mm_32f_60_minor_op { mm_fadd_op, - mm_fsub_op, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_fsub_op, mm_fmul_op, mm_fdiv_op, }; -enum mm_32f_70_minor_op { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum mm_32f_70_minor_op { mm_fmovn_op, mm_fmovz_op, }; -enum mm_32f_73_minor_op { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum mm_32f_73_minor_op { mm_fmov0_op = 0x01, mm_fcvtl_op = 0x04, mm_movf0_op = 0x05, - mm_frsqrt_op = 0x08, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_frsqrt_op = 0x08, mm_ffloorl_op = 0x0c, mm_fabs0_op = 0x0d, mm_fcvtw_op = 0x24, - mm_movt0_op = 0x25, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_movt0_op = 0x25, mm_fsqrt_op = 0x28, mm_ffloorw_op = 0x2c, mm_fneg0_op = 0x2d, - mm_cfc1_op = 0x40, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_cfc1_op = 0x40, mm_frecip_op = 0x48, mm_fceill_op = 0x4c, mm_fcvtd0_op = 0x4d, - mm_ctc1_op = 0x60, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_ctc1_op = 0x60, mm_fceilw_op = 0x6c, mm_fcvts0_op = 0x6d, mm_mfc1_op = 0x80, - mm_fmov1_op = 0x81, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_fmov1_op = 0x81, mm_movf1_op = 0x85, mm_ftruncl_op = 0x8c, mm_fabs1_op = 0x8d, - mm_mtc1_op = 0xa0, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_mtc1_op = 0xa0, mm_movt1_op = 0xa5, mm_ftruncw_op = 0xac, mm_fneg1_op = 0xad, - mm_froundl_op = 0xcc, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + mm_mfhc1_op = 0xc0, + mm_froundl_op = 0xcc, mm_fcvtd1_op = 0xcd, + mm_mthc1_op = 0xe0, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ mm_froundw_op = 0xec, mm_fcvts1_op = 0xed, }; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ enum mm_16c_minor_op { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ mm_lwm16_op = 0x04, mm_swm16_op = 0x05, - mm_jr16_op = 0x18, + mm_jr16_op = 0x0c, + mm_jrc_op = 0x0d, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - mm_jrc_op = 0x1a, - mm_jalr16_op = 0x1c, - mm_jalrs16_op = 0x1e, + mm_jalr16_op = 0x0e, + mm_jalrs16_op = 0x0f, + mm_jraddiusp_op = 0x18, }; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ enum mm_16d_minor_op { diff --git a/libc/kernel/uapi/asm-mips/asm/msgbuf.h b/libc/kernel/uapi/asm-mips/asm/msgbuf.h index 624bddf22..efae148c4 100644 --- a/libc/kernel/uapi/asm-mips/asm/msgbuf.h +++ b/libc/kernel/uapi/asm-mips/asm/msgbuf.h @@ -22,17 +22,17 @@ struct msqid64_ds { struct ipc64_perm msg_perm; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __kernel_time_t msg_stime; -#ifdef _ABIO32 +#ifndef __mips64 unsigned long __unused1; #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __kernel_time_t msg_rtime; -#ifdef _ABIO32 +#ifndef __mips64 unsigned long __unused2; #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __kernel_time_t msg_ctime; -#ifdef _ABIO32 +#ifndef __mips64 unsigned long __unused3; #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-mips/asm/resource.h b/libc/kernel/uapi/asm-mips/asm/resource.h index ff7cfd5d2..728a51999 100644 --- a/libc/kernel/uapi/asm-mips/asm/resource.h +++ b/libc/kernel/uapi/asm-mips/asm/resource.h @@ -24,7 +24,7 @@ #define RLIMIT_RSS 7 #define RLIMIT_NPROC 8 #define RLIMIT_MEMLOCK 9 -#ifdef _ABIO32 +#ifndef __mips64 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define RLIM_INFINITY 0x7fffffffUL #endif diff --git a/libc/kernel/uapi/asm-mips/asm/siginfo.h b/libc/kernel/uapi/asm-mips/asm/siginfo.h index 4abc7af27..599c875de 100644 --- a/libc/kernel/uapi/asm-mips/asm/siginfo.h +++ b/libc/kernel/uapi/asm-mips/asm/siginfo.h @@ -24,82 +24,91 @@ #define HAVE_ARCH_SIGINFO_T #define HAVE_ARCH_COPY_SIGINFO struct siginfo; -#ifdef _ABIO32 +#if _MIPS_SZLONG == 32 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int)) -#endif -#ifdef __LP64__ +#elif _MIPS_SZLONG == 64 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) +#else /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#error _MIPS_SZLONG neither 32 nor 64 #endif +#define __ARCH_SIGSYS #include +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ typedef struct siginfo { int si_signo; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ int si_code; int si_errno; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ int __pad0[SI_MAX_SIZE / sizeof(int) - SI_PAD_SIZE - 3]; union { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ int _pad[SI_PAD_SIZE]; struct { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ pid_t _pid; __ARCH_SI_UID_T _uid; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } _kill; struct { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ timer_t _tid; int _overrun; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)]; sigval_t _sigval; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ int _sys_private; } _timer; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct { pid_t _pid; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __ARCH_SI_UID_T _uid; sigval_t _sigval; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } _rt; struct { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ pid_t _pid; __ARCH_SI_UID_T _uid; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ int _status; clock_t _utime; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ clock_t _stime; } _sigchld; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct { pid_t _pid; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ clock_t _utime; int _status; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ clock_t _stime; } _irix_sigchld; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct { void __user *_addr; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifdef __ARCH_SI_TRAPNO int _trapno; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif short _addr_lsb; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } _sigfault; struct { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __ARCH_SI_BAND_T _band; int _fd; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } _sigpoll; + struct { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + void __user *_call_addr; + int _syscall; + unsigned int _arch; + } _sigsys; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } _sifields; } siginfo_t; #undef SI_ASYNCIO -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #undef SI_TIMER +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #undef SI_MESGQ #define SI_ASYNCIO -2 #define SI_TIMER __SI_CODE(__SI_TIMER, -3) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SI_MESGQ __SI_CODE(__SI_MESGQ, -4) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif diff --git a/libc/kernel/uapi/asm-mips/asm/socket.h b/libc/kernel/uapi/asm-mips/asm/socket.h index e65f226a6..38e4e63a9 100644 --- a/libc/kernel/uapi/asm-mips/asm/socket.h +++ b/libc/kernel/uapi/asm-mips/asm/socket.h @@ -84,5 +84,8 @@ #define SO_NOFCS 43 #define SO_LOCK_FILTER 44 #define SO_SELECT_ERR_QUEUE 45 -#endif +#define SO_BUSY_POLL 46 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SO_MAX_PACING_RATE 47 +#define SO_BPF_EXTENSIONS 48 +#endif diff --git a/libc/kernel/uapi/asm-mips/asm/swab.h b/libc/kernel/uapi/asm-mips/asm/swab.h index d1883240d..41660d056 100644 --- a/libc/kernel/uapi/asm-mips/asm/swab.h +++ b/libc/kernel/uapi/asm-mips/asm/swab.h @@ -22,4 +22,13 @@ #include /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __SWAB_64_THRU_32__ +#if defined(__mips_isa_rev) && __mips_isa_rev >= 2 +#define __arch_swab16 __arch_swab16 +#define __arch_swab32 __arch_swab32 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#ifdef __mips64 +#define __arch_swab64 __arch_swab64 +#endif +#endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif diff --git a/libc/kernel/uapi/asm-mips/asm/types.h b/libc/kernel/uapi/asm-mips/asm/types.h index 9ef7b7c91..45fea6c6b 100644 --- a/libc/kernel/uapi/asm-mips/asm/types.h +++ b/libc/kernel/uapi/asm-mips/asm/types.h @@ -18,6 +18,11 @@ ****************************************************************************/ #ifndef _UAPI_ASM_TYPES_H #define _UAPI_ASM_TYPES_H +#if _MIPS_SZLONG == 64 +#include +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#else #include #endif +#endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-mips/asm/ucontext.h b/libc/kernel/uapi/asm-mips/asm/ucontext.h new file mode 100644 index 000000000..aa4d67dd1 --- /dev/null +++ b/libc/kernel/uapi/asm-mips/asm/ucontext.h @@ -0,0 +1,19 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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! + *** + **************************************************************************** + ****************************************************************************/ +#include diff --git a/libc/kernel/uapi/asm-mips/asm/unistd.h b/libc/kernel/uapi/asm-mips/asm/unistd.h index 0cdb63762..37c3da15d 100644 --- a/libc/kernel/uapi/asm-mips/asm/unistd.h +++ b/libc/kernel/uapi/asm-mips/asm/unistd.h @@ -457,403 +457,408 @@ #define __NR_kcmp (__NR_Linux + 347) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_finit_module (__NR_Linux + 348) -#define __NR_Linux_syscalls 348 +#define __NR_sched_setattr (__NR_Linux + 349) +#define __NR_sched_getattr (__NR_Linux + 350) +#define __NR_Linux_syscalls 350 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #define __NR_O32_Linux 4000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define __NR_O32_Linux_syscalls 348 +#define __NR_O32_Linux_syscalls 350 #if _MIPS_SIM == _MIPS_SIM_ABI64 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_Linux 5000 #define __NR_read (__NR_Linux + 0) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_write (__NR_Linux + 1) #define __NR_open (__NR_Linux + 2) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_close (__NR_Linux + 3) #define __NR_stat (__NR_Linux + 4) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fstat (__NR_Linux + 5) #define __NR_lstat (__NR_Linux + 6) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_poll (__NR_Linux + 7) #define __NR_lseek (__NR_Linux + 8) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mmap (__NR_Linux + 9) #define __NR_mprotect (__NR_Linux + 10) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_munmap (__NR_Linux + 11) #define __NR_brk (__NR_Linux + 12) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_rt_sigaction (__NR_Linux + 13) #define __NR_rt_sigprocmask (__NR_Linux + 14) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_ioctl (__NR_Linux + 15) #define __NR_pread64 (__NR_Linux + 16) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_pwrite64 (__NR_Linux + 17) #define __NR_readv (__NR_Linux + 18) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_writev (__NR_Linux + 19) #define __NR_access (__NR_Linux + 20) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_pipe (__NR_Linux + 21) #define __NR__newselect (__NR_Linux + 22) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sched_yield (__NR_Linux + 23) #define __NR_mremap (__NR_Linux + 24) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_msync (__NR_Linux + 25) #define __NR_mincore (__NR_Linux + 26) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_madvise (__NR_Linux + 27) #define __NR_shmget (__NR_Linux + 28) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_shmat (__NR_Linux + 29) #define __NR_shmctl (__NR_Linux + 30) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_dup (__NR_Linux + 31) #define __NR_dup2 (__NR_Linux + 32) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_pause (__NR_Linux + 33) #define __NR_nanosleep (__NR_Linux + 34) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_getitimer (__NR_Linux + 35) #define __NR_setitimer (__NR_Linux + 36) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_alarm (__NR_Linux + 37) #define __NR_getpid (__NR_Linux + 38) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sendfile (__NR_Linux + 39) #define __NR_socket (__NR_Linux + 40) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_connect (__NR_Linux + 41) #define __NR_accept (__NR_Linux + 42) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sendto (__NR_Linux + 43) #define __NR_recvfrom (__NR_Linux + 44) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sendmsg (__NR_Linux + 45) #define __NR_recvmsg (__NR_Linux + 46) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_shutdown (__NR_Linux + 47) #define __NR_bind (__NR_Linux + 48) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_listen (__NR_Linux + 49) #define __NR_getsockname (__NR_Linux + 50) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_getpeername (__NR_Linux + 51) #define __NR_socketpair (__NR_Linux + 52) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_setsockopt (__NR_Linux + 53) #define __NR_getsockopt (__NR_Linux + 54) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_clone (__NR_Linux + 55) #define __NR_fork (__NR_Linux + 56) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_execve (__NR_Linux + 57) #define __NR_exit (__NR_Linux + 58) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_wait4 (__NR_Linux + 59) #define __NR_kill (__NR_Linux + 60) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_uname (__NR_Linux + 61) #define __NR_semget (__NR_Linux + 62) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_semop (__NR_Linux + 63) #define __NR_semctl (__NR_Linux + 64) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_shmdt (__NR_Linux + 65) #define __NR_msgget (__NR_Linux + 66) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_msgsnd (__NR_Linux + 67) #define __NR_msgrcv (__NR_Linux + 68) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_msgctl (__NR_Linux + 69) #define __NR_fcntl (__NR_Linux + 70) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_flock (__NR_Linux + 71) #define __NR_fsync (__NR_Linux + 72) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fdatasync (__NR_Linux + 73) #define __NR_truncate (__NR_Linux + 74) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_ftruncate (__NR_Linux + 75) #define __NR_getdents (__NR_Linux + 76) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_getcwd (__NR_Linux + 77) #define __NR_chdir (__NR_Linux + 78) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fchdir (__NR_Linux + 79) #define __NR_rename (__NR_Linux + 80) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mkdir (__NR_Linux + 81) #define __NR_rmdir (__NR_Linux + 82) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_creat (__NR_Linux + 83) #define __NR_link (__NR_Linux + 84) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_unlink (__NR_Linux + 85) #define __NR_symlink (__NR_Linux + 86) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_readlink (__NR_Linux + 87) #define __NR_chmod (__NR_Linux + 88) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fchmod (__NR_Linux + 89) #define __NR_chown (__NR_Linux + 90) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fchown (__NR_Linux + 91) #define __NR_lchown (__NR_Linux + 92) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_umask (__NR_Linux + 93) #define __NR_gettimeofday (__NR_Linux + 94) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_getrlimit (__NR_Linux + 95) #define __NR_getrusage (__NR_Linux + 96) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sysinfo (__NR_Linux + 97) #define __NR_times (__NR_Linux + 98) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_ptrace (__NR_Linux + 99) #define __NR_getuid (__NR_Linux + 100) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_syslog (__NR_Linux + 101) #define __NR_getgid (__NR_Linux + 102) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_setuid (__NR_Linux + 103) #define __NR_setgid (__NR_Linux + 104) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_geteuid (__NR_Linux + 105) #define __NR_getegid (__NR_Linux + 106) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_setpgid (__NR_Linux + 107) #define __NR_getppid (__NR_Linux + 108) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_getpgrp (__NR_Linux + 109) #define __NR_setsid (__NR_Linux + 110) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_setreuid (__NR_Linux + 111) #define __NR_setregid (__NR_Linux + 112) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_getgroups (__NR_Linux + 113) #define __NR_setgroups (__NR_Linux + 114) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_setresuid (__NR_Linux + 115) #define __NR_getresuid (__NR_Linux + 116) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_setresgid (__NR_Linux + 117) #define __NR_getresgid (__NR_Linux + 118) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_getpgid (__NR_Linux + 119) #define __NR_setfsuid (__NR_Linux + 120) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_setfsgid (__NR_Linux + 121) #define __NR_getsid (__NR_Linux + 122) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_capget (__NR_Linux + 123) #define __NR_capset (__NR_Linux + 124) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_rt_sigpending (__NR_Linux + 125) #define __NR_rt_sigtimedwait (__NR_Linux + 126) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_rt_sigqueueinfo (__NR_Linux + 127) #define __NR_rt_sigsuspend (__NR_Linux + 128) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sigaltstack (__NR_Linux + 129) #define __NR_utime (__NR_Linux + 130) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mknod (__NR_Linux + 131) #define __NR_personality (__NR_Linux + 132) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_ustat (__NR_Linux + 133) #define __NR_statfs (__NR_Linux + 134) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fstatfs (__NR_Linux + 135) #define __NR_sysfs (__NR_Linux + 136) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_getpriority (__NR_Linux + 137) #define __NR_setpriority (__NR_Linux + 138) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sched_setparam (__NR_Linux + 139) #define __NR_sched_getparam (__NR_Linux + 140) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sched_setscheduler (__NR_Linux + 141) #define __NR_sched_getscheduler (__NR_Linux + 142) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sched_get_priority_max (__NR_Linux + 143) #define __NR_sched_get_priority_min (__NR_Linux + 144) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sched_rr_get_interval (__NR_Linux + 145) #define __NR_mlock (__NR_Linux + 146) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_munlock (__NR_Linux + 147) #define __NR_mlockall (__NR_Linux + 148) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_munlockall (__NR_Linux + 149) #define __NR_vhangup (__NR_Linux + 150) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_pivot_root (__NR_Linux + 151) #define __NR__sysctl (__NR_Linux + 152) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_prctl (__NR_Linux + 153) #define __NR_adjtimex (__NR_Linux + 154) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_setrlimit (__NR_Linux + 155) #define __NR_chroot (__NR_Linux + 156) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sync (__NR_Linux + 157) #define __NR_acct (__NR_Linux + 158) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_settimeofday (__NR_Linux + 159) #define __NR_mount (__NR_Linux + 160) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_umount2 (__NR_Linux + 161) #define __NR_swapon (__NR_Linux + 162) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_swapoff (__NR_Linux + 163) #define __NR_reboot (__NR_Linux + 164) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sethostname (__NR_Linux + 165) #define __NR_setdomainname (__NR_Linux + 166) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_create_module (__NR_Linux + 167) #define __NR_init_module (__NR_Linux + 168) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_delete_module (__NR_Linux + 169) #define __NR_get_kernel_syms (__NR_Linux + 170) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_query_module (__NR_Linux + 171) #define __NR_quotactl (__NR_Linux + 172) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_nfsservctl (__NR_Linux + 173) #define __NR_getpmsg (__NR_Linux + 174) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_putpmsg (__NR_Linux + 175) #define __NR_afs_syscall (__NR_Linux + 176) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_reserved177 (__NR_Linux + 177) #define __NR_gettid (__NR_Linux + 178) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_readahead (__NR_Linux + 179) #define __NR_setxattr (__NR_Linux + 180) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_lsetxattr (__NR_Linux + 181) #define __NR_fsetxattr (__NR_Linux + 182) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_getxattr (__NR_Linux + 183) #define __NR_lgetxattr (__NR_Linux + 184) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fgetxattr (__NR_Linux + 185) #define __NR_listxattr (__NR_Linux + 186) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_llistxattr (__NR_Linux + 187) #define __NR_flistxattr (__NR_Linux + 188) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_removexattr (__NR_Linux + 189) #define __NR_lremovexattr (__NR_Linux + 190) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fremovexattr (__NR_Linux + 191) #define __NR_tkill (__NR_Linux + 192) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_reserved193 (__NR_Linux + 193) #define __NR_futex (__NR_Linux + 194) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sched_setaffinity (__NR_Linux + 195) #define __NR_sched_getaffinity (__NR_Linux + 196) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_cacheflush (__NR_Linux + 197) #define __NR_cachectl (__NR_Linux + 198) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sysmips (__NR_Linux + 199) #define __NR_io_setup (__NR_Linux + 200) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_io_destroy (__NR_Linux + 201) #define __NR_io_getevents (__NR_Linux + 202) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_io_submit (__NR_Linux + 203) #define __NR_io_cancel (__NR_Linux + 204) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_exit_group (__NR_Linux + 205) #define __NR_lookup_dcookie (__NR_Linux + 206) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_epoll_create (__NR_Linux + 207) #define __NR_epoll_ctl (__NR_Linux + 208) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_epoll_wait (__NR_Linux + 209) #define __NR_remap_file_pages (__NR_Linux + 210) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_rt_sigreturn (__NR_Linux + 211) #define __NR_set_tid_address (__NR_Linux + 212) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_restart_syscall (__NR_Linux + 213) #define __NR_semtimedop (__NR_Linux + 214) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fadvise64 (__NR_Linux + 215) #define __NR_timer_create (__NR_Linux + 216) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_timer_settime (__NR_Linux + 217) #define __NR_timer_gettime (__NR_Linux + 218) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_timer_getoverrun (__NR_Linux + 219) #define __NR_timer_delete (__NR_Linux + 220) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_clock_settime (__NR_Linux + 221) #define __NR_clock_gettime (__NR_Linux + 222) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_clock_getres (__NR_Linux + 223) #define __NR_clock_nanosleep (__NR_Linux + 224) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_tgkill (__NR_Linux + 225) #define __NR_utimes (__NR_Linux + 226) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mbind (__NR_Linux + 227) #define __NR_get_mempolicy (__NR_Linux + 228) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_set_mempolicy (__NR_Linux + 229) #define __NR_mq_open (__NR_Linux + 230) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mq_unlink (__NR_Linux + 231) #define __NR_mq_timedsend (__NR_Linux + 232) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mq_timedreceive (__NR_Linux + 233) #define __NR_mq_notify (__NR_Linux + 234) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mq_getsetattr (__NR_Linux + 235) #define __NR_vserver (__NR_Linux + 236) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_waitid (__NR_Linux + 237) #define __NR_add_key (__NR_Linux + 239) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_request_key (__NR_Linux + 240) #define __NR_keyctl (__NR_Linux + 241) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_set_thread_area (__NR_Linux + 242) #define __NR_inotify_init (__NR_Linux + 243) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_inotify_add_watch (__NR_Linux + 244) #define __NR_inotify_rm_watch (__NR_Linux + 245) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_migrate_pages (__NR_Linux + 246) #define __NR_openat (__NR_Linux + 247) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_mkdirat (__NR_Linux + 248) #define __NR_mknodat (__NR_Linux + 249) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fchownat (__NR_Linux + 250) #define __NR_futimesat (__NR_Linux + 251) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_newfstatat (__NR_Linux + 252) #define __NR_unlinkat (__NR_Linux + 253) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_renameat (__NR_Linux + 254) #define __NR_linkat (__NR_Linux + 255) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_symlinkat (__NR_Linux + 256) #define __NR_readlinkat (__NR_Linux + 257) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fchmodat (__NR_Linux + 258) #define __NR_faccessat (__NR_Linux + 259) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_pselect6 (__NR_Linux + 260) #define __NR_ppoll (__NR_Linux + 261) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_unshare (__NR_Linux + 262) #define __NR_splice (__NR_Linux + 263) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sync_file_range (__NR_Linux + 264) #define __NR_tee (__NR_Linux + 265) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_vmsplice (__NR_Linux + 266) #define __NR_move_pages (__NR_Linux + 267) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_set_robust_list (__NR_Linux + 268) #define __NR_get_robust_list (__NR_Linux + 269) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_kexec_load (__NR_Linux + 270) #define __NR_getcpu (__NR_Linux + 271) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_epoll_pwait (__NR_Linux + 272) #define __NR_ioprio_set (__NR_Linux + 273) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_ioprio_get (__NR_Linux + 274) #define __NR_utimensat (__NR_Linux + 275) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_signalfd (__NR_Linux + 276) #define __NR_timerfd (__NR_Linux + 277) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_eventfd (__NR_Linux + 278) #define __NR_fallocate (__NR_Linux + 279) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_timerfd_create (__NR_Linux + 280) #define __NR_timerfd_gettime (__NR_Linux + 281) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_timerfd_settime (__NR_Linux + 282) #define __NR_signalfd4 (__NR_Linux + 283) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_eventfd2 (__NR_Linux + 284) #define __NR_epoll_create1 (__NR_Linux + 285) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_dup3 (__NR_Linux + 286) #define __NR_pipe2 (__NR_Linux + 287) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_inotify_init1 (__NR_Linux + 288) #define __NR_preadv (__NR_Linux + 289) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_pwritev (__NR_Linux + 290) #define __NR_rt_tgsigqueueinfo (__NR_Linux + 291) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_perf_event_open (__NR_Linux + 292) #define __NR_accept4 (__NR_Linux + 293) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_recvmmsg (__NR_Linux + 294) #define __NR_fanotify_init (__NR_Linux + 295) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_fanotify_mark (__NR_Linux + 296) #define __NR_prlimit64 (__NR_Linux + 297) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_name_to_handle_at (__NR_Linux + 298) #define __NR_open_by_handle_at (__NR_Linux + 299) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_clock_adjtime (__NR_Linux + 300) #define __NR_syncfs (__NR_Linux + 301) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_sendmmsg (__NR_Linux + 302) #define __NR_setns (__NR_Linux + 303) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_process_vm_readv (__NR_Linux + 304) #define __NR_process_vm_writev (__NR_Linux + 305) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_kcmp (__NR_Linux + 306) #define __NR_finit_module (__NR_Linux + 307) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_getdents64 (__NR_Linux + 308) -#define __NR_Linux_syscalls 308 +#define __NR_sched_setattr (__NR_Linux + 309) +#define __NR_sched_getattr (__NR_Linux + 310) +#define __NR_Linux_syscalls 310 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #define __NR_64_Linux 5000 -#define __NR_64_Linux_syscalls 308 +#define __NR_64_Linux_syscalls 310 #if _MIPS_SIM == _MIPS_SIM_NABI32 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_Linux 6000 @@ -1247,9 +1252,12 @@ #define __NR_kcmp (__NR_Linux + 311) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __NR_finit_module (__NR_Linux + 312) -#define __NR_Linux_syscalls 312 +#define __NR_sched_setattr (__NR_Linux + 313) +#define __NR_sched_getattr (__NR_Linux + 314) +#define __NR_Linux_syscalls 314 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #define __NR_N32_Linux 6000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define __NR_N32_Linux_syscalls 312 +#define __NR_N32_Linux_syscalls 314 #endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ diff --git a/libc/kernel/uapi/asm-x86/asm/bootparam.h b/libc/kernel/uapi/asm-x86/asm/bootparam.h index af98489e7..b576825e6 100644 --- a/libc/kernel/uapi/asm-x86/asm/bootparam.h +++ b/libc/kernel/uapi/asm-x86/asm/bootparam.h @@ -23,164 +23,167 @@ /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SETUP_DTB 2 #define SETUP_PCI 3 +#define SETUP_EFI 4 #define RAMDISK_IMAGE_START_MASK 0x07FF -#define RAMDISK_PROMPT_FLAG 0x8000 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define RAMDISK_PROMPT_FLAG 0x8000 #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 KEEP_SEGMENTS (1<<6) #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_32 (1<<2) #define XLF_EFI_HANDOVER_64 (1<<3) +#define XLF_EFI_KEXEC (1<<4) #ifndef __ASSEMBLY__ +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #include #include -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #include #include +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #include #include -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #include