early kernel bootstrap.
ok jsg@, mlarkin@
-/* $OpenBSD: locore.S,v 1.17 2023/12/12 07:37:21 deraadt Exp $ */
+/* $OpenBSD: locore.S,v 1.18 2024/03/25 23:10:03 kettenis Exp $ */
/*-
* Copyright (c) 2015-2018 Ruslan Bukin <br@bsdpad.com>
.align 2
va:
+ sfence.vma
+
/* Set the global pointer again, this time with the virtual address. */
.option push
.option norelax
.align 2
mpva:
+ sfence.vma
+
/* Set the global pointer again, this time with the virtual address. */
.option push
.option norelax
-/* $OpenBSD: pmap.c,v 1.38 2024/01/23 19:51:10 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.39 2024/03/25 23:10:03 kettenis Exp $ */
/*
* Copyright (c) 2019-2020 Brian Bamsch <bbamsch@google.com>
//switching to new page table
uint64_t satp = pmap_kernel()->pm_satp;
__asm volatile("csrw satp, %0" :: "r" (satp) : "memory");
+ sfence_vma();
printf("all mapped\n");