diff options
Diffstat (limited to 'sys/compat/linuxkpi/common')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/kernel.h | 11 | ||||
| -rw-r--r-- | sys/compat/linuxkpi/common/src/linux_compat.c | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h index e3ac4a05612c..5e94a5cee28c 100644 --- a/sys/compat/linuxkpi/common/include/linux/kernel.h +++ b/sys/compat/linuxkpi/common/include/linux/kernel.h @@ -384,4 +384,15 @@ might_fault(void) #define non_block_start() do { } while (0) #define non_block_end() do { } while (0) +extern enum system_states { + SYSTEM_BOOTING, + SYSTEM_SCHEDULING, + SYSTEM_FREEING_INITMEM, + SYSTEM_RUNNING, + SYSTEM_HALT, + SYSTEM_POWER_OFF, + SYSTEM_RESTART, + SYSTEM_SUSPEND, +} system_state; + #endif /* _LINUXKPI_LINUX_KERNEL_H_ */ diff --git a/sys/compat/linuxkpi/common/src/linux_compat.c b/sys/compat/linuxkpi/common/src/linux_compat.c index 0c7032fa6e23..2fd502990eb3 100644 --- a/sys/compat/linuxkpi/common/src/linux_compat.c +++ b/sys/compat/linuxkpi/common/src/linux_compat.c @@ -167,6 +167,8 @@ wait_queue_head_t linux_var_waitq; const guid_t guid_null; +enum system_states system_state = SYSTEM_RUNNING; + int panic_cmp(struct rb_node *one, struct rb_node *two) { |
