MIPS/OCTEON: Override default address space layout.
PATCH 1/1 MIPS/OCTEON: Override default address space layout.
From: David Daney <[email protected]>
OCTEON II cannot execute code in the default CAC_BASE space, so we supply a value (0x8000000000000000) that does work.
--- 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
arch/mips/include/asm/mach-cavium-octeon/spaces.h new file +24 -0
@@ -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 */
Signature · 1 line
1.7.11.7
Ralf Baechle
AppliedQuoted 6 lines · David Daney
From: David Daney <[email protected]>
OCTEON II cannot execute code in the default
CAC_BASEspace, so we supply a value (0x8000000000000000) that does work.Signed-off-by David Daney <[email protected]>
Thanks, applied.
I assume this also should be applied to all -stable branches?
Ralf
Quoted 4 lines · Ralf Baechle
Quoted 2 lines · David Daney
From: David Daney <[email protected]>
Quoted 9 lines
Quoted 4 lines
OCTEON II cannot execute code in the default
CAC_BASEspace, so we supply a value (0x8000000000000000) that does work.Signed-off-by David Daney <[email protected]>Thanks, applied.
I assume this also should be applied to all -stable branches?
It is really only needed in conjunction with kexec, and that is somewhat broken at the moment
David.