From: Wang Sheng-Hui <shhuiw@gmail.com>
To: trinity@vger.kernel.org
Subject: [PATCH 2/3] tile: add arch-tile.h
Date: Wed, 14 May 2014 13:42:05 +0800 [thread overview]
Message-ID: <5373022D.1040808@gmail.com> (raw)
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
reply other threads:[~2014-05-14 5:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5373022D.1040808@gmail.com \
--to=shhuiw@gmail.com \
--cc=trinity@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.