From 8e2017bd293891aeedaacd66c56d4e3215eb304a Mon Sep 17 00:00:00 2001 From: starnakin Date: Fri, 18 Apr 2025 17:31:08 +0200 Subject: [PATCH] clean --- src/kernel.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/src/kernel.c b/src/kernel.c index a831305..1dcbb66 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -30,28 +30,6 @@ #error "This tutorial needs to be compiled with a ix86-elf compiler" #endif -static void uwu(void) -{ - kprintf("uwu\n"); -} - -static void owo(void) -{ - while (true) - kprintf("owoooooooooooooooooooooooooooooooooooo\n"); -} - -static void awa(void) -{ - uint32_t pid = fork(); - PRINT_INT(pid); - if (pid < 0) - kprintf("awais"); - kprintf("awaille\n"); - if (pid) - wait(); -} - static void bozo(int int_code) { kprintf("apagnan code\n"); @@ -69,21 +47,6 @@ void kernel_main(multiboot_info_t *mbd, uint32_t magic) // " "complex 8*unknown quantity -byte descriptor table. -- Troy // " "Martin 03:50, 22 March 2009 (UTC)\n"); create_kernel_task(); - vmalloc(1231231); - // uint32_t nb_alloc = 0; - // while (kmalloc(10)) - // nb_alloc++; - // kprintf("%d\n", nb_alloc); - for (uint8_t i = 0; i < 10; i++) - vmalloc(32); - char *str = kmalloc(20); - show_kalloc_mem(); - strcpy(str, "test\n"); - kprintf("%s", str); - // exec_fn(owo); - // exec_fn(owo); - // exec_fn(owo); - // exec_fn(owo); kill(0, 4); for (size_t i = 0; i < 10000; i++) free_pages(alloc_pages(1, NULL), 1);