mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 00:10:18 +00:00
experiments/aop.py: Make _bootargs_span a property
Signed-off-by: Martin Povišer <povik@protonmail.com>
This commit is contained in:
parent
1d2a157fe8
commit
f87d65a971
1 changed files with 3 additions and 2 deletions
|
@ -37,6 +37,7 @@ class AOPClient(StandardASC):
|
|||
|
||||
super().__init__(u, self.base, dart)
|
||||
|
||||
@property
|
||||
def _bootargs_span(self):
|
||||
base = self.fw_base + self.p.read32(self.fw_base + 0x224)
|
||||
length = self.p.read32(self.fw_base + 0x228)
|
||||
|
@ -44,11 +45,11 @@ class AOPClient(StandardASC):
|
|||
return (base, length)
|
||||
|
||||
def read_bootargs(self):
|
||||
blob = self.iface.readmem(*self._bootargs_span())
|
||||
blob = self.iface.readmem(*self._bootargs_span)
|
||||
return ASCArgumentSection(blob)
|
||||
|
||||
def write_bootargs(self, args):
|
||||
base, _ = self._bootargs_span()
|
||||
base, _ = self._bootargs_span
|
||||
self.iface.writemem(base, args.to_bytes())
|
||||
|
||||
def update_bootargs(self, keyvals):
|
||||
|
|
Loading…
Reference in a new issue