1
0
aedrix-kernel/kernel/start_kernel.c

27 lines
448 B
C
Raw Normal View History

#include <print.h>
#include <devices/pl011.h>
2012-09-10 22:44:54 -04:00
#include <devices/pl111.h>
#include <framebuffer.h>
#include <console.h>
struct fb myfb;
void video(void) {
// unsigned int x, y;
2012-09-10 22:44:54 -04:00
pl111_init(&myfb, 24);
// x = 0, y = 0;
// for (y=0; y<480; y++)
// for (x=0; x<640; x++)
// fb_write_pixel(&myfb, x, y, 0x3f, 0x0, 0x6f);
console_init(&myfb);
}
int main(void) {
print_init(&pl011_putc); //initialize the serial console
video();
return 0;
}