/* Note: The Memory Protection Unit(MPU) allows to partition memory into regions and set individual protection attributes for each region. In absence of MPU a default map will take effect. make sure to run this code from a region which has execution permissions by default.   */
void disable_mpu(void)
/* Note: The Memory Protection Unit(MPU) allows to partition memory into regions and set individual protection attributes for each region. In absence of MPU a default map will take effect. make sure to run this code from a region which has execution permissions by default.   */
void disable_mpu(void)
{
	u32 reg;
	reg = get_cr();
	reg &= ~CR_M;
	dsb();
	set_cr(reg);
	isb();
}