]> 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, 12 Mar 2025 13:34:19 +0000 (13:34 +0000)
commitd919b69b7a349e91b12b097afa5a8ae04bf25699
treeebf08630acf1a543c9641b6bf846cb1509ac949c
parent0fed89a961ea851945d23cc35beb59d6e56c0964
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