diff options
author | Manel Caro <mcaro@iseebcn.com> | 2020-03-04 19:38:24 +0100 |
---|---|---|
committer | Manel Caro <mcaro@iseebcn.com> | 2020-03-04 19:38:24 +0100 |
commit | 23e0cea58ba6ac5357db507b0ac7f8dfcf223326 (patch) | |
tree | 8b6abe867d182c5e209f386531a4261211ee5b7d /test-cli/test/helpers/get_dieid.py | |
parent | 7490324bc98248fc82be814920e2deff4114acc8 (diff) | |
download | board-23e0cea58ba6ac5357db507b0ac7f8dfcf223326.zip board-23e0cea58ba6ac5357db507b0ac7f8dfcf223326.tar.gz board-23e0cea58ba6ac5357db507b0ac7f8dfcf223326.tar.bz2 |
Modify typos
Diffstat (limited to 'test-cli/test/helpers/get_dieid.py')
-rw-r--r-- | test-cli/test/helpers/get_dieid.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test-cli/test/helpers/get_dieid.py b/test-cli/test/helpers/get_dieid.py index 029ddb5..48e724e 100644 --- a/test-cli/test/helpers/get_dieid.py +++ b/test-cli/test/helpers/get_dieid.py @@ -1,8 +1,11 @@ import mmap import os import struct + MAP_MASK = mmap.PAGESIZE - 1 WORD = 4 + + def read(addr): """ Read from any location in memory Returns the readed value in hexadecimal format @@ -30,8 +33,8 @@ def getRegisters(model): return registers def genDieid(modelid): - registers=getRegisters(modelid) - id="" + registers = getRegisters(modelid) + id = "" for i in range(len(registers)): id=id+(read(registers[i])) return id |