On Fri, Apr 07, 2023 at 12:05:27PM +0000, Emmanuel Dreyfus wrote: > The other solution is to make the kernel self-relocatable: if at > start in locore.S, we detect we are not loaded at 0x200000, then > first relocate the kernel. This can be done by reusing bootx64.efi's > startprog64(). There was code for that in sys/arch/amd64/amd64/locore.S > 1.197, for multiboot2 suppot.
I submitted a patch that does that, for review: http://mail-index.netbsd.org/port-amd64/2023/04/11/msg003630.html -- Emmanuel Dreyfus m...@netbsd.org