git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: make pci device driver loading passive, pci bus scanner will not load them...
[lunaix-os.git]
/
lunaix-os
/
kernel
/
proc0.c
diff --git
a/lunaix-os/kernel/proc0.c
b/lunaix-os/kernel/proc0.c
index ca1b4cadf39f03b8d90b28f4c3318dca587956bb..31a100df9c33333749a12e9378e5b79b48573ea4 100644
(file)
--- a/
lunaix-os/kernel/proc0.c
+++ b/
lunaix-os/kernel/proc0.c
@@
-32,12
+32,12
@@
mount_bootmedium()
int errno = 0;
struct device* dev = probe_boot_medium();
if (!dev) {
int errno = 0;
struct device* dev = probe_boot_medium();
if (!dev) {
-
kprintf(KERROR
"fail to acquire device. (%d)", errno);
+
ERROR(
"fail to acquire device. (%d)", errno);
return 0;
}
if ((errno = vfs_mount("/mnt/lunaix-os", "iso9660", dev, 0))) {
return 0;
}
if ((errno = vfs_mount("/mnt/lunaix-os", "iso9660", dev, 0))) {
-
kprintf(KERROR
"fail to mount boot medium. (%d)", errno);
+
ERROR(
"fail to mount boot medium. (%d)", errno);
return 0;
}
return 0;
}
@@
-56,7
+56,7
@@
exec_initd()
fail("should not reach");
fail:
fail("should not reach");
fail:
-
kprintf(KERROR
"fail to load initd. (%d)", errno);
+
ERROR(
"fail to load initd. (%d)", errno);
return 0;
}
return 0;
}
@@
-92,7
+92,7
@@
__proc0()
void
init_platform()
{
void
init_platform()
{
- device_post
stage
();
+ device_post
boot_load
();
twifs_register_plugins();
twifs_register_plugins();