mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 09:43:14 +01:00
Removed TEXT_OFFSET parameter from linux configuration
This parameter does not significantly pose a restriction on configuration. It can be adjusted depending on phys_offset. Therefore we don't maintain it.
This commit is contained in:
@@ -14,7 +14,6 @@ class Container:
|
||||
self.pager_size = 0
|
||||
self.linux_page_offset = 0
|
||||
self.linux_phys_offset = 0
|
||||
self.linux_text_offset = 0
|
||||
self.linux_mapsize = 0
|
||||
self.physmem = {}
|
||||
self.physmem["START"] = {}
|
||||
@@ -85,10 +84,6 @@ class configuration:
|
||||
elif param[:len("LINUX_PHYS_OFFSET")] == "LINUX_PHYS_OFFSET":
|
||||
self.containers[id].linux_phys_offset = int(val, 0)
|
||||
self.containers[id].pager_lma += int(val, 0)
|
||||
elif param[:len("LINUX_TEXT_OFFSET")] == "LINUX_TEXT_OFFSET":
|
||||
self.containers[id].linux_text_offset = int(val, 0)
|
||||
self.containers[id].pager_lma += int(val, 0)
|
||||
self.containers[id].pager_vma += int(val, 0)
|
||||
elif re.match(r"(VIRT|PHYS){1}([0-9]){1}(_){1}(START|END){1}", param):
|
||||
matchobj = re.match(r"(VIRT|PHYS){1}([0-9]){1}(_){1}(START|END){1}", param)
|
||||
virtphys, regionidstr, discard1, startend = matchobj.groups()
|
||||
|
||||
Reference in New Issue
Block a user