mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
hv.py: Add reboot() command to reboot the system and exit
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
a175b6d159
commit
7b22a72442
1 changed files with 5 additions and 0 deletions
|
@ -459,6 +459,11 @@ class HV:
|
|||
def exit(self):
|
||||
raise shell.ExitConsole(EXC_RET.EXIT_GUEST)
|
||||
|
||||
def reboot(self):
|
||||
print("Hard rebooting the system")
|
||||
self.p.reboot()
|
||||
sys.exit(0)
|
||||
|
||||
def hvc(self, arg):
|
||||
assert 0 <= arg <= 0xffff
|
||||
return 0xd4000002 | (arg << 5)
|
||||
|
|
Loading…
Reference in a new issue