x86: Disable paging before changing to long mode
authorSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 14:25:37 +0000 (14:25 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 17:41:55 +0000 (11:41 -0600)
commitf5f1ed8ae7395dbffa611823457a3beeda462577
tree00f50864f99f2334f021f1b38553c9cfcb721a9b
parent3c7ab12249a986267f0eb60dffaa85c1f254148e
x86: Disable paging before changing to long mode

This is required as part of the procedure. The existing code works
because it changes the GDT at the same time, but this makes kvm
unhappy.

Update the algorithm to disable and then re-enable paging.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/i386/call64.S