diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2016-11-15 13:01:58 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-11-16 09:38:23 +0100 |
commit | f96acec8c8020807429d21324547f4b904c37177 (patch) | |
tree | e69e6c294d332d2fed78748076350f5a3b67d415 /arch/x86/kernel/head_32.S | |
parent | x86/sysfb: Add support for 64bit EFI lfb_base (diff) | |
download | linux-f96acec8c8020807429d21324547f4b904c37177.tar.xz linux-f96acec8c8020807429d21324547f4b904c37177.zip |
x86/sysfb: Fix lfb_size calculation
The screen_info.lfb_size field is shifted by 16 bits *only* in case of
VBE. This has historical reasons since VBE advertised it similarly.
However, in case of EFI framebuffers, the size is no longer shifted. Fix
the x86 simple-framebuffer setup code to use the correct size in the
non-VBE case.
While at it, avoid variable abbreviations and rename 'len' to 'length',
and use the correct types matching the screen_info definition.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tom Gundersen <teg@jklm.no>
Link: http://lkml.kernel.org/r/20161115120158.15388-3-dh.herrmann@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/head_32.S')
0 files changed, 0 insertions, 0 deletions