Print memory size on load.

This commit is contained in:
C. Guy Yarvin 2014-11-25 17:31:11 -08:00
parent 80d6f74886
commit 4d900b5d9d
2 changed files with 6 additions and 3 deletions

View File

@ -18,7 +18,7 @@
c3_w nor_w; // new page count north
c3_w sou_w; // new page count south
c3_w pgs_w; // number of changed pages
u3e_line mem_u[0]; // per page
u3e_line mem_u[0]; // per page
} u3e_control;
/* u3_cs_patch: memory change, top level.

7
n/e.c
View File

@ -837,7 +837,6 @@ u3e_live(c3_o nuu_o, c3_c* dir_c)
return u3e_live(c3y, dir_c);
}
}
/* Load any patch files; apply them to images.
*/
if ( 0 != (pat_u = _ce_patch_open()) ) {
@ -875,9 +874,13 @@ u3e_live(c3_o nuu_o, c3_c* dir_c)
/* If the images were empty, we are logically booting.
*/
if ( (0 == u3P.nor_u.pgs_w) && (0 == u3P.sou_u.pgs_w) ) {
printf("logical boot\r\n");
printf("live: logical boot\r\n");
nuu_o = c3y;
}
else {
u3a_print_memory("live: loaded",
(u3P.nor_u.pgs_w + u3P.sou_u.pgs_w) << u3a_page);
}
}
return nuu_o;
}