feat: added cross compiler and moved headers to include dir
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
|
||||
#include <libc/kprintf.h>
|
||||
#include <tasks/task.h>
|
||||
#include "malloc.h"
|
||||
#include "pmm.h"
|
||||
#include <mem/malloc.h>
|
||||
#include <mem/pmm.h>
|
||||
|
||||
// retrieved from https://github.com/blanham/liballoc
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// Created by rick on 23-02-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_MALLOC_H
|
||||
#define NEW_KERNEL_MALLOC_H
|
||||
// retrieved from https://github.com/blanham/liballoc
|
||||
#include <types.h>
|
||||
|
||||
void *malloc(size_t);
|
||||
|
||||
void *realloc(void *, size_t);
|
||||
|
||||
void *calloc(size_t, size_t);
|
||||
|
||||
void free(void *);
|
||||
|
||||
void print_malloc_info();
|
||||
|
||||
#endif //NEW_KERNEL_MALLOC_H
|
||||
@@ -2,7 +2,7 @@
|
||||
// Created by rick on 22-04-20.
|
||||
//
|
||||
|
||||
#include "pmm.h"
|
||||
#include <mem/pmm.h>
|
||||
#include <types.h>
|
||||
#include <mem/mem.h>
|
||||
#include <libc/kprintf.h>
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
//
|
||||
// Created by rick on 22-04-20.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_MEM_H
|
||||
#define NEW_KERNEL_MEM_H
|
||||
|
||||
#include <multiboot.h>
|
||||
|
||||
void mmap_init_multiboot(struct multiboot_mmap_entry *entries, uint32_t count);
|
||||
|
||||
void print_mmap_info();
|
||||
|
||||
#endif //NEW_KERNEL_MEM_H
|
||||
@@ -2,7 +2,7 @@
|
||||
// Created by rick on 21-02-21.
|
||||
//
|
||||
|
||||
#include "paging.h"
|
||||
#include <mem/paging.h>
|
||||
#include <types.h>
|
||||
#include <stdbool.h>
|
||||
#include <attributes.h>
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
//
|
||||
// Created by rick on 21-02-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_PAGING_H
|
||||
#define NEW_KERNEL_PAGING_H
|
||||
|
||||
#endif //NEW_KERNEL_PAGING_H
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <libc/libc.h>
|
||||
#include <libk/libk.h>
|
||||
#include "pmm.h"
|
||||
#include <mem/pmm.h>
|
||||
|
||||
#define NUM_PAGING_INFOS 16
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
//
|
||||
// Created by rick on 23-02-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_PMM_H
|
||||
#define NEW_KERNEL_PMM_H
|
||||
#include <types.h>
|
||||
|
||||
// 4k blocks
|
||||
#define PAGE_SIZE 4096
|
||||
|
||||
void pmm_init(void* start_addr, size_t size);
|
||||
void *pmm_get_pages(uint32_t num_pages);
|
||||
void pmm_free_pages(void* page, uint32_t num_pages);
|
||||
|
||||
#endif //NEW_KERNEL_PMM_H
|
||||
Reference in New Issue
Block a user