efi_loader: save global data pointer on RISC-V
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 10 Sep 2020 10:22:54 +0000 (12:22 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 14 Sep 2020 21:28:52 +0000 (23:28 +0200)
commitd68d7f47a9f1942ee64e0b119f0e1e2ebf660ed1
tree5ceeafe2ede2b05c3f9d4b1a7c83465a5a0a9ced
parent6b9966e1aa362e97e9b33b7b82ff713f2ddea2c1
efi_loader: save global data pointer on RISC-V

On RISC-V the global data pointer is stored in register gp. When a UEFI
binary calls the EFI API we have to restore it.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_boottime.c