lkml.org 
[lkml]   [2019]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] x86/boot: move early_serial_base to .data section

* Pingfan Liu <kernelfans@gmail.com> wrote:

> arch/x86/boot/compressed/head_64.S clears BSS after relocated. If early
> serial is set up before clearing BSS, the early_serial_base will be reset
> to 0.
>
> Initializing early_serial_base as -1 to push it to .data section.

I'm wondering whether it's wise to clear the BSS after relocation to
begin with. It already gets cleared once, and an implicit zeroing of all
fields on kernel relocation sounds dubious to me.

Is there a strong reason for that? I.e. is there some uninitialized or
otherwise important-to-clear data there?

Thanks,

Ingo

\
 
 \ /
  Last update: 2019-05-07 10:28    [W:0.059 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site