mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 22:53:04 +00:00
m1n1.hw.admac: Add fill_canary()
Signed-off-by: Martin Povišer <povik@protonmail.com>
This commit is contained in:
parent
e20509f42d
commit
42f7f46bdc
1 changed files with 7 additions and 0 deletions
|
@ -380,6 +380,13 @@ class ADMAC(Reloadable):
|
|||
assert self.dart is not None
|
||||
self.dart.iowrite(self.dart_stream, base, data)
|
||||
|
||||
def fill_canary(self):
|
||||
ranges = self.dart.iotranslate(self.dart_stream,
|
||||
self.resmem_iova, self.resmem_size)
|
||||
assert len(ranges) == 1
|
||||
start, size = ranges[0]
|
||||
self.p.memset8(start, 0xba, size)
|
||||
|
||||
def get_buffer(self, size):
|
||||
assert size < self.resmem_size
|
||||
|
||||
|
|
Loading…
Reference in a new issue