- Timestamp:
- 2009-05-21T07:05:25Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1601f3c
- Parents:
- cb41a5e
- Location:
- uspace
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile
rcb41a5e ra095d20 47 47 srv/fs/fat \ 48 48 srv/fs/tmpfs \ 49 srv/fs/devfs \ 49 50 srv/vfs \ 50 51 srv/devmap \ -
uspace/app/init/init.c
rcb41a5e ra095d20 80 80 } 81 81 82 static bool mount_devfs(void) 83 { 84 int rc = -1; 85 86 while (rc < 0) { 87 rc = mount("devfs", "/dev", "null", "", IPC_FLAG_BLOCKING); 88 89 switch (rc) { 90 case EOK: 91 printf(NAME ": Device filesystem mounted\n"); 92 break; 93 case EBUSY: 94 printf(NAME ": Device filesystem already mounted\n"); 95 break; 96 case ELIMIT: 97 printf(NAME ": Unable to mount device filesystem\n"); 98 return false; 99 case ENOENT: 100 printf(NAME ": Unknown filesystem type (devfs)\n"); 101 return false; 102 } 103 } 104 105 return true; 106 } 107 82 108 static void spawn(char *fname) 83 109 { … … 102 128 } 103 129 104 // FIXME: spawn("/srv/pci"); 130 spawn("/srv/devfs"); 131 132 if (!mount_devfs()) { 133 return(NAME ": Exiting\n"); 134 return -2; 135 } 136 105 137 spawn("/srv/fb"); 106 138 spawn("/srv/kbd");
Note:
See TracChangeset
for help on using the changeset viewer.