From 664897ffe7ac048a96d9eb821f1df24359d4784f Mon Sep 17 00:00:00 2001 From: Bill Schwartz Date: Wed, 19 Aug 2015 18:33:05 -0500 Subject: Propagate ATTR_TMP overrides into HBRT Load ATTR_TMP overrides at host boot runtime RTC: 129055 Change-Id: Id01889b6a1498af05732cee7c797d3e18af10f8d Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19951 Reviewed-by: A. Patrick Williams III Tested-by: Jenkins Server --- src/include/runtime/interface.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/include/runtime') diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index 055f751a5..e88a64241 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -497,9 +497,25 @@ typedef struct runtimeInterfaces } runtimeInterfaces_t; +// For internal use. These routines are to be called after all other set up +// is complete. +// This approach is taken due to complication with linking to rt_main, the +// order of static global initializers, constructors, and vfs_module_init. + #ifdef __HOSTBOOT_RUNTIME +struct postInitCalls_t +{ + /** + * @brief Apply ATTR_TMP overrides + * + */ + void (*callApplyTempOverrides)(); + +}; + extern hostInterfaces_t* g_hostInterfaces; runtimeInterfaces_t* getRuntimeInterfaces(); +postInitCalls_t* getPostInitCalls(); #endif #endif //__HOSTBOOT_RUNTIME_INTERFACE_VERSION_ONLY -- cgit v1.2.3