Merge pull request #783 from Nanquitas/patch-1

Watchpoints: fix read DSCR to enable MonitorMode
This commit is contained in:
TuxSH 2017-08-14 19:04:15 +02:00 committed by GitHub
commit bd1d4a77fe

View File

@ -60,7 +60,7 @@ static void K_EnableMonitorModeDebugging(void)
__asm__ __volatile__("cpsid aif");
u32 DSCR;
__asm__ __volatile__("mrc p15, 0, %[val], c0, c1, 0" : [val] "=r" (DSCR));
__asm__ __volatile__("mrc p14, 0, %[val], c0, c1, 0" : [val] "=r" (DSCR));
DSCR |= 0x8000;
__asm__ __volatile__("mcr p14, 0, %[val], c0, c1, 0" :: [val] "r" (DSCR));
}