Skip to content

Commit 37706cc

Browse files
committed
libc: Update Linux headers to 6.13.4.
1 parent 1cc388d commit 37706cc

File tree

212 files changed

+8820
-611
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+8820
-611
lines changed

lib/libc/include/aarch64-linux-any/asm/hwcap.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* HWCAP flags - for AT_HWCAP
2222
*
2323
* Bits 62 and 63 are reserved for use by libc.
24-
* Bits 32-61 are unallocated for potential use by libc.
24+
* Bits 33-61 are unallocated for potential use by libc.
2525
*/
2626
#define HWCAP_FP (1 << 0)
2727
#define HWCAP_ASIMD (1 << 1)
@@ -55,6 +55,7 @@
5555
#define HWCAP_SB (1 << 29)
5656
#define HWCAP_PACA (1 << 30)
5757
#define HWCAP_PACG (1UL << 31)
58+
#define HWCAP_GCS (1UL << 32)
5859

5960
/*
6061
* HWCAP2 flags - for AT_HWCAP2
@@ -122,5 +123,10 @@
122123
#define HWCAP2_SME_SF8FMA (1UL << 60)
123124
#define HWCAP2_SME_SF8DP4 (1UL << 61)
124125
#define HWCAP2_SME_SF8DP2 (1UL << 62)
126+
#define HWCAP2_POE (1UL << 63)
127+
128+
/*
129+
* HWCAP3 flags - for AT_HWCAP3
130+
*/
125131

126132
#endif /* __ASM_HWCAP_H */

lib/libc/include/aarch64-linux-any/asm/kvm.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,12 @@ enum {
473473
*/
474474
#define KVM_SYSTEM_EVENT_RESET_FLAG_PSCI_RESET2 (1ULL << 0)
475475

476+
/*
477+
* Shutdown caused by a PSCI v1.3 SYSTEM_OFF2 call.
478+
* Valid only when the system event has a type of KVM_SYSTEM_EVENT_SHUTDOWN.
479+
*/
480+
#define KVM_SYSTEM_EVENT_SHUTDOWN_FLAG_PSCI_OFF2 (1ULL << 0)
481+
476482
/* run->fail_entry.hardware_entry_failure_reason codes. */
477483
#define KVM_EXIT_FAIL_ENTRY_CPU_UNSUPPORTED (1ULL << 0)
478484

lib/libc/include/aarch64-linux-any/asm/mman.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,13 @@
77
#define PROT_BTI 0x10 /* BTI guarded page */
88
#define PROT_MTE 0x20 /* Normal Tagged mapping */
99

10+
/* Override any generic PKEY permission defines */
11+
#define PKEY_DISABLE_EXECUTE 0x4
12+
#define PKEY_DISABLE_READ 0x8
13+
#undef PKEY_ACCESS_MASK
14+
#define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS |\
15+
PKEY_DISABLE_WRITE |\
16+
PKEY_DISABLE_READ |\
17+
PKEY_DISABLE_EXECUTE)
18+
1019
#endif /* ! _UAPI__ASM_MMAN_H */

lib/libc/include/aarch64-linux-any/asm/ptrace.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,14 @@ struct user_za_header {
324324
#define ZA_PT_SIZE(vq) \
325325
(ZA_PT_ZA_OFFSET + ZA_PT_ZA_SIZE(vq))
326326

327+
/* GCS state (NT_ARM_GCS) */
328+
329+
struct user_gcs {
330+
__u64 features_enabled;
331+
__u64 features_locked;
332+
__u64 gcspr_el0;
333+
};
334+
327335
#endif /* __ASSEMBLY__ */
328336

329337
#endif /* __ASM_PTRACE_H */

lib/libc/include/aarch64-linux-any/asm/sigcontext.h

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ struct esr_context {
9898
__u64 esr;
9999
};
100100

101+
#define POE_MAGIC 0x504f4530
102+
103+
struct poe_context {
104+
struct _aarch64_ctx head;
105+
__u64 por_el0;
106+
};
107+
101108
/*
102109
* extra_context: describes extra space in the signal frame for
103110
* additional structures that don't fit in sigcontext.__reserved[].
@@ -176,6 +183,15 @@ struct zt_context {
176183
__u16 __reserved[3];
177184
};
178185

186+
#define GCS_MAGIC 0x47435300
187+
188+
struct gcs_context {
189+
struct _aarch64_ctx head;
190+
__u64 gcspr;
191+
__u64 features_enabled;
192+
__u64 reserved;
193+
};
194+
179195
#endif /* !__ASSEMBLY__ */
180196

181197
#include <asm/sve_context.h>
@@ -320,10 +336,10 @@ struct zt_context {
320336
((sizeof(struct za_context) + (__SVE_VQ_BYTES - 1)) \
321337
/ __SVE_VQ_BYTES * __SVE_VQ_BYTES)
322338

323-
#define ZA_SIG_REGS_SIZE(vq) ((vq * __SVE_VQ_BYTES) * (vq * __SVE_VQ_BYTES))
339+
#define ZA_SIG_REGS_SIZE(vq) (((vq) * __SVE_VQ_BYTES) * ((vq) * __SVE_VQ_BYTES))
324340

325341
#define ZA_SIG_ZAV_OFFSET(vq, n) (ZA_SIG_REGS_OFFSET + \
326-
(SVE_SIG_ZREG_SIZE(vq) * n))
342+
(SVE_SIG_ZREG_SIZE(vq) * (n)))
327343

328344
#define ZA_SIG_CONTEXT_SIZE(vq) \
329345
(ZA_SIG_REGS_OFFSET + ZA_SIG_REGS_SIZE(vq))
@@ -334,7 +350,7 @@ struct zt_context {
334350

335351
#define ZT_SIG_REGS_OFFSET sizeof(struct zt_context)
336352

337-
#define ZT_SIG_REGS_SIZE(n) (ZT_SIG_REG_BYTES * n)
353+
#define ZT_SIG_REGS_SIZE(n) (ZT_SIG_REG_BYTES * (n))
338354

339355
#define ZT_SIG_CONTEXT_SIZE(n) \
340356
(sizeof(struct zt_context) + ZT_SIG_REGS_SIZE(n))
Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,2 @@
11
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2-
/*
3-
* Copyright (C) 2012 ARM Ltd.
4-
*
5-
* This program is free software; you can redistribute it and/or modify
6-
* it under the terms of the GNU General Public License version 2 as
7-
* published by the Free Software Foundation.
8-
*
9-
* This program is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
* GNU General Public License for more details.
13-
*
14-
* You should have received a copy of the GNU General Public License
15-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16-
*/
17-
18-
#define __ARCH_WANT_RENAMEAT
19-
#define __ARCH_WANT_NEW_STAT
20-
#define __ARCH_WANT_SET_GET_RLIMIT
21-
#define __ARCH_WANT_TIME32_SYSCALLS
22-
#define __ARCH_WANT_SYS_CLONE3
23-
#define __ARCH_WANT_MEMFD_SECRET
24-
25-
#include <asm-generic/unistd.h>
2+
#include <asm/unistd_64.h>

0 commit comments

Comments
 (0)