mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-31 06:31:10 +00:00
parent
59347d2560
commit
e43b848ac8
@ -6,6 +6,8 @@ else ifeq ($(filter-out $(SPECS),arm_v6),)
|
|||||||
TARGET_CPUARCH=arm_v6
|
TARGET_CPUARCH=arm_v6
|
||||||
else ifeq ($(filter-out $(SPECS),arm_v7),)
|
else ifeq ($(filter-out $(SPECS),arm_v7),)
|
||||||
TARGET_CPUARCH=arm_v7
|
TARGET_CPUARCH=arm_v7
|
||||||
|
else ifeq ($(filter-out $(SPECS),arm_v8),)
|
||||||
|
TARGET_CPUARCH=arm_v8
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONTRIB_DIR),)
|
ifeq ($(CONTRIB_DIR),)
|
||||||
|
5
repos/libports/lib/mk/spec/arm_v8/jitterentropy.mk
Normal file
5
repos/libports/lib/mk/spec/arm_v8/jitterentropy.mk
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
INC_DIR += $(REP_DIR)/src/lib/jitterentropy/spec/arm_v8
|
||||||
|
|
||||||
|
include $(REP_DIR)/lib/mk/jitterentropy.inc
|
||||||
|
|
||||||
|
CC_CXX_WARN_STRICT =
|
@ -1,6 +1,6 @@
|
|||||||
MIRROR_FROM_REP_DIR := lib/mk/jitterentropy.inc \
|
MIRROR_FROM_REP_DIR := lib/mk/jitterentropy.inc \
|
||||||
lib/import/import-jitterentropy.mk \
|
lib/import/import-jitterentropy.mk \
|
||||||
$(foreach SPEC,arm_v6 arm_v7 x86_32 x86_64,\
|
$(foreach SPEC,arm_v6 arm_v7 arm_v8 x86_32 x86_64,\
|
||||||
lib/mk/spec/$(SPEC)/jitterentropy.mk) \
|
lib/mk/spec/$(SPEC)/jitterentropy.mk) \
|
||||||
src/lib/jitterentropy
|
src/lib/jitterentropy
|
||||||
|
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* \brief Time backend for jitterentropy library
|
||||||
|
* \author Sebastian Sumpf
|
||||||
|
* \date 2014-05-29
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2019 Genode Labs GmbH
|
||||||
|
*
|
||||||
|
* This file is part of the Genode OS framework, which is distributed
|
||||||
|
* under the terms of the GNU Affero General Public License version 3.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _JITTERENTROPY_ARM_V8__BASE_GENODE_NSTIME_H_
|
||||||
|
#define _JITTERENTROPY_ARM_V8__BASE_GENODE_NSTIME_H_
|
||||||
|
|
||||||
|
static inline void jent_get_nstime(__u64 *out)
|
||||||
|
{
|
||||||
|
uint64_t t;
|
||||||
|
/* cycle counter */
|
||||||
|
asm volatile("mrs %0, pmccntr_el0" : "=r" (t));
|
||||||
|
*out = t;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* _JITTERENTROPY_ARM_V8_BASE_GENODE_NSTIME_H */
|
Loading…
x
Reference in New Issue
Block a user