Changes in uspace/app/init/init.c [336d2f52:3acb285] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
r336d2f52 r3acb285 176 176 static void console(const char *dev) 177 177 { 178 printf("%s: Spawning %s %s\n", NAME, SRV_CONSOLE, dev); 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); 179 184 180 185 /* Wait for the input device to be ready */ 181 186 devmap_handle_t handle; 182 intrc = 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);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); 190 195 if (rc != EOK) { 191 196 printf("%s: Error spawning %s %s (%s)\n", NAME, SRV_CONSOLE, 192 dev, str_error(rc));197 hid_in, str_error(rc)); 193 198 } 194 199 } … … 267 272 mount_tmpfs(); 268 273 274 #ifdef CONFIG_START_DEVMAN 269 275 spawn("/srv/devman"); 276 #endif 270 277 spawn("/srv/apic"); 271 278 spawn("/srv/i8259"); 279 spawn("/srv/fhc"); 272 280 spawn("/srv/obio"); 273 281 srv_start("/srv/cuda_adb"); 274 282 srv_start("/srv/i8042"); 275 283 srv_start("/srv/s3c24ser"); 284 srv_start("/srv/adb_ms"); 285 srv_start("/srv/char_ms"); 276 286 srv_start("/srv/s3c24ts"); 277 287 278 288 spawn("/srv/fb"); 279 spawn("/srv/ input");280 console("hid /input");289 spawn("/srv/kbd"); 290 console("hid_in/kbd"); 281 291 282 292 spawn("/srv/clip");
Note:
See TracChangeset
for help on using the changeset viewer.