From 2d2187830c156e9c36e70fb7dbe4b05dfc09a255 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Duje=20Mihanovi=C4=87?= <duje.mihanovic@skole.hr>
Date: Wed, 8 Sep 2021 10:43:37 +0200
Subject: [PATCH] Better gitignore and tidier string

---
 .gitignore      |  4 ++--
 kernel/kernel.c | 18 ++++++++++--------
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/.gitignore b/.gitignore
index 735084c..76d7ba6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
 toolchain/
 boot
 boot.img
-kernel/kernel.bin
-kernel/*.o
+**/*.o
+**/*.bin
diff --git a/kernel/kernel.c b/kernel/kernel.c
index c0ecb80..1e27a1b 100644
--- a/kernel/kernel.c
+++ b/kernel/kernel.c
@@ -1,14 +1,16 @@
 #include <tty.h>
 
+const char *string = "Hello there!\n\n\
+Hopefully your machine manages to print this text.\n\
+If it did, that's great news because I managed to write a partial VGA driver.\n\n\
+Right now, the short-term roadmap is as follows:\n\n\
+* Enable interrupts using the PIC.\n\
+* Write a driver for the Intel 8042 PS/2 controller so the OS can receive keystrokes.\n\
+* A working i8042 driver will also aid in enabling A20 Gate, which should be done ASAP so the OS can address odd (as in odd/even number) megabytes.\n\n\
+Feel free to mess around with the code, although I doubt it will be very interesting at the moment.\n";
+
 void _start(void)
 {
 	screen_clear();
-	kprint("Hello there!\n\n\
-			Hopefully your machine manages to print this text.\n\
-			If it did, that's great news because I managed to write a partial VGA driver.\n\n\
-			Right now, the short-term roadmap is as follows:\n\n\
-			    * Enable interrupts using the PIC.\n\
-				* Write a driver for the Intel 8042 PS/2 controller so the OS can receive keystrokes.\n\
-				* A working i8042 driver will also aid in enabling A20 Gate, which should be done ASAP so the OS can address odd (as in odd/even number) megabytes.\n\n\
-			Feel free to mess around with the code, although I doubt it will be very interesting at the moment.\n");
+	kprint(string);
 }
-- 
2.39.5