mirror of https://gitee.com/openkylin/linux.git
21 lines
345 B
C
21 lines
345 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/* Copyright(c) 2016-20 Intel Corporation. */
|
|
|
|
#include <stddef.h>
|
|
#include "defines.h"
|
|
|
|
static void *memcpy(void *dest, const void *src, size_t n)
|
|
{
|
|
size_t i;
|
|
|
|
for (i = 0; i < n; i++)
|
|
((char *)dest)[i] = ((char *)src)[i];
|
|
|
|
return dest;
|
|
}
|
|
|
|
void encl_body(void *rdi, void *rsi)
|
|
{
|
|
memcpy(rsi, rdi, 8);
|
|
}
|