2022-11-13 11:25:15 +01:00
|
|
|
#include "Framebuffer.h"
|
2022-11-13 12:20:53 +01:00
|
|
|
#include "Init.h"
|
2022-11-13 14:29:15 +01:00
|
|
|
#include "arch/MMU.h"
|
2022-11-13 10:30:10 +01:00
|
|
|
#include "arch/Serial.h"
|
2022-10-16 15:31:58 +02:00
|
|
|
|
2022-11-13 14:29:15 +01:00
|
|
|
extern u8 fb[1];
|
|
|
|
|
2022-09-05 16:13:51 +02:00
|
|
|
extern "C" void _start()
|
|
|
|
{
|
2022-11-13 12:20:53 +01:00
|
|
|
Init::check_magic();
|
|
|
|
Init::early_init();
|
2022-11-13 10:30:10 +01:00
|
|
|
|
2022-11-13 12:20:53 +01:00
|
|
|
Serial::println("Hello, world!");
|
2022-11-13 11:25:15 +01:00
|
|
|
|
|
|
|
Framebuffer::rect(0, 0, 200, 200, 0xFF00FF00);
|
|
|
|
|
2022-11-13 14:29:15 +01:00
|
|
|
Serial::println(MMU::get_physical((u64)fb).has_error() ? "fb is not mapped" : "fb is mapped!!");
|
|
|
|
|
2022-11-13 10:09:09 +01:00
|
|
|
for (;;)
|
|
|
|
;
|
2022-09-05 16:13:51 +02:00
|
|
|
}
|