Changeset b74959bd in mainline for uspace/srv/ns/ns.c


Ignore:
Timestamp:
2007-11-20T21:33:32Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8498915
Parents:
3209923
Message:

Modify ipc_answer_*() to make use of all six syscall arguments. The recommended
means of answering calls is via the ipc_answer_m() macros (where m denotes the
number of return arguments) that automatically decide between the fast register
version or the slow universal version of ipc_answer().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/ns/ns.c

    r3209923 rb74959bd  
    9393                ph_addr = (void *) sysinfo_value(name);
    9494                if (!ph_addr) {
    95                         ipc_answer_fast_0(callid, ENOENT);
     95                        ipc_answer_0(callid, ENOENT);
    9696                        return;
    9797                }
     
    100100                    AS_AREA_READ | AS_AREA_CACHEABLE);
    101101        }
    102         ipc_answer_fast(callid, EOK, (ipcarg_t) *addr, AS_AREA_READ);
     102        ipc_answer_2(callid, EOK, (ipcarg_t) *addr, AS_AREA_READ);
    103103}
    104104
     
    129129                                break;
    130130                        default:
    131                                 ipc_answer_fast_0(callid, ENOENT);
     131                                ipc_answer_0(callid, ENOENT);
    132132                        }
    133133                        continue;
     
    154154                }
    155155                if (!(callid & IPC_CALLID_NOTIFICATION)) {
    156                         ipc_answer_fast_0(callid, retval);
     156                        ipc_answer_0(callid, retval);
    157157                }
    158158        }
Note: See TracChangeset for help on using the changeset viewer.