jitterentropy base genode nstime.h for virt riscv

Pranab Kumar Rout cs21m045 cs21m045 at smail.iitm.ac.in
Mon Feb 27 13:55:18 CET 2023

Hello all,
While building sculpt for virt riscv, I was getting undefined reference
errors in app/gpt_write,
Based on Norman's suggestions earlier,
I updated the recipe for the jitterentopy API [1] that is used to assemble
the content in depot/genodelabs/api/jitterentropy/<version>/

This helped me overcome the undefined reference errors, But now I am

Library jitterentropy
    COMPILE  jitterentropy-base-genode.o
    COMPILE  jitterentropy-base.o
Assembler messages:
Error: unrecognized opcode `mrc p15,0,a5,c9,c13,0'
make[7]: *** [genode/repos/base/mk/generic.mk:58: jitterentropy-base.o]
Error 1
make[6]: *** [var/libdeps:112: jitterentropy.lib] Error 2
make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2

This error seems be due the contents of the header file (That I had


because jitterentropy was not enabled yet on riscv, I had to create this
file myself.
Contents of [2] that I had written:

static inline void jent_get_nstime(__u64 *out)
uint32_t t;
asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r"(t));
*out = t;

jitterentropy-base-genode*-**nstime.h *

I tried to build it by looking at the header files corresponding to other
architectures. I am not aware of opcode for riscv. Please guide me to write
the correct code. what should be written in this header file for riscv.

Thanks and regards,
Pranab Kumar Rout
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genode.org/pipermail/users/attachments/20230227/c5d00698/attachment.htm>

More information about the users mailing list