diff options
author | Sachin Gupta <sgupta2m@in.ibm.com> | 2015-08-31 23:22:41 -0500 |
---|---|---|
committer | Gregory S. Still <stillgs@us.ibm.com> | 2015-09-08 10:30:42 -0500 |
commit | 07699a5c8dbf0b9fa4bfce3ae16fecc0a905029c (patch) | |
tree | 978bd3564514c688497365bdee90533e8c1a85c9 /hwpf/plat/src | |
parent | 45016c8b7a8688b6c536ea0216eeb91193a29542 (diff) | |
download | talos-sbe-07699a5c8dbf0b9fa4bfce3ae16fecc0a905029c.tar.gz talos-sbe-07699a5c8dbf0b9fa4bfce3ae16fecc0a905029c.zip |
Fixed compile issue
Change-Id: Iec1c02bd7d7a9e423121f697e8db608efc539c5f
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20259
Tested-by: Jenkins Server
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'hwpf/plat/src')
-rw-r--r-- | hwpf/plat/src/target.C | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/hwpf/plat/src/target.C b/hwpf/plat/src/target.C index bceb2e33..be9727f9 100644 --- a/hwpf/plat/src/target.C +++ b/hwpf/plat/src/target.C @@ -34,6 +34,12 @@ // call. std::vector<fapi2::plat_target_handle_t> G_vec_targets; +fapi2attr::SystemAttributes_t* G_system_attributes_ptr; +fapi2attr::ProcChipAttributes_t* G_proc_chip_attributes_ptr; +fapi2attr::PervAttributes_t* G_perv_attributes_ptr; +fapi2attr::CoreAttributes_t* G_core_attributes_ptr; +fapi2attr::EQAttributes_t* G_eq_attributes_ptr; +fapi2attr::EXAttributes_t* G_ex_attributes_ptr; namespace fapi2 { @@ -289,10 +295,18 @@ fapi_try_exit: /// attributes /// this will move to plat_target.H formally fapi2::ReturnCode plat_TargetsInit() { - bool b_present = false; uint32_t c = 0; + // 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; + + // This is workaround. Currently we do not have code to initialise // global objects. So initializing global objects against using local // initialized object |