diff options
Diffstat (limited to 'sys/isa/syscons.c')
-rw-r--r-- | sys/isa/syscons.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index 84655608b460..c181ef1465ff 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/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.211 1997/04/27 09:03:10 yokota Exp $ + * $Id: syscons.c,v 1.212 1997/04/30 01:19:21 ache Exp $ */ #include "sc.h" @@ -3400,8 +3400,14 @@ comp_vgaregs(u_char *buf1, u_char *buf2) if (*buf1++ != *buf2++) return 1; } - buf1 += 6; /* skip the cursor shape and unused values */ - buf2 += 6; + 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++) return 1; |