Draw some pretty stuff and halt without a disk img

Don't push this to master!

[ci skip]
This commit is contained in:
Kevin Lange 2012-09-17 22:58:49 -07:00
parent 777b442a1e
commit a212a93942
2 changed files with 14 additions and 0 deletions

View File

@ -142,6 +142,12 @@ int main(struct multiboot *mboot, uint32_t mboot_mag, uintptr_t esp) {
parse_args(cmdline);
}
if (!fs_root) {
kprintf("Nothing to do.\n");
while (1) {
}
}
/* Prepare to run /bin/init */
char * argv[] = {
"/bin/init",

View File

@ -126,6 +126,14 @@ void graphics_install_preset(uint16_t w, uint16_t h) {
mem_found:
finalize_graphics(w,h,b);
for (uint16_t y = 0; y < h; y++) {
for (uint16_t x = 0; x < w; x++) {
uint8_t f = y % 255;
((uint32_t *)lfb_vid_memory)[x + y * w] = 0xFF000000 | (f * 0x10000) | (f * 0x100) | f;
}
}
bfinish(0);
}