diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-04-23 20:59:23 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-04-23 21:10:44 +0300 |
| commit | d4c420689b1872f6fb22f421dfd27704ee94951a (patch) | |
| tree | c3b1921c7bb1035edb7211e4547d3088dac80778 /arch/riscv64/init | |
| parent | 38c7c94bcd131290dcbae110dfb33b0b78c99d90 (diff) | |
| download | kmi-d4c420689b1872f6fb22f421dfd27704ee94951a.tar.gz kmi-d4c420689b1872f6fb22f421dfd27704ee94951a.zip | |
ran clang-format
Diffstat (limited to 'arch/riscv64/init')
| -rw-r--r-- | arch/riscv64/init/init.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/riscv64/init/init.c b/arch/riscv64/init/init.c index b28c581..31a9155 100644 --- a/arch/riscv64/init/init.c +++ b/arch/riscv64/init/init.c @@ -21,13 +21,14 @@ void init_bootmem() /* direct mapping (temp) */ for (size_t i = 0; i < CSTACK_PAGE; ++i) - root_branch->leaf[i] = (struct vm_branch *)to_pte(SZ_1G * i, flags); + root_branch->leaf[i] = + (struct vm_branch *)to_pte(SZ_1G * i, flags); /* kernel (also sort of direct mapping) */ flags |= VM_G; for (size_t i = KSTART_PAGE; i < IO_PAGE; ++i) - root_branch->leaf[i] = - (struct vm_branch *)to_pte(RAM_BASE + SZ_1G * (i - 256), flags); + root_branch->leaf[i] = (struct vm_branch *)to_pte( + RAM_BASE + SZ_1G * (i - 256), flags); /* kernel IO, map to 0 for now, will be updated in the future */ root_branch->leaf[IO_PAGE] = (struct vm_branch *)to_pte(0, flags); |
