aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs
diff options
context:
space:
mode:
authorMarvin Borner2020-02-16 17:29:19 +0100
committerMarvin Borner2020-02-16 17:29:50 +0100
commit45184af20936cb889b658e69e00a0bb3d522757f (patch)
tree4b6c3408e526fe733ccfa960726c37e70dc6f989 /src/kernel/fs
parentf5b995586e28f7db426f4707a4348dc067df41c0 (diff)
Revert to good ol' paging
Diffstat (limited to 'src/kernel/fs')
-rw-r--r--src/kernel/fs/ata_pio.c2
-rw-r--r--src/kernel/fs/install.c2
-rw-r--r--src/kernel/fs/iso9660/iso9660.c2
-rw-r--r--src/kernel/fs/load.c4
-rw-r--r--src/kernel/fs/marfs/directory.c2
-rw-r--r--src/kernel/fs/marfs/new_file.c2
-rw-r--r--src/kernel/fs/marfs/read_whole_file.c2
-rw-r--r--src/kernel/fs/marfs/sectorlevel.c2
8 files changed, 9 insertions, 9 deletions
diff --git a/src/kernel/fs/ata_pio.c b/src/kernel/fs/ata_pio.c
index fef3a32..b6dcdcc 100644
--- a/src/kernel/fs/ata_pio.c
+++ b/src/kernel/fs/ata_pio.c
@@ -1,6 +1,6 @@
#include <kernel/io/io.h>
#include <kernel/fs/ata_pio.h>
-#include <kernel/memory/kheap.h>
+#include <kernel/memory/alloc.h>
struct ata_interface *new_ata(uint8_t master, uint16_t port_base)
{
diff --git a/src/kernel/fs/install.c b/src/kernel/fs/install.c
index f7e2489..84d74fd 100644
--- a/src/kernel/fs/install.c
+++ b/src/kernel/fs/install.c
@@ -6,7 +6,7 @@
#include <kernel/acpi/acpi.h>
#include <kernel/lib/stdio.h>
#include <kernel/timer/timer.h>
-#include <kernel/memory/kheap.h>
+#include <kernel/memory/alloc.h>
#include <kernel/fs/load.h>
void install_melvix()
diff --git a/src/kernel/fs/iso9660/iso9660.c b/src/kernel/fs/iso9660/iso9660.c
index 2262408..81ef18a 100644
--- a/src/kernel/fs/iso9660/iso9660.c
+++ b/src/kernel/fs/iso9660/iso9660.c
@@ -2,7 +2,7 @@
#include <kernel/fs/atapi_pio.h>
#include <kernel/fs/iso9660/iso9660.h>
#include <kernel/lib/stdlib.h>
-#include <kernel/memory/kheap.h>
+#include <kernel/memory/alloc.h>
struct iso9660_entity *ISO9660_get(char **dirs, uint8_t dirs_sz)
{
diff --git a/src/kernel/fs/load.c b/src/kernel/fs/load.c
index be7d5b8..cd422d0 100644
--- a/src/kernel/fs/load.c
+++ b/src/kernel/fs/load.c
@@ -4,11 +4,11 @@
#include <kernel/fs/atapi_pio.h>
#include <kernel/system.h>
#include <kernel/fs/iso9660/iso9660.h>
-#include <kernel/memory/kheap.h>
+#include <kernel/memory/alloc.h>
void load_binaries()
{
- userspace = kmalloc(10000);
+ userspace = (uint32_t) kmalloc(10000);
font = (struct font *) kmalloc(100000);; // High quality shit
uint8_t boot_drive_id = (uint8_t) (*((uint8_t *) 0x9000));
diff --git a/src/kernel/fs/marfs/directory.c b/src/kernel/fs/marfs/directory.c
index dce92b1..fd8ecd6 100644
--- a/src/kernel/fs/marfs/directory.c
+++ b/src/kernel/fs/marfs/directory.c
@@ -2,7 +2,7 @@
#include <kernel/fs/ata_pio.h>
#include <kernel/lib/stdlib.h>
#include <kernel/fs/marfs/marfs.h>
-#include <kernel/memory/kheap.h>
+#include <kernel/memory/alloc.h>
uint32_t marfs_new_dir(uint32_t uid)
{
diff --git a/src/kernel/fs/marfs/new_file.c b/src/kernel/fs/marfs/new_file.c
index ab1c241..8f85ffa 100644
--- a/src/kernel/fs/marfs/new_file.c
+++ b/src/kernel/fs/marfs/new_file.c
@@ -1,7 +1,7 @@
#include <stdint.h>
#include <kernel/fs/ata_pio.h>
#include <kernel/fs/marfs/marfs.h>
-#include <kernel/memory/kheap.h>
+#include <kernel/memory/alloc.h>
static uint8_t last_max_level = 0;
diff --git a/src/kernel/fs/marfs/read_whole_file.c b/src/kernel/fs/marfs/read_whole_file.c
index 4507f66..f530441 100644
--- a/src/kernel/fs/marfs/read_whole_file.c
+++ b/src/kernel/fs/marfs/read_whole_file.c
@@ -1,7 +1,7 @@
#include <stdint.h>
#include <kernel/fs/ata_pio.h>
#include <kernel/fs/marfs/marfs.h>
-#include <kernel/memory/kheap.h>
+#include <kernel/memory/alloc.h>
static uint8_t last_max_level = 0;
diff --git a/src/kernel/fs/marfs/sectorlevel.c b/src/kernel/fs/marfs/sectorlevel.c
index 8302054..96a24ba 100644
--- a/src/kernel/fs/marfs/sectorlevel.c
+++ b/src/kernel/fs/marfs/sectorlevel.c
@@ -1,7 +1,7 @@
#include <stdint.h>
#include <kernel/fs/ata_pio.h>
#include <kernel/fs/marfs/marfs.h>
-#include <kernel/memory/kheap.h>
+#include <kernel/memory/alloc.h>
uint8_t marfs_init(struct ata_interface *_interface)
{