Changes in uspace/app/init/init.c [7c014d1:53d6ac3d] in mainline
- File:
-
- 1 edited
-
uspace/app/init/init.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
r7c014d1 r53d6ac3d 196 196 } 197 197 198 static void console(const char * isvc, const char *fbsvc)199 { 200 printf("%s: Spawning %s %s %s\n", NAME, SRV_CONSOLE, isvc, fbsvc);198 static void console(const char *svc) 199 { 200 printf("%s: Spawning %s %s\n", NAME, SRV_CONSOLE, svc); 201 201 202 202 /* Wait for the input service to be ready */ 203 203 service_id_t service_id; 204 int rc = loc_service_get_id(isvc, &service_id, IPC_FLAG_BLOCKING); 205 if (rc != EOK) { 206 printf("%s: Error waiting on %s (%s)\n", NAME, isvc, 207 str_error(rc)); 208 return; 209 } 210 211 /* Wait for the framebuffer service to be ready */ 212 rc = loc_service_get_id(fbsvc, &service_id, IPC_FLAG_BLOCKING); 213 if (rc != EOK) { 214 printf("%s: Error waiting on %s (%s)\n", NAME, fbsvc, 215 str_error(rc)); 216 return; 217 } 218 219 rc = task_spawnl(NULL, SRV_CONSOLE, SRV_CONSOLE, isvc, fbsvc, NULL); 220 if (rc != EOK) { 221 printf("%s: Error spawning %s %s %s (%s)\n", NAME, SRV_CONSOLE, 222 isvc, fbsvc, str_error(rc)); 204 int rc = loc_service_get_id(svc, &service_id, IPC_FLAG_BLOCKING); 205 if (rc != EOK) { 206 printf("%s: Error waiting on %s (%s)\n", NAME, svc, 207 str_error(rc)); 208 return; 209 } 210 211 rc = task_spawnl(NULL, SRV_CONSOLE, SRV_CONSOLE, svc, NULL); 212 if (rc != EOK) { 213 printf("%s: Error spawning %s %s (%s)\n", NAME, SRV_CONSOLE, 214 svc, str_error(rc)); 223 215 } 224 216 } … … 308 300 spawn("/srv/fb"); 309 301 spawn("/srv/input"); 310 console("hid/input" , "hid/fb0");302 console("hid/input"); 311 303 312 304 spawn("/srv/clip");
Note:
See TracChangeset
for help on using the changeset viewer.
