Skip to content

x86/boot: support to handle exception in early boot

Pingfan Liu lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/idt: split out idt routinesarch/x86/include/asm/idt.h arch/x86/kernel/idt.c+65 -570 replies
2/2x86/boot: set up idt for very early boot stagearch/x86/boot/compressed/head_64.S arch/x86/boot/compressed/misc.c+72 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] x86/boot: support to handle exception in early boot

The boot code becomes a little complicated, and hits some bugs, e.g. Commit 3a63f70bf4c3a ("x86/boot: Early parse RSDP and save it in boot_params") broke kexec boot on EFI systems.

There is few hint when bug happens. Catching the exception and printing message can give a immediate help, instead of adding more debug_putstr() to narraw down the problem.

Although no functional dependency, but in order to show message, the early console should be ready. I have sent a separate series:
https://www.mail-archive.com/[email protected]/msg1992923.html
https://www.mail-archive.com/[email protected]/msg1992919.html

Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc "Kirill A. Shutemov" <[email protected]>
Cc Cao jin <[email protected]>
Cc Wei Huang <[email protected]>
Cc Chao Fan <[email protected]>
Cc Nicolai Stange <[email protected]>
Cc Dou Liyang <[email protected]>

Pingfan Liu (2):
x86/idt: split out idt routines
x86/boot: set up idt for very early boot stage

 arch/x86/boot/compressed/head_64.S | 11 +++++++
 arch/x86/boot/compressed/misc.c    | 61 ++++++++++++++++++++++++++++++++++++
 arch/x86/include/asm/idt.h         | 64 ++++++++++++++++++++++++++++++++++++++
 arch/x86/kernel/idt.c              | 58 +---------------------------------
 4 files changed, 137 insertions(+), 57 deletions(-)
 create mode 100644 arch/x86/include/asm/idt.h
Signature · 1 line
2.7.4