x86: gen_mmu: don't force extra map argument to be base 16
When converting the address and size arguments for extra mappings, the script assumes they are always base 16. This is not always the case. So let Python's own int() decides how to interpret the values as it supports "0x" prefix also. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
c11ad59ed6
commit
ea0f9474f7
1 changed files with 2 additions and 2 deletions
|
@ -667,8 +667,8 @@ def map_extra_regions(pt):
|
|||
one_map = {}
|
||||
|
||||
one_map['cmdline'] = entry
|
||||
one_map['phys'] = int(elements[0], 16)
|
||||
one_map['size']= int(elements[1], 16)
|
||||
one_map['phys'] = int(elements[0], 0)
|
||||
one_map['size']= int(elements[1], 0)
|
||||
one_map['large_page'] = False
|
||||
|
||||
flags = FLAG_P | ENTRY_XD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue