public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47701fb
)
syscall_other: make halt tell you it's done
author
Alan Cox
<alan@linux.intel.com>
Sat, 7 Jul 2018 18:48:59 +0000
(19:48 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 7 Jul 2018 18:48:59 +0000
(19:48 +0100)
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
patch
|
blob
|
history
diff --git
a/Kernel/syscall_other.c
b/Kernel/syscall_other.c
index
69fab02
..
ead1e2c
100644
(file)
--- 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();