Skip to content

Commit 635267b

Browse files
zx2c4stffrdhrn
authored andcommitted
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 <[email protected]> Cc: Peter Maydell <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Stafford Horne <[email protected]>
1 parent 065b8ce commit 635267b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/openrisc/kernel/process.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ void machine_restart(char *cmd)
5252
{
5353
do_kernel_restart(cmd);
5454

55+
__asm__("l.nop 13");
56+
5557
/* Give a grace period for failure to restart of 1s */
5658
mdelay(1000);
5759

0 commit comments

Comments
 (0)