aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/hppa/sys
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2024-12-22 09:51:54 -0500
committerJohn David Anglin <danglin@gcc.gnu.org>2024-12-22 09:51:54 -0500
commit9bdb1487c5707a4f8151f60bf2c5969ad205701e (patch)
tree95cd1e6b3f28dc89e70a55ddaa496bd452a820ae /sysdeps/unix/sysv/linux/hppa/sys
parent4b37fb71e0adf6cc6ea2202b5b77febc6d70274a (diff)
downloadglibc-9bdb1487c5707a4f8151f60bf2c5969ad205701e.zip
glibc-9bdb1487c5707a4f8151f60bf2c5969ad205701e.tar.gz
glibc-9bdb1487c5707a4f8151f60bf2c5969ad205701e.tar.bz2
hppa: add cacheflush() syscall wrapper
The hppa Linux kernel supports the cacheflush() syscall since version 6.5. This adds the glibc syscall wrapper. Signed-off-by: Helge Deller <deller@gmx.de> --- v2: This patch was too late in release cycle for GLIBC_2.40, so update now to GLIBC_2.41 instead.
Diffstat (limited to 'sysdeps/unix/sysv/linux/hppa/sys')
-rw-r--r--sysdeps/unix/sysv/linux/hppa/sys/cachectl.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/hppa/sys/cachectl.h b/sysdeps/unix/sysv/linux/hppa/sys/cachectl.h
new file mode 100644
index 0000000..16e47d1
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/hppa/sys/cachectl.h
@@ -0,0 +1,36 @@
+/* HPPA cache flushing interface.
+ Copyright (C) 2018-2024 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library. If not, see
+ <https://www.gnu.org/licenses/>. */
+
+#ifndef _SYS_CACHECTL_H
+#define _SYS_CACHECTL_H 1
+
+#include <features.h>
+
+/* Get the kernel definition for the op bits. */
+#include <asm/cachectl.h>
+
+__BEGIN_DECLS
+
+#ifdef __USE_MISC
+extern int cacheflush (void *__addr, const int __nbytes,
+ const int __op) __THROW;
+#endif
+
+__END_DECLS
+
+#endif /* sys/cachectl.h */