From 90ab6923775b2e011f434c92361bc5aabb4ce980 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 13 Nov 2022 00:09:21 +0200 Subject: write init more sensibly + Both easier to look at and now the userspace doesn't play as big of a role in the 'benchmarking' with optimizations turned on. --- arch/riscv64/kernel/vmem.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/riscv64/kernel') diff --git a/arch/riscv64/kernel/vmem.c b/arch/riscv64/kernel/vmem.c index a3903f1..15daa62 100644 --- a/arch/riscv64/kernel/vmem.c +++ b/arch/riscv64/kernel/vmem.c @@ -345,6 +345,8 @@ vm_t setup_kernel_io(struct vmem *b, vm_t paddr) } #endif +/* something of an optimisation, letting the compiler know which parts to copy + * however it sees best */ struct uvmem_map { struct vmem *leaf[CSTACK_PAGE - 1]; }; -- cgit v1.3