blob: 61070e7cd480a7926a60236f6b3ef5bfe3c2028e [file] [log] [blame]
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <entropy.h>
#include <syscall_handler.h>
_SYSCALL_HANDLER(entropy_get_entropy, dev, buffer, len)
{
_SYSCALL_OBJ(dev, K_OBJ_DRIVER_ENTROPY);
_SYSCALL_MEMORY_WRITE(buffer, len);
return _impl_entropy_get_entropy((struct device *)dev, (u8_t *)buffer,
len);
}