Re: [PATCH 1/2] x86/boot: move early_serial_base to .data section

2019-05-07 Thread Pingfan Liu
On Tue, May 7, 2019 at 4:28 PM Ingo Molnar wrote: > > > * Pingfan Liu 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

Re: [PATCH 1/2] x86/boot: move early_serial_base to .data section

2019-05-07 Thread Ingo Molnar
* Pingfan Liu 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

[PATCH 1/2] x86/boot: move early_serial_base to .data section

2019-05-07 Thread Pingfan Liu
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. Signed-off-by: Pingfan Liu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav