multiboot fucking suuuckss

This commit is contained in:
Tyler McGurrin 2025-06-07 01:39:49 -04:00
parent 3f7f48da34
commit 1e52f2b5e7
4 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,6 @@
;/////////////////////;
;Nanite OS ;
;COPYRIGHT (C) 2024 ;
;COPYRIGHT (C) 2025 ;
;Tyler McGurrin ;
;/////////////////////;
[bits 32]

View File

@ -26,8 +26,11 @@ extern uint8_t __end;
uint16_t DEBUG_COM_PORT = COM1_PORT;
void __attribute__((section(".entry"))) start() {
void __attribute__((section(".entry"))) start(uint64_t multiboot_magic, void *multiboot_data) {
// multiboot 2 shit
// int padded_size = tag->size + ((tag->size % 8)?(8-(tag->size%8)):0);
// tag = incptr(tag, padded_size);
// print logo
clrscr();
printf("%s", LOGO);
@ -60,6 +63,7 @@ void __attribute__((section(".entry"))) start() {
printf("Initializing Memory Paging...");
// Memory_Page_Init();
printf("Done!\n");
printf("Multiboot Magic: %d\n", multiboot_magic);
end:
for (;;);

View File

@ -3,6 +3,10 @@
|Copyright (C) 2025|
|Tyler McGurrin |
\*----------------*/
#pragma once
#define incptr(p, n) ((void *)(((uintptr_t)(p)) + (n)))
int string_length(char s[]);
void append(char s[], char n);
void Print_Storage_Types(int masterFDDType, int slaveFDDType);

View File

@ -6,4 +6,4 @@
#pragma once
#define LOGO " _ _____ _ __________________\n / | / / | / | / / _/_ __/ ____/\n / |/ / /| | / |/ // / / / / __/ \n / /| / ___ |/ /| // / / / / /___ \n/_/ |_/_/ |_/_/ |_/___/ /_/ /_____/ \n"
#define VERSION "RD-00041"
#define VERSION "RD-00042"