diff options
author | Shakeeb <shakeebbk@in.ibm.com> | 2016-04-28 05:57:28 -0500 |
---|---|---|
committer | Gregory S. Still <stillgs@us.ibm.com> | 2016-05-16 08:36:22 -0400 |
commit | 1349a59f0b860c268bd178ad099269dccd9f8a10 (patch) | |
tree | 10d86a55878c3fe322df84c68fedc9fded76539c /hwpf/src | |
parent | e9749b66aecacff05b7a38f9c88263a2a5fce98b (diff) | |
download | talos-sbe-1349a59f0b860c268bd178ad099269dccd9f8a10.tar.gz talos-sbe-1349a59f0b860c268bd178ad099269dccd9f8a10.zip |
Packing fixed section in PIBMEM
A new structure to be stored in PIBMEM with contents
of fixed section from SEEPROM
Change-Id: I2a1b30499c44d5d4ee3b95f6c863b241f00009be
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24422
Tested-by: Jenkins Server
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'hwpf/src')
-rw-r--r-- | hwpf/src/plat/target.C | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/hwpf/src/plat/target.C b/hwpf/src/plat/target.C index 8d098fb1..4a95e637 100644 --- a/hwpf/src/plat/target.C +++ b/hwpf/src/plat/target.C @@ -28,19 +28,16 @@ #include <plat_target_pg_attributes.H> #include <assert.h> +uint32_t CHIPLET_PG_ARRAY_ENTRIES = sizeof(CHIPLET_PG_ARRAY) / + sizeof(chiplet_pg_entry_t); + // Global Vector containing ALL targets. This structure is referenced by // fapi2::getChildren to produce the resultant returned vector from that // 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; - +// Global variable for fixed section in pibmem +G_sbe_attrs_t G_sbe_attrs; fapi2attr::SystemAttributes_t* G_system_attributes_ptr; fapi2attr::ProcChipAttributes_t* G_proc_chip_attributes_ptr; @@ -306,20 +303,20 @@ 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; + G_sbe_attrs.G_system_attrs = G_system_attributes; + G_sbe_attrs.G_proc_chip_attrs = G_proc_chip_attributes; + G_sbe_attrs.G_perv_attrs = G_perv_attributes; + G_sbe_attrs.G_core_attrs = G_core_attributes; + G_sbe_attrs.G_eq_attrs = G_eq_attributes; + G_sbe_attrs.G_ex_attrs = G_ex_attributes; // Initialise global attribute pointers - 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; + G_system_attributes_ptr = &(G_sbe_attrs.G_system_attrs); + G_proc_chip_attributes_ptr = &(G_sbe_attrs.G_proc_chip_attrs); + G_perv_attributes_ptr = &(G_sbe_attrs.G_perv_attrs); + G_core_attributes_ptr = &(G_sbe_attrs.G_core_attrs); + G_eq_attributes_ptr = &(G_sbe_attrs.G_eq_attrs); + G_ex_attributes_ptr = &(G_sbe_attrs.G_ex_attrs); std::vector<fapi2::plat_target_handle_t>::iterator tgt_iter; |