diff options
author | kato <kato@FreeBSD.org> | 1997-05-01 11:28:49 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-05-01 11:28:49 +0000 |
commit | 125ab2173d2fe616dd01fac61bb87fa5bc9b435b (patch) | |
tree | 1f5b7b580d39a030a63933bcb0be7ae6c5167ee3 /sys | |
parent | 0e56117666533387c89ee4839fa7ca3c4062a388 (diff) | |
download | FreeBSD-src-125ab2173d2fe616dd01fac61bb87fa5bc9b435b.zip FreeBSD-src-125ab2173d2fe616dd01fac61bb87fa5bc9b435b.tar.gz |
Synchronize with sys/i386/isa/syscons.c up to revision 1.213.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/pc98/syscons.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c index aa51417..d2c565a 100644 --- a/sys/pc98/pc98/syscons.c +++ b/sys/pc98/pc98/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.35 1997/04/21 12:31:31 kato Exp $ + * $Id: syscons.c,v 1.36 1997/04/27 13:23:29 kato Exp $ */ #include "sc.h" @@ -4368,11 +4368,17 @@ comp_vgaregs(u_char *buf1, u_char *buf2) { int i; - for(i = 0; i < 24; ++i) { + for(i = 0; i < 20; ++i) { if (*buf1++ != *buf2++) return 1; } - buf1 += 2; /* skip the cursor position register value */ + buf1 += 2; /* skip the cursor shape */ + buf2 += 2; + for(i = 22; i < 24; ++i) { + if (*buf1++ != *buf2++) + return 1; + } + buf1 += 2; /* skip the cursor position */ buf2 += 2; for(i = 26; i < 64; ++i) { if (*buf1++ != *buf2++) |