summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/runtime/interface.h16
-rw-r--r--src/include/usr/runtime/rt_targeting.H6
2 files changed, 22 insertions, 0 deletions
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
diff --git a/src/include/usr/runtime/rt_targeting.H b/src/include/usr/runtime/rt_targeting.H
index 6b7ee4075..7559b6170 100644
--- a/src/include/usr/runtime/rt_targeting.H
+++ b/src/include/usr/runtime/rt_targeting.H
@@ -67,6 +67,12 @@ namespace RT_TARG
*/
errlHndl_t getHbTarget(rtChipId_t i_rt_chip_id,
TARGETING::Target *& o_target);
+
+ /**
+ * @brief Apply ATTR_TMP overrides to be available for run time
+ */
+ void applyTempOverrides( );
+
};
#endif
OpenPOWER on IntegriCloud