diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2019-01-10 22:33:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-18 13:45:22 +0100 |
commit | bfd8d8fe98b8792f362cd210a7873969f8d2fc04 (patch) | |
tree | 6319e6b9be806403489bac2af679c51a79b54d95 /samples/mei | |
parent | vt: invoke notifier on screen size change (diff) | |
download | linux-bfd8d8fe98b8792f362cd210a7873969f8d2fc04.tar.xz linux-bfd8d8fe98b8792f362cd210a7873969f8d2fc04.zip |
vgacon: unconfuse vc_origin when using soft scrollback
When CONFIG_VGACON_SOFT_SCROLLBACK is selected, the VGA display memory
index and vc_visible_origin don't change when scrollback is activated.
The actual screen content is saved away and the scrollbackdata is copied
over it. However the vt code, and /dev/vcs devices in particular, still
expect vc_origin to always point at the actual screen content not the
displayed scrollback content.
So adjust vc_origin to point at the saved screen content when scrollback
is active and set it back to vc_visible_origin when restoring the screen.
This fixes /dev/vcsa<n> that return scrollback content when they
shouldn't (onli /dev/vcsa without a number should), and also fixes
/dev/vcsu that should return scrollback content when scrollback is
active but currently doesn't.
An unnecessary call to vga_set_mem_top() is also removed.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/mei')
0 files changed, 0 insertions, 0 deletions