Changeset c028b22 in mainline for uspace/app/init/init.c


Ignore:
Timestamp:
2011-07-08T17:01:01Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc1a727
Parents:
4e36219 (diff), 026793d (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.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    r4e36219 rc028b22  
    176176static void console(const char *dev)
    177177{
    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);
    184179       
    185180        /* Wait for the input device to be ready */
    186181        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);
    195190        if (rc != EOK) {
    196191                printf("%s: Error spawning %s %s (%s)\n", NAME, SRV_CONSOLE,
    197                     hid_in, str_error(rc));
     192                    dev, str_error(rc));
    198193        }
    199194}
     
    272267        mount_tmpfs();
    273268       
    274 #ifdef CONFIG_START_DEVMAN
    275269        spawn("/srv/devman");
    276 #endif
    277270        spawn("/srv/apic");
    278271        spawn("/srv/i8259");
    279         spawn("/srv/fhc");
    280272        spawn("/srv/obio");
    281273        srv_start("/srv/cuda_adb");
    282274        srv_start("/srv/i8042");
    283275        srv_start("/srv/s3c24ser");
    284         srv_start("/srv/adb_ms");
    285         srv_start("/srv/char_ms");
    286276        srv_start("/srv/s3c24ts");
    287277       
    288278        spawn("/srv/fb");
    289         spawn("/srv/kbd");
    290         console("hid_in/kbd");
     279        spawn("/srv/input");
     280        console("hid/input");
    291281       
    292282        spawn("/srv/clip");
Note: See TracChangeset for help on using the changeset viewer.