aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/skiboot.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index 97bdce7..3f7c077 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -86,6 +86,11 @@ struct debug_descriptor {
};
extern struct debug_descriptor debug_descriptor;
+static inline bool opal_booting(void)
+{
+ return !(debug_descriptor.state_flags & OPAL_BOOT_COMPLETE);
+}
+
/* Console logging */
#define PR_EMERG 0
#define PR_ALERT 1