projects
/
bootcensus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
foo
[bootcensus]
/
src
/
kmain.c
diff --git
a/src/kmain.c
b/src/kmain.c
index
99104a2
..
bcd8a91
100644
(file)
--- a/
src/kmain.c
+++ b/
src/kmain.c
@@
-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 <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <unistd.h>
#include "segm.h"
#include "intr.h"
#include "mem.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++) {
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];
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;
}
}
break;
}
}