/* Calculate the number of pages, each of the given size, that fit in a memory of the specified size, respecting the HW requirement that the number of pages must be a multiple of 24.  */
static unsigned int pm_num_pages(unsigned int mem_size, unsigned int pg_size)
/* Calculate the number of pages, each of the given size, that fit in a memory of the specified size, respecting the HW requirement that the number of pages must be a multiple of 24.  */
static unsigned int pm_num_pages(unsigned int mem_size, unsigned int pg_size)
{
	unsigned int n = mem_size / pg_size;
	return n - n % 24;
}