]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/kexec: Debugging support: load a GDT
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 3 Nov 2024 01:22:23 +0000 (01:22 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 15 Jan 2025 12:36:07 +0000 (12:36 +0000)
commit5a17293babea1c61340026b4d062c5a78bee8f66
tree728652467f2fae17255dfc8c4f48180f06210b4d
parent39af1fd453589392d4a59e51d09ee4035d5f48f1
x86/kexec: Debugging support: load a GDT

There are some failure modes which lead to triple-faults in the
relocate_kernel function, which is fairly much undebuggable for normal
mortals.

Adding a GDT in the relocate_kernel environment is step 1 towards being
able to catch faults and do something more useful.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kernel/relocate_kernel_64.S