Minor fixes

This commit is contained in:
xamidev
2024-09-07 20:27:03 +02:00
parent b0668b1fd7
commit 8826a7d873
4 changed files with 47 additions and 5 deletions

View File

@@ -77,14 +77,14 @@ void kmain(multiboot2_info *mb_info)
if (mmap->addr != 0)
{
/*
printf("[debug] base addr=0x%x%x, length=0x%x%x, type=%u\n",
serial_printf(3, "base addr=0x%x%x, length=0x%x%x, type=%u\n",
(uint32_t) (mmap->addr >> 32),
(uint32_t) (mmap->addr & 0xFFFFFFFF),
(uint32_t) (mmap->len >> 32),
(uint32_t) (mmap->len & 0xFFFFFFFF),
mmap->type);
*/
}
mmap = (struct multiboot_mmap_entry*) ((uint8_t*)mmap + mmap_tag->entry_size);
@@ -99,7 +99,6 @@ void kmain(multiboot2_info *mb_info)
uint32_t initrd_size = initrd_end - initrd_start;
printf("[kernel] TAR initrd module found at 0x%x, size=%u bytes\n", initrd_start, initrd_size);
//tar_find_file((uint8_t*)initrd_start, "./hello.txt");
} else {
puts("[kernel] TAR initrd module not found\n");

View File

@@ -6,6 +6,8 @@
#ifndef KMAIN_H
#define KMAIN_H
#define BLANK_VERSION "0.3.107-alpha"
#include <stdint.h>
typedef struct {

View File

@@ -10,6 +10,7 @@
#include "../libc/crypto.h"
#include <stdint.h>
#include "../drivers/rtc.h"
#include "kmain.h"
#define BUFFER_SIZE 256
#define MAX_COMMANDS 64
@@ -54,7 +55,10 @@ void splash()
int random = randint(time_seed());
char* motd_pick = motd[random%motd_size];
cowsay(motd_pick, red, black);
colorputs(" blankOS 0.3.97-alpha", red, black);
puts(" ");
colorputs("blankOS", black, white);
puts(" ");
colorputs(BLANK_VERSION, red, black);
puts("\n");