diff options
author | Ard Biesheuvel <[email protected]> | 2018-07-20 10:47:21 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-07-22 14:13:43 +0200 |
commit | 290084c2fa13e9aaa7f856ed1ab30760327dd9f8 (patch) | |
tree | ed0be28bf4ac8955a9b2ba18d44088e01236ce00 /net/lapb/lapb_subr.c | |
parent | 0b767b16d7b634dd62667f224425cef3c78e031c (diff) |
efi/x86: Merge 32-bit and 64-bit UGA draw protocol setup routines
The two versions of setup_uga##() are mostly identical, with the
exception of the size of EFI_HANDLE. So let's merge the two, and
pull the implementation into the calling function setup_uga().
Note that the 32-bit version was only mixed-mode safe by accident:
it only calls the get_mode() method of the UGA draw protocol, which
happens to be the first member, and so truncating the 64-bit void* at
offset 0 to 32 bits happens to produce the correct value. But let's
not rely on that, and use the proper API instead.
Tested-by: Hans de Goede <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Lukas Wunner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions