Changeset 57b4f46 in mainline


Ignore:
Timestamp:
2008-08-06T18:09:09Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ade06b4
Parents:
30b3ddb
Message:

cstyle

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/lib/rd.c

    r30b3ddb r57b4f46  
    4949/**
    5050 * RAM disk initialization routine. At this point, the RAM disk memory is shared
    51  * and information about the share is provided as sysinfo values to the userspace
    52  * tasks.
     51 * and information about the share is provided as sysinfo values to the
     52 * userspace tasks.
    5353 */ 
    5454int init_rd(rd_header_t *header, size_t size)
     
    5656        /* Identify RAM disk */
    5757        if ((header->magic[0] != RD_MAG0) || (header->magic[1] != RD_MAG1) ||
    58                 (header->magic[2] != RD_MAG2) || (header->magic[3] != RD_MAG3))
     58            (header->magic[2] != RD_MAG2) || (header->magic[3] != RD_MAG3))
    5959                return RE_INVALID;
    6060       
     
    8787                dsize = size - hsize;
    8888       
    89         rd_parea.pbase = ALIGN_DOWN((uintptr_t) KA2PA((void *) header + hsize), FRAME_SIZE);
     89        rd_parea.pbase = ALIGN_DOWN((uintptr_t) KA2PA((void *) header + hsize),
     90            FRAME_SIZE);
    9091        rd_parea.vbase = (uintptr_t) ((void *) header + hsize);
    9192        rd_parea.frames = SIZE2FRAMES(dsize);
     
    9697        sysinfo_set_item_val("rd.header_size", NULL, hsize);   
    9798        sysinfo_set_item_val("rd.size", NULL, dsize);
    98         sysinfo_set_item_val("rd.address.physical", NULL, (unative_t)
    99                 KA2PA((void *) header + hsize));
     99        sysinfo_set_item_val("rd.address.physical", NULL,
     100            (unative_t) KA2PA((void *) header + hsize));
    100101
    101102        return RE_OK;
  • uspace/lib/libc/generic/vfs/vfs.c

    r30b3ddb r57b4f46  
    106106static int device_get_handle(char *name, dev_handle_t *handle)
    107107{
    108         int phone = ipc_connect_me_to(PHONE_NS, SERVICE_DEVMAP, DEVMAP_CLIENT, 0);
     108        int phone = ipc_connect_me_to(PHONE_NS, SERVICE_DEVMAP, DEVMAP_CLIENT,
     109            0);
    109110        if (phone < 0)
    110111                return phone;
     
    224225        free(pa);
    225226
    226         if (rc != EOK) return (int) rc;
     227        if (rc != EOK)
     228            return (int) rc;
    227229        return (int) IPC_GET_ARG1(answer);
    228230}
Note: See TracChangeset for help on using the changeset viewer.