x86 boot code cleanups, batch 1
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 35 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | x86/realmode: remove I/O port paravirtualizationarch/ arch/ arch/ +3 more | +4 | 3 replies | |
| 2/14 | x86/realmode: make %gs == 0 an invariantarch/ arch/ arch/ +4 more | +23 | 4 replies | |
| 3/14 | x86/boot: use <linux/compiler.h>arch/ | +4 | 1 reply | |
| 4/14 | x86/boot: modernize the segment structure for the header and setuparch/ arch/ | +31 | 0 replies | |
| 5/14 | x86/boot: call puts() from within die()arch/ arch/ arch/ +1 more | +8 | 1 reply | |
| 6/14 | x86/boot: add comment barriers for the different headersarch/ | +6 | 0 replies | |
| 7/14 | x86/boot: factor out the 16-bit startup code from header.Sarch/ arch/ arch/ | +112 | 1 reply | |
| 8/14 | x86: make CONFIG_EFI_STUB unconditionalarch/ arch/ arch/ +1 more | +2 | 0 replies | |
| 9/14 | x86/boot: make the relocatable kernel unconditionalarch/ arch/ arch/ +2 more | +11 | 0 replies | |
| 10/14 | x86/boot: explicitly put the old command line pointer in header.Sarch/ arch/ | +23 | 0 replies | |
| 11/14 | x86/boot: use __seg_fs and __seg_gs in the real-mode boot codearch/ arch/ | +27 | 16 replies | |
| 12/14 | x86/boot: tweak a20.c for better code generationarch/ arch/ arch/ | +13 | 7 replies | |
| 13/14 | x86/boot: simplify x86/boot/cmdline.c by using __seg_fsarch/ arch/ arch/ | +64 | 1 reply | |
| 14/14 | compiler-gcc: Remove obsolete RELOC_HIDE() macroinclude/ include/ | +8 | 0 replies |
Reviews trailers per patch
8 of 14 patches have a Reviewed-by or Acked-by.
| Patch | Uros Bizjak | Kiryl Shutsemau |
|---|---|---|
| 1/14 | A-b | |
| 2/14 | R-b | |
| 3/14 | R-b | |
| 4/14 | ||
| 5/14 | R-b | |
| 6/14 | ||
| 7/14 | R-b | |
| 8/14 | ||
| 9/14 | ||
| 10/14 | ||
| 11/14 | R-b | |
| 12/14 | A-b | |
| 13/14 | A-b | |
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 00/14] x86 boot code cleanups, batch 1
From: "H. Peter Anvin" (Intel) <[email protected]>
Uros Bizjak was kind enough to look over my RFC patchset, and so I feel confident enough to call this a v1 patchset now.
The difference versus RFC are:
1. Remove .code16 from header.S (Uros Bizjak).
2. Split out the changed handling of the old (ancient by now) command pointer protocol into a separate patch - it had accidentally gotten mixed into two(!) mostly unrelated patches.
3. Added a missing barrier(); to a20.c, made necessary by having the compiler aware of fs/gs memory.
4. While changing a20.c anyway, tidy up and optimize the code a bit.
Again, the only potentially controversial thing here is removing the options for non-relocatable kernels and building kernels without the EFI stub. Those configurations should be considered obsolete, and they don't add any cost to the runtime kernel.
This patchset also includes the removal of the gcc-specific version of the RELOC_HIDE() macro, by Uros Bizjak, as the other changes in this patchset makes that possible. Per Uros, this is holding back gcc development, so it seems pretty important.
I am calling this "batch 1", because I have quite a few more cleanups still being worked on; this patchset will be a prerequisite for those, obviously.
This patchset is also available as a git tree:
git://git.zytor.com/linux/kernel/boot.git hpa/boot1
https://git.zytor.com/linux/kernel/boot/log/?h=hpa/boot1
The patches are:
01/14: x86/realmode: remove I/O port paravirtualization 02/14: x86/realmode: make %gs == 0 an invariant
03/14: x86/boot: use <linux/compiler.h>
04/14: x86/boot: modernize the segment structure for the header and setup 05/14: x86/boot: call puts() from within die()
06/14: x86/boot: add comment barriers for the different headers 07/14: x86/boot: factor out the 16-bit startup code from header.S 08/14: x86: make CONFIG_EFI_STUB unconditional
09/14: x86/boot: make the relocatable kernel unconditional 10/14: x86/boot: explicitly put the old command line pointer in header.S 11/14: x86/boot: use __seg_fs and __seg_gs in the real-mode boot code 12/14: x86/boot: tweak a20.c for better code generation 13/14: x86/boot: simplify x86/boot/cmdline.c by using __seg_fs 14/14: compiler-gcc: Remove obsolete RELOC_HIDE() macro (Uros Bizjak)
---
arch/x86/Kconfig | 85 ++++---------------------
arch/x86/boot/Makefile | 4 +-
arch/x86/boot/a20.c | 34 +++++-----
arch/x86/boot/boot.h | 116 ++++++++++------------------------
arch/x86/boot/cmdline.c | 79 ++++++++++++++++++-----
arch/x86/boot/compressed/Makefile | 2 -
arch/x86/boot/compressed/cmdline.c | 29 ---------
arch/x86/boot/compressed/error.c | 2 -
arch/x86/boot/compressed/head_32.S | 2 -
arch/x86/boot/compressed/head_64.S | 4 --
arch/x86/boot/{ => compressed}/io.h | 0
arch/x86/boot/compressed/misc.c | 8 ---
arch/x86/boot/compressed/misc.h | 2 +-
arch/x86/boot/compressed/tdx.c | 2 +-
arch/x86/boot/header.S | 123 ++++++++----------------------------
arch/x86/boot/main.c | 43 ++++++-------
arch/x86/boot/pm.c | 5 +-
arch/x86/boot/regs.c | 3 +-
arch/x86/boot/setup.ld | 26 ++++----
arch/x86/boot/start16.S | 108 +++++++++++++++++++++++++++++++
arch/x86/boot/video-bios.c | 5 +-
arch/x86/boot/video-mode.c | 5 +-
arch/x86/boot/video.c | 7 +-
arch/x86/realmode/rm/wakemain.c | 4 --
arch/x86/realmode/rm/wakeup_asm.S | 10 +--
include/linux/compiler-gcc.h | 25 --------
include/linux/compiler.h | 8 +++
27 files changed, 316 insertions(+), 425 deletions(-)