blob: 1b62de8be14952cb36163f8d9bb121f4ab7e4c90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
//To load GDT
#include "GDT/gdt.hpp"
//To print text
#include "Drivers/memPrint/memPrint.hpp"
//----- PiegOS kernel main -----
int main(){
//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();
}
|