MIPS: spaces: Define a couple of handy macros
authorGregory CLEMENT <gregory.clement@bootlin.com>
Fri, 16 Feb 2024 17:42:10 +0000 (18:42 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 20 Feb 2024 11:44:39 +0000 (12:44 +0100)
commite40192dabaaae540578339d86b4e3fb105973710
tree236da179a8eb6ddd29e261725a7a6c9388c67e2b
parent6d74e0fc0a34ef72365f88a249e351a353f8dc03
MIPS: spaces: Define a couple of handy macros

Define CKSEGX_SIZE to represent the size of each KSEG segment.

Introduce CKSEG0ADDR_OR_64BIT and CKSEG1ADDR_OR_64BIT to get an XPHYS
address in 64bits and CKSEG[01]ADDR() in 32 bits mode.

Co-developed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/addrspace.h
arch/mips/include/asm/mach-generic/spaces.h