/****************************************************************************** * Copyright (c) 2004, 2008 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License * which accompanies this distribution, and is available at * http://www.opensource.org/licenses/bsd-license.php * * Contributors: * IBM Corporation - initial implementation *****************************************************************************/ #include #include #include #include #if !defined(DISABLE_NVRAM) && !defined(RTAS_NVRAM) // detect overflow: if(a sum addi r5, r5, 1 // new sum ++ rldicl r5, r5, 0, 56 .L5: mr r3,r5 // sum = new sum blt+ 6,.L6 mr r4, r6 blr #else /* defined(DISABLE_NVRAM) || defined(RTAS_NVRAM) */ ASM_ENTRY(.writeNVRAMbyte) ENTRY(writeLogByte) blr #endif