summaryrefslogtreecommitdiff
path: root/test-cli
diff options
context:
space:
mode:
authorManel Caro <mcaro@iseebcn.com>2020-03-04 19:38:24 +0100
committerManel Caro <mcaro@iseebcn.com>2020-03-04 19:38:24 +0100
commit23e0cea58ba6ac5357db507b0ac7f8dfcf223326 (patch)
tree8b6abe867d182c5e209f386531a4261211ee5b7d /test-cli
parent7490324bc98248fc82be814920e2deff4114acc8 (diff)
downloadboard-23e0cea58ba6ac5357db507b0ac7f8dfcf223326.zip
board-23e0cea58ba6ac5357db507b0ac7f8dfcf223326.tar.gz
board-23e0cea58ba6ac5357db507b0ac7f8dfcf223326.tar.bz2
Modify typos
Diffstat (limited to 'test-cli')
-rw-r--r--test-cli/test/helpers/get_dieid.py7
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