set page protection for temporary breakpoints.

This commit is contained in:
Kelvin Sherlock 2019-03-13 20:15:17 -04:00
parent e07f0a99e7
commit 027689aea5

View File

@ -32,6 +32,9 @@ extern word32 g_mp_breakpoints[];
extern int g_num_bp_breakpoints;
extern word32 g_bp_breakpoints[];
extern int g_num_tp_breakpoints;
extern word32 g_tp_breakpoints[];
extern Page_info page_info_rd_wr[];
@ -273,6 +276,14 @@ void fixup_brks() {
/* why IO_TMP? */
}
for (i = 0; i < g_num_tp_breakpoints; ++i) {
page = (g_tp_breakpoints[i] >> 8) & 0xffff;
val = GET_PAGE_INFO_RD(page);
val = (Pg_info)((ptrdiff_t)val | BANK_BREAK);
SET_PAGE_INFO_RD(page, val);
/* why IO_TMP? */
}
for (i = 0; i < g_num_mp_breakpoints; ++i) {
page = (g_mp_breakpoints[i] >> 8) & 0xffff;
val = GET_PAGE_INFO_WR(page);