Changeset 1564c4b in mainline for uspace/app/init/init.c
- Timestamp:
- 2011-06-08T19:39:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2af29ed
- Parents:
- e686889c (diff), 0eff68e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
re686889c r1564c4b 176 176 static void console(const char *dev) 177 177 { 178 char hid_in[DEVMAP_NAME_MAXLEN]; 179 int rc; 180 181 snprintf(hid_in, DEVMAP_NAME_MAXLEN, "%s/%s", DEVFS_MOUNT_POINT, dev); 182 183 printf("%s: Spawning %s %s\n", NAME, SRV_CONSOLE, hid_in); 178 printf("%s: Spawning %s %s\n", NAME, SRV_CONSOLE, dev); 184 179 185 180 /* Wait for the input device to be ready */ 186 181 devmap_handle_t handle; 187 rc = devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING);188 if (rc != EOK) { 189 printf("%s: Error waiting on %s (%s)\n", NAME, hid_in,190 str_error(rc)); 191 return; 192 } 193 194 rc = task_spawnl(NULL, SRV_CONSOLE, SRV_CONSOLE, hid_in, NULL);182 int rc = devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING); 183 if (rc != EOK) { 184 printf("%s: Error waiting on %s (%s)\n", NAME, dev, 185 str_error(rc)); 186 return; 187 } 188 189 rc = task_spawnl(NULL, SRV_CONSOLE, SRV_CONSOLE, dev, NULL); 195 190 if (rc != EOK) { 196 191 printf("%s: Error spawning %s %s (%s)\n", NAME, SRV_CONSOLE, 197 hid_in, str_error(rc));192 dev, str_error(rc)); 198 193 } 199 194 } … … 272 267 mount_tmpfs(); 273 268 274 #ifdef CONFIG_START_DEVMAN275 269 spawn("/srv/devman"); 276 #endif277 270 spawn("/srv/apic"); 278 271 spawn("/srv/i8259");
Note:
See TracChangeset
for help on using the changeset viewer.