Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2008 16:15:55 GMT
From:      Ed Schouten <ed@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 155331 for review
Message-ID:  <200812271615.mBRGFtYN055248@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=155331

Change 155331 by ed@ed_dull on 2008/12/27 16:15:35

	- Add a stress testing utility, that throws random data into the emulator.
	
	- Fix two crash bugs, caused by the stress testing utility.

Affected files ...

.. //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_stress.c#1 add
.. //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr.h#20 edit

Differences ...

==== //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr.h#20 (text+ko) ====

@@ -375,9 +375,13 @@
 	if (t->t_cursor.tp_row + nrows >= t->t_scrollreg.ts_end) {
 		tr.tr_begin.tp_row = t->t_cursor.tp_row;
 	} else {
+		teken_pos_t tp;
+
 		/* Copy rows up. */
 		tr.tr_begin.tp_row = t->t_cursor.tp_row + nrows;
-		teken_funcs_copy(t, &tr, &t->t_cursor);
+		tp.tp_row = t->t_cursor.tp_row;
+		tp.tp_col = 0;
+		teken_funcs_copy(t, &tr, &tp);
 
 		tr.tr_begin.tp_row = t->t_scrollreg.ts_end - nrows;
 	}
@@ -429,7 +433,7 @@
 	tr.tr_end.tp_row = t->t_cursor.tp_row + 1;
 
 	if (t->t_cursor.tp_col + ncols >= t->t_winsize.tp_col)
-		tr.tr_end.tp_col = t->t_winsize.tp_col - 1;
+		tr.tr_end.tp_col = t->t_winsize.tp_col;
 	else
 		tr.tr_end.tp_col = t->t_cursor.tp_col + ncols;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812271615.mBRGFtYN055248>