Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/cir/obio/obio.c

    rd9fae235 rb3d513f  
    112112static bool obio_init(void)
    113113{
    114         sysarg_t paddr;
     114        ipcarg_t phonead;
     115
     116        base_phys = (void *) sysinfo_value("obio.base.physical");
    115117       
    116         if (sysinfo_get_value("obio.base.physical", &paddr) != EOK) {
     118        if (!base_phys) {
    117119                printf(NAME ": no OBIO registers found\n");
    118120                return false;
    119121        }
    120        
    121         base_phys = (void *) paddr;
     122
    122123        base_virt = as_get_mappable_page(OBIO_SIZE);
    123124       
     
    132133       
    133134        printf(NAME ": OBIO registers with base at %p\n", base_phys);
    134        
     135
    135136        async_set_client_connection(obio_connection);
    136         ipcarg_t phonead;
    137137        ipc_connect_to_me(PHONE_NS, SERVICE_OBIO, 0, 0, &phonead);
    138138       
Note: See TracChangeset for help on using the changeset viewer.