[PATCH 02/13] powerpc/64: Provide functions for accessing POWER9 partition table
Balbir Singh
bsingharora at gmail.com
Sat Nov 19 11:45:52 AEDT 2016
> +#ifdef CONFIG_PPC_BOOK3S_64
> +void mmu_partition_table_init(void)
> +{
> + unsigned long patb_size = 1UL << PATB_SIZE_SHIFT;
> +
> + BUILD_BUG_ON_MSG((PATB_SIZE_SHIFT > 24), "Partition table size too large.");
This should be 36 (12 + 24)
> + partition_tb = __va(memblock_alloc_base(patb_size, patb_size,
> + MEMBLOCK_ALLOC_ANYWHERE));
> +
Balbir
More information about the Linuxppc-dev
mailing list