aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/arch/x86_64/limine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/x86_64/limine.cpp')
-rw-r--r--kernel/arch/x86_64/limine.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/arch/x86_64/limine.cpp b/kernel/arch/x86_64/limine.cpp
index 84f8642..8c67c52 100644
--- a/kernel/arch/x86_64/limine.cpp
+++ b/kernel/arch/x86_64/limine.cpp
@@ -1,4 +1,3 @@
-#include <cstddef>
#include <stdint.h>
#include <stddef.h>
#include "limine.h"
@@ -37,6 +36,7 @@ void hcf() {
extern void (*__init_array[])();
extern void (*__init_array_end[])();
+extern "C" void kernel_main();
extern "C" void _start() {
if (!LIMINE_BASE_REVISION_SUPPORTED) {
@@ -58,11 +58,13 @@ extern "C" void _start() {
limine_framebuffer *framebuffer = framebuffer_request.response->framebuffers[0];
// Note: we assume the framebuffer model is RGB with 32-bit pixels.
- for (std::size_t i = 0; i < 100; i++) {
+ for (size_t i = 0; i < 100; i++) {
volatile uint32_t *fb_ptr = static_cast<volatile uint32_t *>(framebuffer->address);
fb_ptr[i * (framebuffer->pitch / 4) + i] = 0xffffff;
}
+
+
// We're done, just hang...
hcf();
} \ No newline at end of file