diff options
author | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-01-29 04:44:03 -0600 |
---|---|---|
committer | AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com> | 2016-03-16 08:49:45 -0400 |
commit | ef20438c35a75c8f1369ec229ab6453b6736be81 (patch) | |
tree | 128ac1f02c920f05351a5412e8c87e74856bdecf /sbe/image | |
parent | aa9944c7e4b268a458f1f28478d9772edf8af2d8 (diff) | |
download | talos-sbe-ef20438c35a75c8f1369ec229ab6453b6736be81.tar.gz talos-sbe-ef20438c35a75c8f1369ec229ab6453b6736be81.zip |
HBBL input support
Change-Id: I9335651edfded154bffea166c92cc3007efe0ef9
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/11680
Tested-by: Jenkins Server
Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'sbe/image')
-rw-r--r-- | sbe/image/base_loader.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/sbe/image/base_loader.c b/sbe/image/base_loader.c index fa0f42fd..3fe43fc5 100644 --- a/sbe/image/base_loader.c +++ b/sbe/image/base_loader.c @@ -1,33 +1,4 @@ -#include "p9_xip_image.h" -#include "ppe42_scom.h" // for PPE_STVD -#include "sbe_link.H" // for SBE_BASE_ORIGIN, SBE_SEEPROM_BASE_ORIGIN - -// Unconditional jump to a memory location -#define JUMP_TO_ADDR(VAL ) \ -{ \ -asm volatile ( \ - "mtlr %0 \n\t" \ - : \ - : "r" (VAL)); \ -asm volatile ( \ - "blr \n\t" \ - : \ - );\ -} - -// PIBMEM start address -const uint32_t g_pibMemAddr = SBE_BASE_ORIGIN; -// SEEPROM start address -const uint32_t g_headerAddr = SBE_SEEPROM_BASE_ORIGIN; -// IVPR register address -const uint32_t g_ivprLoc = 0xC0000160; - -// Get XIP image header -P9XipHeader * getXipHdr() -{ - P9XipHeader *hdr = (P9XipHeader *)( g_headerAddr ); - return hdr; -} +#include "sbeXipUtils.H" // Load section to destination address int32_t loadSection( P9XipSection * i_section, uint64_t *i_destAddr ) |