foo
[bootcensus] / src / kmain.c
index 99104a2..bcd8a91 100644 (file)
@@ -18,6 +18,7 @@ along with this program.  If not, see <https://www.gnu.org/licenses/>.
 #include <stdio.h>
 #include <string.h>
 #include <ctype.h>
+#include <unistd.h>
 #include "segm.h"
 #include "intr.h"
 #include "mem.h"
@@ -119,10 +120,11 @@ static int video_init(void)
                qsort(vmodes, nmodes, sizeof *vmodes, modecmp);
 
                for(i=0; i<nmodes; i++) {
+                       printf("trying video mode: %x (%dx%d %dbpp)\n", vmodes[i].mode, vmodes[i].width,
+                                       vmodes[i].height, vmodes[i].bpp);
+                       usleep(5000000);
                        if((fbptr = set_video_mode(vmodes[i].mode))) {
                                vmode = vmodes[i];
-                               printf("video mode: %x (%dx%d %dbpp)\n", vmode.mode, vmode.width,
-                                               vmode.height, vmode.bpp);
                                break;
                        }
                }