Changeset dac629e in mainline


Ignore:
Timestamp:
2008-09-14T12:04:28Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
de9c5cb
Parents:
b968f39
Message:

Use memmove() instead of memcpy() to copy the ramdisk image in the sparc64 loader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/loader/main.c

    rb968f39 rdac629e  
    3737#include "ofwarch.h"
    3838#include <align.h>
     39#include <string.h>
    3940
    4041bootinfo_t bootinfo;
     
    160161                (void) ofw_claim_phys(base + top, silo_ramdisk_size);
    161162                (void) ofw_map(base + top, base + top, silo_ramdisk_size, -1);
    162                 /*
    163                  * FIXME If the source and destination overlap, it may be
    164                  * desirable to copy in reverse order, depending on how the two
    165                  * regions overlap.
    166                  */
    167                 memcpy(base + top, (void *)((uintptr_t)silo_ramdisk_image),
     163                memmove(base + top, (void *)((uintptr_t)silo_ramdisk_image),
    168164                    silo_ramdisk_size);
    169165                printf("done.\n");
Note: See TracChangeset for help on using the changeset viewer.