diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-04-28 13:11:39 +0200 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2022-05-23 10:15:49 +0200 |
commit | 635267b7a8f1746d72d6b23030863f8779618584 (patch) | |
tree | 5fcc891b463653f80dcb6630fcbf57c152d42dbc /arch/openrisc | |
parent | openrisc: remove bogus nops and shutdowns (diff) | |
download | linux-635267b7a8f1746d72d6b23030863f8779618584.tar.xz linux-635267b7a8f1746d72d6b23030863f8779618584.zip |
openrisc: define nop command for simulator reboot
The simulator defines `l.nop 1` for shutdown, but doesn't have anything
for reboot. Use 13 for this, which is currently unused, dubbed
`NOP_REBOOT`.
Cc: Stafford Horne <shorne@gmail.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Link: https://lore.kernel.org/all/YmnaDUpVI5ihgvg6@zx2c4.com/
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/kernel/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/process.c b/arch/openrisc/kernel/process.c index 3c0c91bcdcba..4cce95fa6eb5 100644 --- a/arch/openrisc/kernel/process.c +++ b/arch/openrisc/kernel/process.c @@ -52,6 +52,8 @@ void machine_restart(char *cmd) { do_kernel_restart(cmd); + __asm__("l.nop 13"); + /* Give a grace period for failure to restart of 1s */ mdelay(1000); |