2023-09-30 22:51:57 +03:00
|
|
|
#include <arch.h>
|
|
|
|
#include <cpu.h>
|
|
|
|
#include <fb.h>
|
2023-10-07 18:28:48 +03:00
|
|
|
#include <limine.h>
|
|
|
|
#include <mem.h>
|
|
|
|
#include <mod.h>
|
2023-09-30 22:51:57 +03:00
|
|
|
#include <tool.h>
|
2023-09-30 22:21:56 +03:00
|
|
|
|
|
|
|
// Точка входа
|
2023-10-07 18:28:48 +03:00
|
|
|
extern "C" void _start( ) {
|
|
|
|
asm volatile("cli");
|
2023-09-30 22:21:56 +03:00
|
|
|
|
2023-10-07 18:28:48 +03:00
|
|
|
fb::init( );
|
|
|
|
fb::printf("Привет, мир!!\n");
|
|
|
|
cpu::init( );
|
|
|
|
mem::init( );
|
2023-09-30 22:51:57 +03:00
|
|
|
|
2023-10-07 18:28:48 +03:00
|
|
|
for (;;) { asm volatile("hlt"); }
|
2023-09-30 16:30:06 +03:00
|
|
|
}
|