Follow us on Google+ Follow us on Facebook Follow us on Twitter

Changeset mainline,2807


Ignore:
Timestamp:
2017-10-11T20:35:01Z (7 days ago)
Author:
jzr <zarevucky.jiri@…>
branch-nick:
bzr_mainline
revision id:
zarevucky.jiri@gmail.com-20171011203501-h44gi64kbqfmg2s9
Message:

Unify offset ranges in update_damaged_region.

Location:
mainline/uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mainline/uspace/lib/c/generic/io/visualizer.c

    r1615 r2807  
    3333 */
    3434
     35#include <assert.h>
    3536#include <errno.h>
    3637#include <as.h>
     
    175176        sysarg_t x_offset, sysarg_t y_offset)
    176177{
    177 #ifdef __32_BITS__
     178        assert(x_offset <= UINT16_MAX);
     179        assert(y_offset <= UINT16_MAX);
     180
    178181        sysarg_t offsets = ((x_offset << 16) | (y_offset & 0x0000ffff));
    179 #else
    180         sysarg_t offsets = ((x_offset << 32) | (y_offset & 0xffffffff));
    181 #endif
    182182
    183183        async_exch_t *exch = async_exchange_begin(sess);
  • mainline/uspace/lib/graph/graph.c

    r2369 r2807  
    469469static void vs_update_damaged_region(visualizer_t *vs, ipc_callid_t iid, ipc_call_t *icall)
    470470{
    471 #ifdef __32_BITS__
    472471        sysarg_t x_offset = (IPC_GET_ARG5(*icall) >> 16);
    473472        sysarg_t y_offset = (IPC_GET_ARG5(*icall) & 0x0000ffff);
    474 #else
    475         sysarg_t x_offset = (IPC_GET_ARG5(*icall) >> 32);
    476         sysarg_t y_offset = (IPC_GET_ARG5(*icall) & 0xffffffff);
    477 #endif
    478473       
    479474        int rc = vs->ops.handle_damage(vs,
Note: See TracChangeset for help on using the changeset viewer.