summaryrefslogtreecommitdiffstats
path: root/src/occ_405/main.c
diff options
context:
space:
mode:
authorWilliam Bryan <wilbryan@us.ibm.com>2017-02-10 10:33:57 -0600
committerWilliam A. Bryan <wilbryan@us.ibm.com>2017-02-14 12:44:41 -0500
commitcae65cfeafd39ade2e6556974edf43313f92cdff (patch)
treefaa7522af4f3d84dd5bdd9efda654cdfdd2b58f9 /src/occ_405/main.c
parent3efbd9ee6aa3547e856c72f37f7e734000c89b56 (diff)
downloadtalos-occ-cae65cfeafd39ade2e6556974edf43313f92cdff.tar.gz
talos-occ-cae65cfeafd39ade2e6556974edf43313f92cdff.zip
GPE Nest Frequency & Amester Name Changes
Change-Id: I46ee2502dcfd532b6ff30a32b0a645aecc285f21 RTC:168527 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36293 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_405/main.c')
-rwxr-xr-xsrc/occ_405/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/occ_405/main.c b/src/occ_405/main.c
index 873e65d..ba36b59 100755
--- a/src/occ_405/main.c
+++ b/src/occ_405/main.c
@@ -104,7 +104,8 @@ extern uint16_t G_proc_fmax_mhz; // max(turbo,uturbo) frequencies
// Set main thread timer for one second
#define MAIN_THRD_TIMER_SLICE ((SsxInterval) SSX_SECONDS(1))
-
+// Define location for data shared with GPEs
+gpe_shared_data_t G_shared_gpe_data __attribute__ ((section (".gpe_shared")));
// SIMICS printf/printk
SimicsStdio G_simics_stdout;
@@ -1796,6 +1797,10 @@ int main(int argc, char **argv)
0,
l_tb_freq_hz);
+ // Store the nest / 4 frequency in shared SRAM so the GPEs
+ // can be initialized with the correct timebase as well.
+ G_shared_gpe_data.nest_freq_div = l_tb_freq_hz;
+
CHECKPOINT(SSX_INITIALIZED);
// TRAC_XXX needs ssx services, traces can only be done after ssx_initialize
TRAC_init_buffers();
OpenPOWER on IntegriCloud