|
@@ -280,7 +280,9 @@ static void __init srmmu_nocache_init(void)
|
|
|
SRMMU_NOCACHE_ALIGN_MAX, 0UL);
|
|
|
memset(srmmu_nocache_pool, 0, srmmu_nocache_size);
|
|
|
|
|
|
- srmmu_nocache_bitmap = __alloc_bootmem(bitmap_bits >> 3, SMP_CACHE_BYTES, 0UL);
|
|
|
+ srmmu_nocache_bitmap =
|
|
|
+ __alloc_bootmem(BITS_TO_LONGS(bitmap_bits) * sizeof(long),
|
|
|
+ SMP_CACHE_BYTES, 0UL);
|
|
|
bit_map_init(&srmmu_nocache_map, srmmu_nocache_bitmap, bitmap_bits);
|
|
|
|
|
|
srmmu_swapper_pg_dir = __srmmu_get_nocache(SRMMU_PGD_TABLE_SIZE, SRMMU_PGD_TABLE_SIZE);
|