stop() disables all interrupts and enters halt().
Signed-off-by: Ralf Ramsauer <[email protected]>
---
inmates/lib/inmate_common.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/inmates/lib/inmate_common.h b/inmates/lib/inmate_common.h
index 6c779b53..dfe33347 100644
--- a/inmates/lib/inmate_common.h
+++ b/inmates/lib/inmate_common.h
@@ -61,6 +61,12 @@ typedef enum { true = 1, false = 0 } bool;
#define comm_region ((struct jailhouse_comm_region *)COMM_REGION_BASE)
+static inline void __attribute__((noreturn)) stop(void)
+{
+ arch_disable_irqs();
+ halt();
+}
+
void printk(const char *fmt, ...);
void *memset(void *s, int c, unsigned long n);
--
2.17.0
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.