aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/kernel
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-11-13 00:09:21 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-11-13 00:09:21 +0200
commit90ab6923775b2e011f434c92361bc5aabb4ce980 (patch)
tree6b69fee3db9fdc04c7446f932a4b7db832843e25 /arch/riscv64/kernel
parent845cf97e1faee613e3e73900f5f93bfcedc831f1 (diff)
downloadkmi-90ab6923775b2e011f434c92361bc5aabb4ce980.tar.gz
kmi-90ab6923775b2e011f434c92361bc5aabb4ce980.zip
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.
Diffstat (limited to 'arch/riscv64/kernel')
-rw-r--r--arch/riscv64/kernel/vmem.c2
1 files changed, 2 insertions, 0 deletions
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];
};