aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include/mips-linux-any
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-08-08 23:39:00 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2024-08-08 23:39:00 +0200
commitc62a2ad2ecf59da73ef4e8c64c2df9fac340647b (patch)
tree5b6440141865a98e56b1d4cc79be1be60bc7812c /lib/libc/include/mips-linux-any
parentcf87a1a7cf57123aad533a73d8e0fa4d4916a674 (diff)
downloadzig-c62a2ad2ecf59da73ef4e8c64c2df9fac340647b.tar.gz
zig-c62a2ad2ecf59da73ef4e8c64c2df9fac340647b.zip
Update Linux kernel headers to 6.10.
Diffstat (limited to 'lib/libc/include/mips-linux-any')
-rw-r--r--lib/libc/include/mips-linux-any/asm/inst.h33
-rw-r--r--lib/libc/include/mips-linux-any/asm/kvm.h2
-rw-r--r--lib/libc/include/mips-linux-any/asm/mman.h2
-rw-r--r--lib/libc/include/mips-linux-any/asm/msgbuf.h2
-rw-r--r--lib/libc/include/mips-linux-any/asm/socket.h3
-rw-r--r--lib/libc/include/mips-linux-any/asm/unistd_n32.h12
-rw-r--r--lib/libc/include/mips-linux-any/asm/unistd_n64.h12
-rw-r--r--lib/libc/include/mips-linux-any/asm/unistd_o32.h12
8 files changed, 74 insertions, 4 deletions
diff --git a/lib/libc/include/mips-linux-any/asm/inst.h b/lib/libc/include/mips-linux-any/asm/inst.h
index 9b54b04f9c..ef42c55584 100644
--- a/lib/libc/include/mips-linux-any/asm/inst.h
+++ b/lib/libc/include/mips-linux-any/asm/inst.h
@@ -273,6 +273,27 @@ enum lx_func {
};
/*
+ * func field for special2 MXU opcodes (Ingenic XBurst MXU).
+ */
+enum mxu_func {
+ /* TODO, other MXU funcs */
+ mxu_lx_op = 0x28,
+};
+
+/*
+ * op field for special2 MXU LX opcodes (Ingenic XBurst MXU).
+ */
+enum lx_ingenic_func {
+ mxu_lxb_op,
+ mxu_lxh_op,
+ /* reserved */
+ mxu_lxw_op = 3,
+ mxu_lxbu_op,
+ mxu_lxhu_op,
+ /* more reserved */
+};
+
+/*
* BSHFL opcodes
*/
enum bshfl_func {
@@ -774,6 +795,17 @@ struct dsp_format { /* SPEC3 DSP format instructions */
;))))))
};
+struct mxu_lx_format { /* SPEC2 MXU LX format instructions */
+ __BITFIELD_FIELD(unsigned int opcode : 6,
+ __BITFIELD_FIELD(unsigned int rs : 5,
+ __BITFIELD_FIELD(unsigned int rt : 5,
+ __BITFIELD_FIELD(unsigned int rd : 5,
+ __BITFIELD_FIELD(unsigned int strd : 2,
+ __BITFIELD_FIELD(unsigned int op : 3,
+ __BITFIELD_FIELD(unsigned int func : 6,
+ ;)))))))
+};
+
struct spec3_format { /* SPEC3 */
__BITFIELD_FIELD(unsigned int opcode:6,
__BITFIELD_FIELD(unsigned int rs:5,
@@ -1125,6 +1157,7 @@ union mips_instruction {
struct loongson3_lswc2_format loongson3_lswc2_format;
struct loongson3_lsdc2_format loongson3_lsdc2_format;
struct loongson3_lscsr_format loongson3_lscsr_format;
+ struct mxu_lx_format mxu_lx_format;
};
union mips16e_instruction {
diff --git a/lib/libc/include/mips-linux-any/asm/kvm.h b/lib/libc/include/mips-linux-any/asm/kvm.h
index 7b096fe2f3..8238aa3963 100644
--- a/lib/libc/include/mips-linux-any/asm/kvm.h
+++ b/lib/libc/include/mips-linux-any/asm/kvm.h
@@ -20,8 +20,6 @@
* Some parts derived from the x86 version of this file.
*/
-#define __KVM_HAVE_READONLY_MEM
-
#define KVM_COALESCED_MMIO_PAGE_OFFSET 1
/*
diff --git a/lib/libc/include/mips-linux-any/asm/mman.h b/lib/libc/include/mips-linux-any/asm/mman.h
index 63bd928320..322bc7f2b6 100644
--- a/lib/libc/include/mips-linux-any/asm/mman.h
+++ b/lib/libc/include/mips-linux-any/asm/mman.h
@@ -88,7 +88,7 @@
#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
#define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages */
-#define MADV_DONTDUMP 16 /* Explicity exclude from the core dump,
+#define MADV_DONTDUMP 16 /* Explicitly exclude from core dump,
overrides the coredump filter bits */
#define MADV_DODUMP 17 /* Clear the MADV_NODUMP flag */
diff --git a/lib/libc/include/mips-linux-any/asm/msgbuf.h b/lib/libc/include/mips-linux-any/asm/msgbuf.h
index ac0f2ff14a..8adfeb4f0f 100644
--- a/lib/libc/include/mips-linux-any/asm/msgbuf.h
+++ b/lib/libc/include/mips-linux-any/asm/msgbuf.h
@@ -62,7 +62,7 @@ struct msqid64_ds {
unsigned long __unused5;
};
#else
-#warning no endianess set
+#warning no endianness set
#endif
#endif /* _ASM_MSGBUF_H */ \ No newline at end of file
diff --git a/lib/libc/include/mips-linux-any/asm/socket.h b/lib/libc/include/mips-linux-any/asm/socket.h
index e5cf024aa5..de8cedcc4c 100644
--- a/lib/libc/include/mips-linux-any/asm/socket.h
+++ b/lib/libc/include/mips-linux-any/asm/socket.h
@@ -148,6 +148,9 @@
#define SO_RCVMARK 75
+#define SO_PASSPIDFD 76
+#define SO_PEERPIDFD 77
+
#if __BITS_PER_LONG == 64
#define SO_TIMESTAMP SO_TIMESTAMP_OLD
diff --git a/lib/libc/include/mips-linux-any/asm/unistd_n32.h b/lib/libc/include/mips-linux-any/asm/unistd_n32.h
index 24ede5a185..b1027e26f0 100644
--- a/lib/libc/include/mips-linux-any/asm/unistd_n32.h
+++ b/lib/libc/include/mips-linux-any/asm/unistd_n32.h
@@ -379,5 +379,17 @@
#define __NR_process_mrelease (__NR_Linux + 448)
#define __NR_futex_waitv (__NR_Linux + 449)
#define __NR_set_mempolicy_home_node (__NR_Linux + 450)
+#define __NR_cachestat (__NR_Linux + 451)
+#define __NR_fchmodat2 (__NR_Linux + 452)
+#define __NR_map_shadow_stack (__NR_Linux + 453)
+#define __NR_futex_wake (__NR_Linux + 454)
+#define __NR_futex_wait (__NR_Linux + 455)
+#define __NR_futex_requeue (__NR_Linux + 456)
+#define __NR_statmount (__NR_Linux + 457)
+#define __NR_listmount (__NR_Linux + 458)
+#define __NR_lsm_get_self_attr (__NR_Linux + 459)
+#define __NR_lsm_set_self_attr (__NR_Linux + 460)
+#define __NR_lsm_list_modules (__NR_Linux + 461)
+#define __NR_mseal (__NR_Linux + 462)
#endif /* _ASM_UNISTD_N32_H */ \ No newline at end of file
diff --git a/lib/libc/include/mips-linux-any/asm/unistd_n64.h b/lib/libc/include/mips-linux-any/asm/unistd_n64.h
index 35eaf9ca6c..89ee820e3a 100644
--- a/lib/libc/include/mips-linux-any/asm/unistd_n64.h
+++ b/lib/libc/include/mips-linux-any/asm/unistd_n64.h
@@ -355,5 +355,17 @@
#define __NR_process_mrelease (__NR_Linux + 448)
#define __NR_futex_waitv (__NR_Linux + 449)
#define __NR_set_mempolicy_home_node (__NR_Linux + 450)
+#define __NR_cachestat (__NR_Linux + 451)
+#define __NR_fchmodat2 (__NR_Linux + 452)
+#define __NR_map_shadow_stack (__NR_Linux + 453)
+#define __NR_futex_wake (__NR_Linux + 454)
+#define __NR_futex_wait (__NR_Linux + 455)
+#define __NR_futex_requeue (__NR_Linux + 456)
+#define __NR_statmount (__NR_Linux + 457)
+#define __NR_listmount (__NR_Linux + 458)
+#define __NR_lsm_get_self_attr (__NR_Linux + 459)
+#define __NR_lsm_set_self_attr (__NR_Linux + 460)
+#define __NR_lsm_list_modules (__NR_Linux + 461)
+#define __NR_mseal (__NR_Linux + 462)
#endif /* _ASM_UNISTD_N64_H */ \ No newline at end of file
diff --git a/lib/libc/include/mips-linux-any/asm/unistd_o32.h b/lib/libc/include/mips-linux-any/asm/unistd_o32.h
index 8a4aa5b544..ae8959a336 100644
--- a/lib/libc/include/mips-linux-any/asm/unistd_o32.h
+++ b/lib/libc/include/mips-linux-any/asm/unistd_o32.h
@@ -425,5 +425,17 @@
#define __NR_process_mrelease (__NR_Linux + 448)
#define __NR_futex_waitv (__NR_Linux + 449)
#define __NR_set_mempolicy_home_node (__NR_Linux + 450)
+#define __NR_cachestat (__NR_Linux + 451)
+#define __NR_fchmodat2 (__NR_Linux + 452)
+#define __NR_map_shadow_stack (__NR_Linux + 453)
+#define __NR_futex_wake (__NR_Linux + 454)
+#define __NR_futex_wait (__NR_Linux + 455)
+#define __NR_futex_requeue (__NR_Linux + 456)
+#define __NR_statmount (__NR_Linux + 457)
+#define __NR_listmount (__NR_Linux + 458)
+#define __NR_lsm_get_self_attr (__NR_Linux + 459)
+#define __NR_lsm_set_self_attr (__NR_Linux + 460)
+#define __NR_lsm_list_modules (__NR_Linux + 461)
+#define __NR_mseal (__NR_Linux + 462)
#endif /* _ASM_UNISTD_O32_H */ \ No newline at end of file