aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2017-08-19 19:33:16 +0000
committerBruce Evans <bde@FreeBSD.org>2017-08-19 19:33:16 +0000
commit7692d200c10a971f5a812d08423355c3946ce534 (patch)
treef98c845612ca756edb5f276afd9b77be3787e24c /sys/dev/syscons
parent43f0edd4e70fd56f9fd0a227d5345c506b243eb8 (diff)
Notes
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/syscons.c10
-rw-r--r--sys/dev/syscons/syscons.h2
2 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 4eba7caab0fd..4141dea4b05f 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -3208,14 +3208,8 @@ scinit(int unit, int flags)
scp->cursor_pos = scp->cursor_oldpos = row*scp->xsize + col;
(*scp->tsw->te_sync)(scp);
- /* Sync BIOS cursor shape to s/w (sc only). */
- if (bios_value.cursor_end < scp->font_size)
- sc->dflt_curs_attr.base = scp->font_size -
- bios_value.cursor_end - 1;
- else
- sc->dflt_curs_attr.base = 0;
- i = bios_value.cursor_end - bios_value.cursor_start + 1;
- sc->dflt_curs_attr.height = imin(i, scp->font_size);
+ sc->dflt_curs_attr.base = 0;
+ sc->dflt_curs_attr.height = howmany(scp->font_size, 8);
sc->dflt_curs_attr.flags = 0;
sc->curs_attr = sc->dflt_curs_attr;
scp->curr_curs_attr = scp->dflt_curs_attr = sc->curs_attr;
diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h
index 8e4b6ddbbbf3..491404c51862 100644
--- a/sys/dev/syscons/syscons.h
+++ b/sys/dev/syscons/syscons.h
@@ -516,8 +516,6 @@ typedef struct sc_renderer {
SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
typedef struct {
- int cursor_start;
- int cursor_end;
int shift_state;
int bell_pitch;
} bios_values_t;