[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Will Deacon has more exotic hardware than I do: he sent this patch
against my perf_fuzzer to add Alpha support (he already used it to find a 
kernel bug).

Anyway since I use the trinity headers, the patch applies equally well 
against trinity.  

I'm not sure enough with my git skills to know if sending a patch like 
this will preserve attributions properly, so I apologize if this breaks 
somehow.


From: Will Deacon <will.deacon@xxxxxxx>

Signed-off-by: Will Deacon <will.deacon@xxxxxxx>
---
 include/arch-alpha.h    | 16 ++++++++++++++++
 include/arch-syscalls.h |  3 +++
 include/arch.h          |  3 +++
 3 files changed, 22 insertions(+)
 create mode 100644 include/arch-alpha.h

diff --git a/include/arch-alpha.h b/include/arch-alpha.h
new file mode 100644
index 0000000..a6a7cac
--- /dev/null
+++ b/include/arch-alpha.h
@@ -0,0 +1,16 @@
+#define KERNEL_ADDR		0xfffffc0000310000
+/* KERNEL_ADDR is 0xfffffc0001010000 ifndef CONFIG_ALPHA_LEGACY_START_ADDRESS */
+
+#define PAGE_SHIFT		13
+#define PGDIR_SHIFT		(PAGE_SHIFT + 2*(PAGE_SHIFT-3))
+#define PGDIR_SIZE		(1UL << PGDIR_SHIFT)
+#define MODULE_ADDR		(-2*PGDIR_SIZE)
+/* MODULE_ADDR is 0xfffffe0000000000 ifdef CONFIG_ALPHA_LARGE_VMALLOC */
+
+#define PAGE_OFFSET		0xfffffc0000000000UL
+/* PAGE_OFFSET is 0xffff800000000000UL ifdef USE_48_BIT_KSEG */
+
+#define TASK_SIZE		0x40000000000UL
+
+#define PTE_FILE_MAX_BITS	32
+
diff --git a/include/arch-syscalls.h b/include/arch-syscalls.h
index 509fd53..7824c13 100644
--- a/include/arch-syscalls.h
+++ b/include/arch-syscalls.h
@@ -32,5 +32,8 @@
 #ifdef __sh__
 #include "syscalls-sh.h"
 #endif
+#ifdef __alpha__
+#include "syscalls-alpha.h"
+#endif
 
 #endif  /* _ARCH_SYSCALLS_H */
diff --git a/include/arch.h b/include/arch.h
index 3d28cee..c0f41f2 100644
--- a/include/arch.h
+++ b/include/arch.h
@@ -30,6 +30,9 @@
 #ifdef __sh__
 #include "arch-sh.h"
 #endif
+#ifdef __alpha__
+#include "arch-alpha.h"
+#endif
 
 #ifndef SYSCALL_OFFSET
 #define SYSCALL_OFFSET 0
-- 
1.8.2.2

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux