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 --- slof/fs/logging.fs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'slof/fs/logging.fs') diff --git a/slof/fs/logging.fs b/slof/fs/logging.fs index 4a31b50..002c480 100644 --- a/slof/fs/logging.fs +++ b/slof/fs/logging.fs @@ -15,10 +15,10 @@ defer nvramlog-write-byte : .nvramlog-write-byte ( byte -- ) -#ifndef DISABLE_NVRAM - 0 1 asm-cout -#else +#if defined(DISABLE_NVRAM) || defined(RTAS_NVRAM) drop +#else + 0 1 asm-cout #endif ; -- cgit v1.1