Skip to content

Commit

Permalink
Merge pull request #783 from Nanquitas/patch-1
Browse files Browse the repository at this point in the history
Watchpoints: fix read DSCR to enable MonitorMode
  • Loading branch information
TuxSH committed Aug 14, 2017
2 parents 9c6b540 + f235bc8 commit bd1d4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysmodules/rosalina/source/gdb/watchpoints.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit bd1d4a7

Please sign in to comment.