diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-01-18 23:16:56 -0500 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-01-18 23:16:56 -0500 |
| commit | ec7e798c70e54cf10e6dddf465cb7f741f760e79 (patch) | |
| tree | 4c55795e322a09bad030e1938de73f39bff29a28 /kernel/kernel.cpp | |
| parent | bb59107bd06a6a252b3743f17e55e3c17896db35 (diff) | |
added beginning and end kernel symbols
Diffstat (limited to 'kernel/kernel.cpp')
| -rw-r--r-- | kernel/kernel.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/kernel/kernel.cpp b/kernel/kernel.cpp index 579e642..877f860 100644 --- a/kernel/kernel.cpp +++ b/kernel/kernel.cpp @@ -7,14 +7,10 @@ #include <arch/i386/ps2_controller.h>
#include <dev/ps2kbd.h>
-// compiler and target check
-#if defined(__linux__)
-#error "you're not using a cross compiler"
-#endif
+// linker symbols
+unsigned int _begin;
+unsigned int _end;
-#if !defined(__i386__)
-#error "needs to be compiled using an ix86-elf cross compiler"
-#endif
extern "C" void kernel_main(void) {
// Initialize terminal
@@ -24,7 +20,6 @@ extern "C" void kernel_main(void) { //keyboard_init();
printf("Hello world!\n");
- printf("among\n");
- printf("balls\n");
- printf("a%db", 1);
-}
\ No newline at end of file + printf("a%db\n", 1);
+ printf("_begin: %x, _end: %x", &_begin, &_end);
+}
|
