Cleanup early bootstrap code. This mostly realigns the code with the
authorkettenis <kettenis@openbsd.org>
Fri, 2 Jul 2021 10:42:22 +0000 (10:42 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 2 Jul 2021 10:42:22 +0000 (10:42 +0000)
commit19eb7a60a01edeed36c0aa7e020e819b7d21a035
treee71ebe185f5673394b7bfda40f8a1c4626690e86
parent26580fe3ca616c10043491694449b6b9f774a02e
Cleanup early bootstrap code.  This mostly realigns the code with the
FreeBSD code from which it was derived.  In particular, it uses the same
trick to switch page tables as FreeBSD, which is what we use to spin up
the secondary CPUs already.  This avoids having to install a temporary
1:1 mapping.

ok mlarkin@
sys/arch/riscv64/include/bootconfig.h
sys/arch/riscv64/include/vmparam.h
sys/arch/riscv64/riscv64/genassym.cf
sys/arch/riscv64/riscv64/locore.S
sys/arch/riscv64/riscv64/locore0.S
sys/arch/riscv64/riscv64/machdep.c