diff options
| author | Alexey Gavrilov <rebovas@yahoo.com> | 2023-11-04 10:09:44 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <rebovas@yahoo.com> | 2023-11-04 10:09:44 +0700 |
| commit | c18781e37e6bfe153e7c0f2bc8b04df0aecf151d (patch) | |
| tree | 42bb0e00e58ccf85aa3b93c20347d4939464066e /kernel/kernel.c | |
| parent | a93807ad337dd982c49f898cd5205d2b028f365d (diff) | |
Support for GDT has been written + add makefile debug mode
Diffstat (limited to 'kernel/kernel.c')
| -rw-r--r-- | kernel/kernel.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/kernel/kernel.c b/kernel/kernel.c index 9a901b1..59caf0a 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -1,22 +1,13 @@ -#ifdef __cplusplus -extern "C" { -#endif - +#include "GlobalConstruct.h" #include "../arch/x86/io/GlobalObj.h" #include "../arch/x86/inc/TypeConverter.h" void main() { - VGADisplay d; - IntConverter conv; + GlobalConstruct::terminalInit(); + GlobalConstruct::gdtInit(); - unsigned int i = 124; + display << "Hello, World!"; - d << conv.intToChar(i); - d << "Hello, world!\tHello, world!"; - for(int i = 0; i < 10; i++)d << "\tHello!"; }; -#ifdef __cplusplus -}; -#endif |
