1 #include <aros/kernel.h>
2 #include <hardware/vbe.h>
3 #include <utility/tagitem.h>
5 #include <bootconsole.h>
8 int __vcformat(void *data
, int(*outc
)(int, void *), const char * format
, va_list args
);
9 int kprintf(const char *format
, ...);
11 void __startup
start(struct TagItem
*tags
)
13 struct vbe_mode
*vbemode
= NULL
;
15 fb_Mirror
= (void *)0x100000;
17 con_InitTagList(tags
);
19 kprintf("Test module succesfully started\n");
21 kprintf("Taglist at 0x%p:\n", tags
);
22 for (; tags
->ti_Tag
!= TAG_DONE
; tags
++)
24 kprintf("0x%08lX 0x%p\n", tags
->ti_Tag
, tags
->ti_Data
);
29 vbemode
= (struct vbe_mode
*)tags
->ti_Data
;
36 kprintf("VBE mode structure at 0x%p\n", vbemode
);
37 kprintf("Mode : %dx%dx%d\n", vbemode
->x_resolution
, vbemode
->y_resolution
, vbemode
->bits_per_pixel
);
38 kprintf("Base : 0x%08X\n", vbemode
->phys_base
);
39 kprintf("Pitch: %u\n", vbemode
->bytes_per_scanline
);
40 kprintf("Flags: 0x%08X\n", vbemode
->mode_attributes
);
46 static int kputc(int c
, void *data
)
52 int kprintf(const char *format
, ...)
58 res
= __vcformat(NULL
, kputc
, format
, ap
);