trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] tile: add arch-tile.h
@ 2014-05-14  5:42 Wang Sheng-Hui
  0 siblings, 0 replies; only message in thread
From: Wang Sheng-Hui @ 2014-05-14  5:42 UTC (permalink / raw)
  To: trinity


Add Tilera constants definition.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>

 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-14  5:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14  5:42 [PATCH 2/3] tile: add arch-tile.h Wang Sheng-Hui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).