mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-08 14:23:19 +00:00
MIPS: SGI-IP27: Use the _AC() macro in spaces.h
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> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
1fded93fb1
commit
83dd9a0b66
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user