pass memory map to kernel and exit boot services

This commit is contained in:
2026-01-28 12:16:46 +11:00
parent 1a96ca983d
commit 35145022b5
7 changed files with 43 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -4,14 +4,22 @@
#include "cstr.h"
struct BootInfo {
Framebuffer* framebuffer;
PSF1_FONT* psf1_Font;
void* mMap;
uint64_t mMapSize;
uint64_t mMapDescriptorSize;
};
// supposed to protect against stack smashing but we have no way to actually like
// do anything when we detect it soooo...
extern "C" void __stack_chk_fail(void) {
return;
}
extern "C" void _start(Framebuffer* framebuffer, PSF1_FONT* psf1_Font) {
BasicRenderer newRenderer = BasicRenderer(framebuffer, psf1_Font);
extern "C" void _start(BootInfo* bootInfo) {
BasicRenderer newRenderer = BasicRenderer(bootInfo->framebuffer, bootInfo->psf1_Font);
newRenderer.Print(0xFFFFFF, to_string((uint64_t)1234976));
newRenderer.cursorPosition = {0, 18};
newRenderer.Print(0xFFFFFF, to_string((int64_t)-1234976));