* [PATCH] MIPS: SGI-IP27: Use the _AC() macro in spaces.h
@ 2020-05-15 3:24 Joshua Kinard
2020-05-15 7:21 ` Thomas Bogendoerfer
0 siblings, 1 reply; 2+ messages in thread
From: Joshua Kinard @ 2020-05-15 3:24 UTC (permalink / raw)
To: linux-mips; +Cc: Thomas Bogendoerfer
From: Joshua Kinard <kumba@gentoo.org>
The attached patch wraps several of the macros in IP27's spaces.h
header file with the _AC() macro. This matches most of the other
spaces.h files in the MIPS tree.
Signed-off-by: Joshua Kinard <kumba@gentoo.org>
---
arch/mips/include/asm/mach-ip27/spaces.h | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/arch/mips/include/asm/mach-ip27/spaces.h b/arch/mips/include/asm/mach-ip27/spaces.h
index 24d5e31bcfa6..66421e9a6aa6 100644
--- a/arch/mips/include/asm/mach-ip27/spaces.h
+++ b/arch/mips/include/asm/mach-ip27/spaces.h
@@ -10,17 +10,19 @@
#ifndef _ASM_MACH_IP27_SPACES_H
#define _ASM_MACH_IP27_SPACES_H
+#include <linux/const.h>
+
/*
* IP27 uses the R10000's uncached attribute feature. Attribute 3 selects
* uncached memory addressing. Hide the definitions on 32-bit compilation
* of the compat-vdso code.
*/
#ifdef CONFIG_64BIT
-#define HSPEC_BASE 0x9000000000000000
-#define IO_BASE 0x9200000000000000
-#define MSPEC_BASE 0x9400000000000000
-#define UNCAC_BASE 0x9600000000000000
-#define CAC_BASE 0xa800000000000000
+#define HSPEC_BASE _AC(0x9000000000000000, UL)
+#define IO_BASE _AC(0x9200000000000000, UL)
+#define MSPEC_BASE _AC(0x9400000000000000, UL)
+#define UNCAC_BASE _AC(0x9600000000000000, UL)
+#define CAC_BASE _AC(0xa800000000000000, UL)
#endif
#define TO_MSPEC(x) (MSPEC_BASE | ((x) & TO_PHYS_MASK))
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MIPS: SGI-IP27: Use the _AC() macro in spaces.h
2020-05-15 3:24 [PATCH] MIPS: SGI-IP27: Use the _AC() macro in spaces.h Joshua Kinard
@ 2020-05-15 7:21 ` Thomas Bogendoerfer
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2020-05-15 7:21 UTC (permalink / raw)
To: Joshua Kinard; +Cc: linux-mips
On Thu, May 14, 2020 at 11:24:22PM -0400, Joshua Kinard wrote:
> From: Joshua Kinard <kumba@gentoo.org>
>
> The attached patch wraps several of the macros in IP27's spaces.h
> header file with the _AC() macro. This matches most of the other
> spaces.h files in the MIPS tree.
>
> Signed-off-by: Joshua Kinard <kumba@gentoo.org>
> ---
> arch/mips/include/asm/mach-ip27/spaces.h | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-15 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-15 3:24 [PATCH] MIPS: SGI-IP27: Use the _AC() macro in spaces.h Joshua Kinard
2020-05-15 7:21 ` Thomas Bogendoerfer
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).