libpayload: mips: Add macros to convert to/from KSEG{0,1} addresses

Hardware / Coreboot - Andrew Bresticker [chromium.org] - 21 April 2015 01:13 UTC

Add helper macros to convert between physical addresses and KSEG{0,1} addresses. Also get rid of the virt_to_{bus,phys}_offset variables as these are fixed values.

As nobody seems to be using getpagesize() on MIPS, no need to keep
virtual.c.

BUG=chrome-os-partner:36258 BRANCH=none TEST=Build and boot on Pistachio.

Change-Id: Ia26c8eae53eb8f860747a6b321363776841d1a94

ca0e89b libpayload: mips: Add macros to convert to/from KSEG{0,1} addresses
payloads/libpayload/arch/mips/Makefile.inc | 1 -
payloads/libpayload/arch/mips/virtual.c | 28 -----------------------
payloads/libpayload/include/mips/arch/virtual.h | 20 +++++++++-------
3 files changed, 12 insertions(+), 37 deletions(-)

Upstream: review.coreboot.org


  • Share