[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] Mini-OS: x86: zero out .bss segment at boot
On 07.02.24 12:34, Samuel Thibault wrote: Jürgen Groß, le mer. 07 févr. 2024 12:16:44 +0100, a ecrit:On 07.02.24 12:00, Samuel Thibault wrote:Jürgen Groß, le mer. 07 févr. 2024 11:42:20 +0100, a ecrit:while implementing kexec in Mini-OS.Oh, nice :DFor that I need it for sure.It needs to be done by kexec itself then.That's another option, yes. The question is whether we want to support to be kexec-ed from other systems, too.But aren't other systems' kexec supports supposed to do the memset? They really should. I guess there is a reason why the Linux kernel does clear its .bss section in early boot. Maybe it is due to how the boot process works (the ELF file is encapsulated in vmlinuz), but following your reasoning they should have cleared their .bss while unpacking the ELF contents, not while booting the contents. I'm not sure they do the .bss clearing in kexec either, as the kernel is clearing it anyway. Juergen
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |