Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/bus/cuda_adb/cuda_adb.c

    r36e9cd1 rd9fae235  
    254254static int cuda_init(void)
    255255{
     256        if (sysinfo_get_value("cuda.address.physical", &(instance->cuda_physical)) != EOK)
     257                return -1;
     258       
     259        if (sysinfo_get_value("cuda.address.kernel", &(instance->cuda_kernel)) != EOK)
     260                return -1;
     261       
    256262        void *vaddr;
    257 
    258         instance->cuda_physical = sysinfo_value("cuda.address.physical");
    259         instance->cuda_kernel = sysinfo_value("cuda.address.kernel");
    260 
    261263        if (pio_enable((void *) instance->cuda_physical, sizeof(cuda_t), &vaddr) != 0)
    262264                return -1;
     265       
    263266        dev = vaddr;
    264267
Note: See TracChangeset for help on using the changeset viewer.