linux-mips
[Top] [All Lists]

[PATCH] MIPS/OCTEON: Override default address space layout.

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH] MIPS/OCTEON: Override default address space layout.
From: David Daney <ddaney.cavm@gmail.com>
Date: Thu, 13 Jun 2013 14:10:47 -0700
Cc: David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=la+k1k+NlRo+AlU3ynj7ZZgqAnfcLLA1gvyRqdfeJz0=; b=U3J5jP5cYO0dfcQNETZcpq8RhqHy7dlyVftBfIj8hbmUqHgfWBkG+QmTLFKyGENev1 b+z5YA15dXoUm8puZge80HzfWosM24W6lhQO1FbzDUbi5Wiv0VAB5geGmnv7oPAwU5EM p8cMvyig74oBb30Arq0RLhDd1B69U66LrQiowbUXfEdRbit2zSuNOxPeOqE2vwEorf4w 2f2AD4OR9Q+7UEcPNW2oDR0MDv/x1F6N7sSVkKgAwNjTls5KG0xj0isPpIm9ZPtYjdl4 vVRtDCzZNwmpioRpNq4SWcGQ39/cGVL98LZeW+wHhlCwqh0xuFNqy89GQ3hB1tkCZ5/U eIJw==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>

OCTEON II cannot execute code in the default CAC_BASE space, so we
supply a value (0x8000000000000000) that does work.

Signed-off-by: David Daney <david.daney@cavium.com>
---
 arch/mips/include/asm/mach-cavium-octeon/spaces.h | 24 +++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 arch/mips/include/asm/mach-cavium-octeon/spaces.h

diff --git a/arch/mips/include/asm/mach-cavium-octeon/spaces.h 
b/arch/mips/include/asm/mach-cavium-octeon/spaces.h
new file mode 100644
index 0000000..daa91ac
--- /dev/null
+++ b/arch/mips/include/asm/mach-cavium-octeon/spaces.h
@@ -0,0 +1,24 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2012 Cavium, Inc.
+ */
+#ifndef _ASM_MACH_CAVIUM_OCTEON_SPACES_H
+#define _ASM_MACH_CAVIUM_OCTEON_SPACES_H
+
+#include <linux/const.h>
+
+#ifdef CONFIG_64BIT
+/* They are all the same and some OCTEON II cores cannot handle 0xa8.. */
+#define CAC_BASE               _AC(0x8000000000000000, UL)
+#define UNCAC_BASE             _AC(0x8000000000000000, UL)
+#define IO_BASE                        _AC(0x8000000000000000, UL)
+
+
+#endif /* CONFIG_64BIT */
+
+#include <asm/mach-generic/spaces.h>
+
+#endif /* _ASM_MACH_CAVIUM_OCTEON_SPACES_H */
-- 
1.7.11.7


<Prev in Thread] Current Thread [Next in Thread>