Changeset cf2af94 in mainline for kernel/generic/src/lib/memstr.c


Ignore:
Timestamp:
2011-02-09T11:46:47Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cb15135a
Parents:
a49c4002 (diff), 0b37882 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

Local modifications:

  • change pipefs and ext2 to build again (use async_* calls instead of ipc_*)
File:
1 edited

Legend:

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

    ra49c4002 rcf2af94  
    6262        unsigned int i, j;
    6363       
    64         if (ALIGN_UP((uintptr_t) src, sizeof(unative_t)) != (uintptr_t) src ||
    65             ALIGN_UP((uintptr_t) dst, sizeof(unative_t)) != (uintptr_t) dst) {
     64        if (ALIGN_UP((uintptr_t) src, sizeof(sysarg_t)) != (uintptr_t) src ||
     65            ALIGN_UP((uintptr_t) dst, sizeof(sysarg_t)) != (uintptr_t) dst) {
    6666                for (i = 0; i < cnt; i++)
    6767                        ((uint8_t *) dst)[i] = ((uint8_t *) src)[i];
    6868        } else {
    69                 for (i = 0; i < cnt / sizeof(unative_t); i++)
    70                         ((unative_t *) dst)[i] = ((unative_t *) src)[i];
     69                for (i = 0; i < cnt / sizeof(sysarg_t); i++)
     70                        ((sysarg_t *) dst)[i] = ((sysarg_t *) src)[i];
    7171               
    72                 for (j = 0; j < cnt % sizeof(unative_t); j++)
    73                         ((uint8_t *)(((unative_t *) dst) + i))[j] =
    74                             ((uint8_t *)(((unative_t *) src) + i))[j];
     72                for (j = 0; j < cnt % sizeof(sysarg_t); j++)
     73                        ((uint8_t *)(((sysarg_t *) dst) + i))[j] =
     74                            ((uint8_t *)(((sysarg_t *) src) + i))[j];
    7575        }
    7676               
Note: See TracChangeset for help on using the changeset viewer.