diff options
author | David Daney <david.daney@cavium.com> | 2013-06-13 16:10:47 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-21 12:07:02 -0400 |
commit | 9b1f812acb607bcdfafd8cacec89f9b736e2be0c (patch) | |
tree | 80111d2800605df36dcb42be4781ec234199ee9a /arch/mips/include | |
parent | b72d9a4ef322f55f159df144bc702d9643e5a221 (diff) |
MIPS/OCTEON: Override default address space layout.
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>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5457/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/mach-cavium-octeon/spaces.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 000000000000..daa91accf5ab --- /dev/null +++ b/arch/mips/include/asm/mach-cavium-octeon/spaces.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2012 Cavium, Inc. | ||
7 | */ | ||
8 | #ifndef _ASM_MACH_CAVIUM_OCTEON_SPACES_H | ||
9 | #define _ASM_MACH_CAVIUM_OCTEON_SPACES_H | ||
10 | |||
11 | #include <linux/const.h> | ||
12 | |||
13 | #ifdef CONFIG_64BIT | ||
14 | /* They are all the same and some OCTEON II cores cannot handle 0xa8.. */ | ||
15 | #define CAC_BASE _AC(0x8000000000000000, UL) | ||
16 | #define UNCAC_BASE _AC(0x8000000000000000, UL) | ||
17 | #define IO_BASE _AC(0x8000000000000000, UL) | ||
18 | |||
19 | |||
20 | #endif /* CONFIG_64BIT */ | ||
21 | |||
22 | #include <asm/mach-generic/spaces.h> | ||
23 | |||
24 | #endif /* _ASM_MACH_CAVIUM_OCTEON_SPACES_H */ | ||