pass memory map to kernel and exit boot services
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user