diff options
author | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-02-09 22:42:48 -0600 |
---|---|---|
committer | AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com> | 2016-05-03 07:35:29 -0400 |
commit | 1a83cd915cd2be01158eb7016d7f92e1f7c54d80 (patch) | |
tree | e95f297d4ad13f058dbf4e80033bbaa77164c00c /hwpf/src | |
parent | ce2b54ae9458775feac2fab757afadc6817605a8 (diff) | |
download | talos-sbe-1a83cd915cd2be01158eb7016d7f92e1f7c54d80.tar.gz talos-sbe-1a83cd915cd2be01158eb7016d7f92e1f7c54d80.zip |
Single SEEPROM image for SBE
Currently we build seprarate images for PIBMEM and SEEPROM. Later
using XIP tools we add pibmem image to seeprom. This activity
will create only one image for SEEPROM and PIBMEM
RTC: 145589
Change-Id: I5f560afaf310ace539a793ea7c2ce710dcb3fcc1
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/20653
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 'hwpf/src')
-rw-r--r-- | hwpf/src/plat/target.C | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/hwpf/src/plat/target.C b/hwpf/src/plat/target.C index fea3a6f7..8d098fb1 100644 --- a/hwpf/src/plat/target.C +++ b/hwpf/src/plat/target.C @@ -33,6 +33,15 @@ // call. std::vector<fapi2::plat_target_handle_t> G_vec_targets; +// Global variables for fixed section in pibmem +fapi2attr::SystemAttributes_t G_system_attrs; +fapi2attr::ProcChipAttributes_t G_proc_chip_attrs; +fapi2attr::PervAttributes_t G_perv_attrs; +fapi2attr::CoreAttributes_t G_core_attrs; +fapi2attr::EQAttributes_t G_eq_attrs; +fapi2attr::EXAttributes_t G_ex_attrs; + + fapi2attr::SystemAttributes_t* G_system_attributes_ptr; fapi2attr::ProcChipAttributes_t* G_proc_chip_attributes_ptr; fapi2attr::PervAttributes_t* G_perv_attributes_ptr; @@ -296,13 +305,21 @@ fapi_try_exit: { bool b_present = false; + // Copy fixed section from SEEPROM to PIBMEM + G_system_attrs = G_system_attributes; + G_proc_chip_attrs = G_proc_chip_attributes; + G_perv_attrs = G_perv_attributes; + G_core_attrs = G_core_attributes; + G_eq_attrs = G_eq_attributes; + G_ex_attrs = G_ex_attributes; + // Initialise global attribute pointers - G_system_attributes_ptr = &G_system_attributes; - G_proc_chip_attributes_ptr = &G_proc_chip_attributes; - G_perv_attributes_ptr = &G_perv_attributes; - G_core_attributes_ptr = &G_core_attributes; - G_eq_attributes_ptr = &G_eq_attributes; - G_ex_attributes_ptr = &G_ex_attributes; + G_system_attributes_ptr = &G_system_attrs; + G_proc_chip_attributes_ptr = &G_proc_chip_attrs; + G_perv_attributes_ptr = &G_perv_attrs; + G_core_attributes_ptr = &G_core_attrs; + G_eq_attributes_ptr = &G_eq_attrs; + G_ex_attributes_ptr = &G_ex_attrs; std::vector<fapi2::plat_target_handle_t>::iterator tgt_iter; |