From 0ad10f26c94a86a0c9c3970e53f9a9f6a744055d Mon Sep 17 00:00:00 2001 From: "Nikunj A. Dadhania" Date: Tue, 16 Oct 2012 11:49:51 +0530 Subject: SLOF: Support PAPR NVRAM RTAS calls BenH still need to ACK this though. From: Nikunj A. Dadhania * Determines size of the flash using device tree. * Provides nvram access functions for RTAS_NVRAM * Allocates temporary buffer of nvram in SLOF code and use that in C. (sbrk not available) * NVRAM_LENGTH is used at various places, make sure it is well guarded and also use dynamically determined size once an RTAS-NVRAM is found. * Use NVRAM_LENGTH as a variable in case of RTAS_NVRAM, not very elegant though Signed-off-by: Nikunj A. Dadhania -- Changelog from v1: * #define cleanups suggested by Thomas/Benh * Fix makefile which missed passing $FLAG for building llfw * renamed vio-nvram.fs as rtas-nvram.fs --- llfw/nvramlog.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llfw/nvramlog.S') diff --git a/llfw/nvramlog.S b/llfw/nvramlog.S index be6bfd8..eb14c95 100644 --- a/llfw/nvramlog.S +++ b/llfw/nvramlog.S @@ -14,8 +14,7 @@ #include #include - -#if !defined(DISABLE_NVRAM) +#if !defined(DISABLE_NVRAM) && !defined(RTAS_NVRAM) // detect overflow: if(a