]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/dev/i386/km.c
xnu-792.25.20.tar.gz
[apple/xnu.git] / bsd / dev / i386 / km.c
index 6de6ff0bb2bed9e3d97c5146904f0d4e693cd37f..a75e4ea54cf7ee04ba48d075d0880e0d0645f684 100644 (file)
@@ -40,6 +40,7 @@
 #include <sys/time.h>
 #include <dev/kmreg_com.h>
 #include <pexpert/pexpert.h>
+#include <pexpert/i386/boot.h>
 
 extern int hz;
 
@@ -135,7 +136,10 @@ kmopen(
 
                bzero(&video, sizeof(video));
                PE_current_console(&video);
-               if( video.v_width != 0 && video.v_height != 0 ) {
+                if( video.v_display == VGA_TEXT_MODE ) {
+                        wp->ws_col = video.v_width;
+                        wp->ws_row = video.v_height;
+                } else if( video.v_width != 0 && video.v_height != 0 ) {
                        wp->ws_col = video.v_width / wp->ws_xpixel;
                        wp->ws_row = video.v_height / wp->ws_ypixel;
                } else {