modified (a<<b-1) to ((a<<b)-1) in micpa()

This commit is contained in:
Masamichi Takagi m-takagi@ab.jp.nec.com
2012-10-06 03:11:15 +09:00
parent 1755ac4d8d
commit f1da972bb7

View File

@ -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;