AFUERAAAA

This commit is contained in:
2025-01-07 15:11:10 +01:00
parent 27569fd5d8
commit b3687d20ee
17 changed files with 2 additions and 670 deletions

View File

@@ -8,14 +8,12 @@
#include "gdt.h"
#include "idt.h"
#include "system.h"
#include "../drivers/ata.h"
#include <stdint.h>
#include "../drivers/framebuffer.h"
#include "kmain.h"
#include "multiboot2.h"
#include "kheap.h"
#include "initrd.h"
#include "../libc/crypto.h"
void kmain(multiboot2_info *mb_info)
{
@@ -112,19 +110,8 @@ void kmain(multiboot2_info *mb_info)
__asm__ __volatile__("sti");
init_alloc();
void* ptr1 = malloc(256);
void* ptr2 = malloc(512);
printf("[debug] malloc test ptr1=0x%x, ptr2=0x%x\n", (unsigned int)ptr1, (unsigned int)ptr2);
free(ptr1); free(ptr2);
void* ptr3 = calloc(1024, 2);
printf("[debug] calloc test ptr3=0x%x\n", (unsigned int)ptr3);
free (ptr3);
// usually the place where i do testing
timer_install();
keyboard_install();
printf("Nothing to do, halting...");
asm("hlt");
}