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

 



Add Tilera constants definition.

Signed-off-by: Wang Sheng-Hui <shhuiw@xxxxxxxxx>

 create mode 100644 include/arch-tile.h

diff --git a/include/arch-tile.h b/include/arch-tile.h
new file mode 100644
index 0000000..785b236
--- /dev/null
+++ b/include/arch-tile.h
@@ -0,0 +1,25 @@
+#pragma once
+
+#ifdef __tilegx__
+
+#define MAX_VA_WIDTH   42
+#define MAX_PA_WIDTH   40
+
+#define PAGE_OFFSET            (-(1 << (MAX_VA_WIDTH - 1)))
+#define KERNEL_HIGH_VADDR       0xfffffff800000000  /* high 32GB */
+#define MEM_SV_START            (KERNEL_HIGH_VADDR - 0x100000000) /* 256 MB */
+#define MEM_MODULE_START        (MEM_SV_START + (256*1024*1024)) /* 256 MB */
+#define MEM_MODULE_END          (MEM_MODULE_START + (256*1024*1024))
+#define KERNEL_ADDR            MEM_SV_START
+#define MODULE_ADDR            MEM_MODULE_START
+
+#define TASK_SIZE_MAX           (1 << (MAX_VA_WIDTH - 1))
+#define TASK_SIZE               TASK_SIZE_MAX
+
+#define PAGE_SHIFT     16
+#define PTE_FILE_MAX_BITS 32
+#define BITS_PER_LONG  64
+
+#endif
+
+#define SYSCALLS syscalls_tile
-- 
1.7.1

--
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