u3: initialize guard page in u3e_init()

This commit is contained in:
Peter McEvoy 2022-07-06 18:29:16 -07:00
parent 1ea6e10a36
commit a830db5f68
4 changed files with 16 additions and 2 deletions

View File

@ -84,4 +84,9 @@
void
u3e_foul(void);
/* u3e_init(): initialize page tracking.
*/
void
u3e_init(void);
#endif /* ifndef U3_EVENTS_H */

View File

@ -1062,8 +1062,6 @@ u3e_live(c3_o nuu_o, c3_c* dir_c)
}
}
_ce_center_guard_page();
return nuu_o;
}
@ -1088,3 +1086,9 @@ u3e_foul(void)
{
memset((void*)u3P.dit_w, 0xff, sizeof(u3P.dit_w));
}
void
u3e_init(void)
{
_ce_center_guard_page();
}

View File

@ -1804,6 +1804,10 @@ u3m_boot(c3_c* dir_c)
*/
u3m_pave(nuu_o);
/* Place the guard page.
*/
u3e_init();
/* Initialize the jet system.
*/
{

View File

@ -7,6 +7,7 @@ _setup(void)
{
u3m_init();
u3m_pave(c3y);
u3e_init();
}
static u3_noun