I want to use DMEM under supervisor mode by configuration of DMEMCTL1 and MPU as followed.
asm("e_lis r3, 0xAAAA");
asm("e_or2i r3, 0xAAAA");
/* dcr 498: DMEMCTL1, all S/U access to 4 DMEM quadrants according to MPU */
asm("mtdcr 498, r3");
//DMEMSREC 0x5080C000 -0x5080FFFF
But I can still write in the address from 0x5080C000 to 0x5080FFFF, when I am in user mode. What have I done wrong?