modified (a<<b-1) to ((a<<b)-1) in micpa()
This commit is contained in:
parent
1755ac4d8d
commit
f1da972bb7
@ -198,7 +198,7 @@ unsigned int sbox_read(int offset)
|
||||
|
||||
/* insert entry into map which maps mic physical address to host physical address */
|
||||
|
||||
unsigned int free_bitmap_micpa = ((~(1ULL<<(NUM_SMPT_ENTRIES_IN_USE - NUM_SMPT_ENTRIES_MICPA)) - 1)&(1ULL << NUM_SMPT_ENTRIES_IN_USE - 1));
|
||||
unsigned int free_bitmap_micpa = ((~(1ULL<<(NUM_SMPT_ENTRIES_IN_USE - NUM_SMPT_ENTRIES_MICPA)) - 1)&((1ULL << NUM_SMPT_ENTRIES_IN_USE) - 1));
|
||||
|
||||
void aal_mc_map_micpa(unsigned long host_pa, unsigned long* mic_pa) {
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user