]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Add a way to call 32-bit code from 64-bit mode
authorSimon Glass <sjg@chromium.org>
Tue, 4 Aug 2015 18:33:55 +0000 (12:33 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:00:56 +0000 (08:00 +0200)
commitc8f04711de880de8908906346d377722f9af2dd9
tree59c544c856f1ddc86058720cd3ac05504ae14be1
parentefc83c0ecdf30e66bd6e1cbb3a775077f49d09a9
x86: Add a way to call 32-bit code from 64-bit mode

The procedure to drop from 64-bit mode to 32-bit is a bit messy. Add a
function to take care of it. It requires identity-mapped pages and that
the calling code is running below 4GB.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/Makefile
arch/x86/cpu/call32.S [new file with mode: 0644]
arch/x86/include/asm/cpu.h