Changeset 8b74af07 in mainline


Ignore:
Timestamp:
2008-12-28T13:03:04Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
04b687b
Parents:
018e1e3
Message:

Two more cases of memmove() vs memcpy().

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/drivers/ega.c

    r018e1e3 r8b74af07  
    117117                return;
    118118
    119         memcpy((void *) videoram, (void *) (videoram + ROW * 2), (SCREEN - ROW) * 2);
     119        memmove((void *) videoram, (void *) (videoram + ROW * 2), (SCREEN - ROW) * 2);
    120120        _memsetw(videoram + (SCREEN - ROW) * 2, ROW, 0x0720);
    121121        ega_cursor = ega_cursor - ROW;
  • uspace/srv/fb/ega.c

    r018e1e3 r8b74af07  
    128128        int i;
    129129        if (rows > 0) {
    130                 memcpy(scr_addr, ((char *) scr_addr) + rows * scr_width * 2,
     130                memmove(scr_addr, ((char *) scr_addr) + rows * scr_width * 2,
    131131                    scr_width * scr_height * 2 - rows * scr_width * 2);
    132132                for (i = 0; i < rows * scr_width; i++)
     
    134134                            scr_width)[i] = ((style << 8) + ' ');
    135135        } else if (rows < 0) {
    136                 memcpy(((char *)scr_addr) - rows * scr_width * 2, scr_addr,
     136                memmove(((char *)scr_addr) - rows * scr_width * 2, scr_addr,
    137137                    scr_width * scr_height * 2 + rows * scr_width * 2);
    138138                for (i = 0; i < -rows * scr_width; i++)
Note: See TracChangeset for help on using the changeset viewer.