From d4a1b46b3eb78b592adf1829e81bdcd4a4a3dfcd Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 7 Jul 2018 19:48:59 +0100 Subject: [PATCH] syscall_other: make halt tell you it's done Useful when you have a final sync to slow media, or a slow shutdown process and you want to know when it's finally safe to hit off. --- Kernel/syscall_other.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kernel/syscall_other.c b/Kernel/syscall_other.c index 69fab02f..ead1e2cf 100644 --- a/Kernel/syscall_other.c +++ b/Kernel/syscall_other.c @@ -535,8 +535,10 @@ arg_t _uadmin(void) if (func != AD_NOSYNC) sync(); /* Wants moving into machine specific files */ - if (cmd == A_SHUTDOWN || cmd == A_DUMP) + if (cmd == A_SHUTDOWN || cmd == A_DUMP) { + kputs("Halted.\n"); platform_monitor(); + } if (cmd == A_REBOOT) platform_reboot(); -- 2.34.1