• P
    powerpc: Avoid unaligned loads and stores in boot memcpy code · b4e7de0f
    Paul Mackerras 提交于
    The 601 processor will generate an alignment exception for accesses
    which cross a page boundary.  In the boot wrapper code, OF is still
    handling all exceptions, and it doesn't have an alignment exception
    handler that emulates the instruction and continues.
    
    This changes the memcpy and memmove routines in the boot wrapper to
    avoid doing unaligned accesses.  If the source and destination are
    misaligned with respect to each other, we just copy one byte at a
    time.
    Signed-off-by: NPaul Mackerras <paulus@samba.org>
    b4e7de0f
string.S 3.3 KB