diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-05 20:14:46 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-05 20:14:46 +0300 |
| commit | 83a6fc687cab3ee87c6cae1324728521f9877ad0 (patch) | |
| tree | c94d811e702c7bc517886052b42f4b27309ece98 /arch/riscv64 | |
| parent | e09edb5d54e39bd9509a1dc450df5ab320759f97 (diff) | |
| download | kmi-83a6fc687cab3ee87c6cae1324728521f9877ad0.tar.gz kmi-83a6fc687cab3ee87c6cae1324728521f9877ad0.zip | |
formatting and documentation
Diffstat (limited to 'arch/riscv64')
| -rw-r--r-- | arch/riscv64/kernel/vmem.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/riscv64/kernel/vmem.c b/arch/riscv64/kernel/vmem.c index 835f53d..3f29446 100644 --- a/arch/riscv64/kernel/vmem.c +++ b/arch/riscv64/kernel/vmem.c @@ -398,9 +398,15 @@ static void __populate_dmap(struct vmem *branch) /** How many base pages we use for the rpc stack. Used fairly often so calculate * it at the start and then reference it. */ -static size_t rpc_pages; +size_t rpc_pages; + +/** Initial stack used when booting the kernel. Probably way overkill, but 4K is + * such a nice number. */ long riscv_init_stack[4096 / sizeof(long)]; -__attribute__((aligned(4096))) struct vmem bootvmem; + +/** Initial page table used when booting the kernel. Has to be aligned properly, + * and so the kernel itself has to be on a 4K boundary. */ +__aligned(4096) struct vmem bootvmem; struct vmem *direct_mapping() { |
