Move version.h
This commit is contained in:
parent
2e8023e4e2
commit
7e6b8626c1
@ -19,15 +19,14 @@
|
||||
#include <core/memory/page.h>
|
||||
#include <util/param.h>
|
||||
#include <util/util.h>
|
||||
#include "../libs/version.h"
|
||||
#include "../libs/boot/bootparams.h"
|
||||
#include <version.h>
|
||||
|
||||
extern uint8_t __bss_start;
|
||||
extern uint8_t __end;
|
||||
|
||||
uint16_t DEBUG_COM_PORT = COM1_PORT;
|
||||
|
||||
void __attribute__((section(".entry"))) start(BootParams* bootParams) {
|
||||
void __attribute__((section(".entry"))) start() {
|
||||
|
||||
// print logo
|
||||
clrscr();
|
||||
@ -62,16 +61,6 @@ void __attribute__((section(".entry"))) start(BootParams* bootParams) {
|
||||
// Memory_Page_Init();
|
||||
printf("Done!\n");
|
||||
|
||||
|
||||
|
||||
// Debug Info for Memory
|
||||
Serial_Printf(DEBUG_COM_PORT, "MEMORY:> Boot Device: %x\n", bootParams->BootDevice);
|
||||
Serial_Printf(DEBUG_COM_PORT, "MEMORY:> Region Count: %x\n", bootParams->Memory.RegionCount);
|
||||
for (int i = 0; i < bootParams->Memory.RegionCount; i++) {
|
||||
Serial_Printf(DEBUG_COM_PORT, "MEMORY:> start=0x%llx length=0x%llx type=0x%x\n",
|
||||
bootParams->Memory.Regions[i].Begin, bootParams->Memory.Regions[i].Length, bootParams->Memory.Regions[i].Type);
|
||||
}
|
||||
|
||||
end:
|
||||
for (;;);
|
||||
}
|
||||
|
||||
@ -6,5 +6,4 @@
|
||||
#pragma once
|
||||
|
||||
#define LOGO " _ _____ _ __________________\n / | / / | / | / / _/_ __/ ____/\n / |/ / /| | / |/ // / / / / __/ \n / /| / ___ |/ /| // / / / / /___ \n/_/ |_/_/ |_/_/ |_/___/ /_/ /_____/ \n"
|
||||
#define VERSION "RD-00036"
|
||||
#define BOOTLOGO " _ ______ ____ ____ ______\n / | / / __ )/ __ \\/ __ /_ __/\n / |/ / __ / / / / / / // / \n / /| / /_/ / /_/ / /_/ // / \n/_/ |_/_____/\\____/\\____//_/ \n"
|
||||
#define VERSION "RD-00037"
|
||||
@ -1,27 +0,0 @@
|
||||
/*----------------*\
|
||||
|Nanite OS |
|
||||
|Copyright (C) 2024|
|
||||
|Tyler McGurrin |
|
||||
\*----------------*/
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint64_t Begin, Length;
|
||||
uint32_t Type;
|
||||
uint32_t ACPI;
|
||||
} MemoryRegion;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int RegionCount;
|
||||
MemoryRegion* Regions;
|
||||
} MemoryInfo;
|
||||
|
||||
|
||||
typedef struct {
|
||||
MemoryInfo Memory;
|
||||
char* KernelParams;
|
||||
uint8_t BootDevice;
|
||||
} BootParams;
|
||||
Loading…
x
Reference in New Issue
Block a user