-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkernel.C
More file actions
49 lines (34 loc) · 1.18 KB
/
kernel.C
File metadata and controls
49 lines (34 loc) · 1.18 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
File: kernel.C
Author: R. Bettati
Department of Computer Science
Texas A&M University
Date : 2017/05/25
The "main()" function is the entry point for the kernel.
*/
/*--------------------------------------------------------------------------*/
/* INCLUDES */
/*--------------------------------------------------------------------------*/
#include "console.H"
using namespace std;
/* ======================================================================= */
/* MAIN -- THIS IS WHERE THE OS KERNEL WILL BE STARTED UP */
/* ======================================================================= */
int main()
{
/* -- INITIALIZE CONSOLE */
//*((int*)0xb8000)=0x07690748;
Console::init();
Console::cls();
Console::puts("Initialized console.\n");
Console::puts("\n");
Console::puts("Replace the following <NAME> field with your name.\n");
Console::puts("After your are done admiring your output, you can shutdown this 'machine'.\n");
Console::puts("\n");
Console::puts("WELCOME TO MY KERNEL!\n");
Console::puts(" ");
Console::set_TextColor(GREEN, RED);
Console::puts("<NAME>\n");
/* -- LOOP FOREVER! */
for(;;);
}