diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-11 12:29:30 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-02-15 18:07:38 +0200 |
commit | 2e5d9c9899f6b7bc7cd8ce04496bba5f30508da4 (patch) | |
tree | da6d88d7228b47fa71489232a5a473ec2366db0f /usr/src/uts/common/io/tem.c | |
parent | fefbffa8f453de002d65a4ac83d0b280acf23a73 (diff) | |
download | illumos-joyent-2e5d9c9899f6b7bc7cd8ce04496bba5f30508da4.tar.gz |
10357 tem: do not restore image areas
Reviewed by: Andy Fiddaman <af@citrus-it.net>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/common/io/tem.c')
-rw-r--r-- | usr/src/uts/common/io/tem.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/tem.c b/usr/src/uts/common/io/tem.c index 630c0fd68c..eeda8f375f 100644 --- a/usr/src/uts/common/io/tem.c +++ b/usr/src/uts/common/io/tem.c @@ -252,7 +252,6 @@ tem_internal_init(struct tem_vt_state *ptem, cred_t *credp, ptem->tvs_screen_rows[i][j].tc_bg_color = bg; ptem->tvs_screen_rows[i][j].tc_char = TEM_ATTR(attr) | ' '; - } } @@ -910,6 +909,19 @@ tem_pix_align(struct tem_vt_state *tem, cred_t *credp, tem->tvs_s_cursor.row = tem->tvs_c_cursor.row = (screen_pos_t)row; tem->tvs_s_cursor.col = tem->tvs_c_cursor.col = 0; + + /* + * When tem is starting up, part of the screen is filled + * with information from boot loader and early boot. + * For tem, the screen content above current cursor + * should be treated as image. + */ + for (; row > 0; row--) { + for (col = 0; col < tems.ts_c_dimension.width; col++) { + tem->tvs_screen_rows[row][col].tc_char = + TEM_ATTR(TEM_ATTR_IMAGE); + } + } } else { tem_safe_reset_display(tem, credp, called_from, B_TRUE, B_TRUE); } |