mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 00:10:18 +00:00
proxy.py: Rename reboot() to reload()
reboot() is confusing (it doesn't reboot the system) Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
393089f076
commit
89a7a3a5b1
2 changed files with 3 additions and 3 deletions
|
@ -111,8 +111,8 @@ if args.call:
|
|||
print(f"Jumping to stub at 0x{stub.addr:x}")
|
||||
p.call(stub.addr, new_base + bootargs_off, image_addr, new_base, image_size, reboot=True)
|
||||
else:
|
||||
print(f"Rebooting into stub at 0x{stub.addr:x}")
|
||||
p.reboot(stub.addr, new_base + bootargs_off, image_addr, new_base, image_size)
|
||||
print(f"Reloading into stub at 0x{stub.addr:x}")
|
||||
p.reload(stub.addr, new_base + bootargs_off, image_addr, new_base, image_size)
|
||||
|
||||
time.sleep(1)
|
||||
iface.nop()
|
||||
|
|
|
@ -653,7 +653,7 @@ class M1N1Proxy:
|
|||
if len(args) > 4:
|
||||
raise ValueError("Too many arguments")
|
||||
return self.request(self.P_CALL, addr, *args, reboot=reboot)
|
||||
def reboot(self, addr, *args, el1=False):
|
||||
def reload(self, addr, *args, el1=False):
|
||||
if len(args) > 4:
|
||||
raise ValueError("Too many arguments")
|
||||
if el1:
|
||||
|
|
Loading…
Reference in a new issue