mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 06:35:32 +03:00
Print memory size on load.
This commit is contained in:
parent
80d6f74886
commit
4d900b5d9d
2
i/n/e.h
2
i/n/e.h
@ -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
7
n/e.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user