37 lines
512 B
C++
37 lines
512 B
C++
//To load GDT
|
|
#include "GDT/gdt.hpp"
|
|
#include "./Helpers/memPrint.hpp"
|
|
|
|
|
|
//----- PiegOS kernel main -----
|
|
int main(){
|
|
|
|
//Test print a char
|
|
char* letter=(char*)0xB8A00;
|
|
*letter='H';
|
|
letter++;
|
|
*letter=(GREEN << 4) | BLUE;
|
|
|
|
//Infinite loop
|
|
while(1);
|
|
|
|
//Exit code
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
//----- PiegOS kernel boot -----
|
|
//Mangling the _boot function
|
|
extern "C" void _boot(){
|
|
|
|
//Create Gdt instance
|
|
Gdt gdt;
|
|
|
|
//Load Gdt into memory
|
|
//gdt.loadGdt();
|
|
|
|
//Call main function
|
|
main();
|
|
}
|
|
|