From 8ff4a4a1e5413b8d9c67a01104f7e9c8da220064 Mon Sep 17 00:00:00 2001 From: ultramagnus_tcv Date: Wed, 28 Oct 2015 07:43:37 -0500 Subject: [PATCH] Fixed Flag Byte to account for drivers that need to be loaded on a page boundary. --- 3Slurp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/3Slurp.py b/3Slurp.py index 0ae11ae..42538eb 100644 --- a/3Slurp.py +++ b/3Slurp.py @@ -91,7 +91,9 @@ for i in range(0,len(drivers_list)): # begin drivers_list[i]['name'] = name # Store name SOSfile.seek(15 - name_len,1) # Skip past remainder of 15-byte long name field flag = readUnpack(1, type = '1') # Grab Flag byte - if flag == 128: # Is flag 0x80? + if flag == 192: # Is flag 0xc0? + drivers_list[i]['flag'] = 'ACTIVE, Load on Boundary' # Yes, ACTIVE and load on boundary + elif flag == 128: # Is flag 0x80? drivers_list[i]['flag'] = 'ACTIVE' # Insert Flag into dictionary with value ACTIVE else: # otherwise... drivers_list[i]['flag'] = 'INACTIVE' # Insert Flag into dictionary with value INACTIVE @@ -105,7 +107,7 @@ for i in range(0,len(drivers_list)): # begin dev_type = readUnpack(2, type ='b') # Grab bytes for type and subtype drivers_list[i]['dev_type'] = dev_types[dev_type] - print drivers_list[i]['dev_type'] + print drivers_list[i] # print drivers_list[i]['name_len'] SOSfile.close()