/*
 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
 *
 * This software is dual-licensed to you under the MIT License (MIT) and
 * the Universal Permissive License (UPL). See the LICENSE file in the root
 * directory for license terms. You may choose either license, or both.
 */
#include <string.h>

/** thumb2_memcpy implementation in EthernetInterface package has a bug.
 * If pointers are unaliged and interrupt happens during copy then one byte
 * could be ZERO. Override thumb2_memcpy resorting to libc's memcpy.
 * Defined in cc.h
 */
extern "C" void* thumb2_memcpy(void* pDest, const void* pSource, size_t length) {
    return memcpy(pDest, pSource, length);
}
