x86: Use a simple jump into long mode
authorSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 14:25:39 +0000 (14:25 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 17:41:55 +0000 (11:41 -0600)
commitffd92a25be3feb4d9ff8393781ce65896cf9a3b6
treee81675dc0457aeddada1dc1be8712723ac763731
parentf5b1c643b41214b0c04db827c539a278aee76255
x86: Use a simple jump into long mode

With the 64-bit descriptor we can use a jump instruction, rather than
pushing things on the stack.

Since the processor is in 64-bit mode by this point, pop a 64-bit value
from the stack, containing the target address.

This simplifies the code slightly, in particular its use of the stack.

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