For mini-OS to support suspend and restore, the kernel will have to suspend
different modules such as xenbus, console, irq, etc. During save/restore the
kernel and arch pre_suspend and post_suspend functions will be invoked to
suspend/resume each of the modules.
Signed-off-by: Bruno Alvisio <bruno.alvisio@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
start_kernel();
}
+void arch_pre_suspend(void)
+{
+
+}
+
+void arch_post_suspend(int canceled)
+{
+
+}
+
void
arch_fini(void)
{
extern char cmdline[MAX_CMDLINE_SIZE];
void start_kernel(void);
+void pre_suspend(void);
+void post_suspend(int canceled);
void do_exit(void) __attribute__((noreturn));
void arch_do_exit(void);
void stop_kernel(void);
void xen_callback_vector(void);
#endif
+void arch_pre_suspend(void);
+void arch_post_suspend(int canceled);
void arch_fini(void);
-
-
#ifdef CONFIG_PARAVIRT
/*
run_idle_thread();
}
+void pre_suspend(void)
+{
+
+}
+
+void post_suspend(int canceled)
+{
+
+}
+
void stop_kernel(void)
{
/* TODO: fs import */