efi/libstub: Add a helper function to split 64-bit values
authorArvind Sankar <nivedita@alum.mit.edu>
Thu, 30 Apr 2020 18:28:34 +0000 (14:28 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 1 May 2020 07:40:02 +0000 (09:40 +0200)
commiteed4e0193ee7b00213791f7732bce0fc0c54f3b3
treea2a34483e9df5bbb9e372bdd64b0d58ea681055e
parent019512f1fd373632577ecd3e8d721e48b71fb36a
efi/libstub: Add a helper function to split 64-bit values

In several places 64-bit values need to be split up into two 32-bit
fields, in order to be backward-compatible with the old 32-bit ABIs.

Instead of open-coding this, add a helper function to set a 64-bit value
as two 32-bit fields.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200430182843.2510180-3-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/gop.c
drivers/firmware/efi/libstub/x86-stub.c