summaryrefslogtreecommitdiffstats
path: root/libc/kernel/arch-sh/asm/tlb_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/kernel/arch-sh/asm/tlb_64.h')
-rw-r--r--libc/kernel/arch-sh/asm/tlb_64.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libc/kernel/arch-sh/asm/tlb_64.h b/libc/kernel/arch-sh/asm/tlb_64.h
new file mode 100644
index 0000000..77c54eb
--- /dev/null
+++ b/libc/kernel/arch-sh/asm/tlb_64.h
@@ -0,0 +1,28 @@
+/****************************************************************************
+ ****************************************************************************
+ ***
+ *** This header was automatically generated from a Linux kernel header
+ *** of the same name, to make information necessary for userspace to
+ *** call into the kernel available to libc. It contains only constants,
+ *** structures, and macros generated from the original header, and thus,
+ *** contains no copyrightable information.
+ ***
+ ****************************************************************************
+ ****************************************************************************/
+#ifndef __ASM_SH_TLB_64_H
+#define __ASM_SH_TLB_64_H
+
+#define ITLB_FIXED 0x00000000
+#define ITLB_LAST_VAR_UNRESTRICTED 0x000003F0
+
+#define DTLB_FIXED 0x00800000
+#define DTLB_LAST_VAR_UNRESTRICTED 0x008003F0
+
+#ifndef __ASSEMBLY__
+
+#define for_each_dtlb_entry(tlb) for (tlb = cpu_data->dtlb.first; tlb <= cpu_data->dtlb.last; tlb += cpu_data->dtlb.step)
+
+#define for_each_itlb_entry(tlb) for (tlb = cpu_data->itlb.first; tlb <= cpu_data->itlb.last; tlb += cpu_data->itlb.step)
+
+#endif
+#endif