Debug message changes
This commit is contained in:
parent
3367cdc9bf
commit
57f4a32e77
@ -82,7 +82,7 @@ int main() {
|
||||
rpc_register_func("open",&open);
|
||||
rpc_register_func("register_dev",®ister_dev);
|
||||
register_fs("devfs",getpid());
|
||||
serial_print("Initialized devfs\n");
|
||||
serial_print("Devfs initialized\n");
|
||||
rpc_mark_as_init();
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,6 @@ char load_proc(size_t datapos,char* initrd) {
|
||||
|
||||
|
||||
int main() {
|
||||
serial_print("Init running\n");
|
||||
long size=initrd_sz();
|
||||
char* initrd=malloc(size);
|
||||
initrd_get(initrd);
|
||||
@ -112,20 +111,17 @@ int main() {
|
||||
datapos=find_loc("initrd_drv",initrd);
|
||||
load_proc(datapos,initrd);
|
||||
while(rpc_is_init(4)==0);
|
||||
serial_print("Loading tar_fs\n");
|
||||
datapos=find_loc("tar_fs",initrd);
|
||||
load_proc(datapos,initrd);
|
||||
while(rpc_is_init(5)==0);
|
||||
serial_print("Mounting initrd\n");
|
||||
mount("/dev/initrd","tarfs","/initrd");
|
||||
serial_print("Loading VGA driver\n");
|
||||
posix_spawn(NULL,"/initrd/vga_drv",NULL,NULL,NULL,NULL);
|
||||
while(rpc_is_init(6)==0);
|
||||
stdout=fopen("/dev/vga","w");
|
||||
if (!stdout) {
|
||||
serial_print("Could not open the VGA file! \n");
|
||||
serial_print("Could not open the VGA device file!\n");
|
||||
exit(1);
|
||||
}
|
||||
serial_print("Loading PCI driver\n");
|
||||
posix_spawn(NULL,"/initrd/pci",NULL,NULL,NULL,NULL);
|
||||
}
|
||||
|
@ -133,8 +133,7 @@ int main() {
|
||||
rpc_register_func("mount",&tar_fs_mount);
|
||||
rpc_register_func("open",&open);
|
||||
rpc_register_func("read",&read);
|
||||
serial_print("Registering tarfs filesystem\n");
|
||||
register_fs("tarfs",getpid());
|
||||
serial_print("Initialized tarfs\n");
|
||||
serial_print("Tarfs initialized\n");
|
||||
rpc_mark_as_init();
|
||||
}
|
||||
|
@ -31,6 +31,6 @@ int main() {
|
||||
serialize_int(getpid(),&state);
|
||||
rpc_call(3,"register_dev",state.buf,state.sizeorpos);
|
||||
free(state.buf);
|
||||
serial_print("VGA driver initialized\n");
|
||||
vga_write_string("[INFO] VGA driver initialized\n");
|
||||
rpc_mark_as_init();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user