diff options
author | Marvin Borner | 2019-11-23 00:36:28 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-23 00:36:28 +0100 |
commit | 45d9495e77dba212551ae9bc8e09b51e9ed6d324 (patch) | |
tree | 1e8ead9a55b41fa009c28823ca7a9ac0b1b5b2fe /src/kernel/fs/marfs | |
parent | 4b178c0feb4c415be36be0e4c0def8c447ed42af (diff) |
Tried implementing memory based paging...
Also did many other fixes/improvements.
While I think I did most things correct,
the ACPI doesn't work anymore (triple fault) and
the resolution detection fails with 0x2... :c
Diffstat (limited to 'src/kernel/fs/marfs')
-rw-r--r-- | src/kernel/fs/marfs/directory.c | 5 | ||||
-rw-r--r-- | src/kernel/fs/marfs/disklevel.c | 2 | ||||
-rw-r--r-- | src/kernel/fs/marfs/new_file.c | 4 | ||||
-rw-r--r-- | src/kernel/fs/marfs/read_whole_file.c | 4 | ||||
-rw-r--r-- | src/kernel/fs/marfs/sectorlevel.c | 4 |
5 files changed, 9 insertions, 10 deletions
diff --git a/src/kernel/fs/marfs/directory.c b/src/kernel/fs/marfs/directory.c index f7783bb..bf19fc7 100644 --- a/src/kernel/fs/marfs/directory.c +++ b/src/kernel/fs/marfs/directory.c @@ -1,8 +1,7 @@ #include <stdint.h> #include <kernel/fs/ata_pio.h> -#include <kernel/lib/alloc.h> -#include <kernel/lib/lib.h> -#include "marfs.h" +#include <mlibc/stdlib.h> +#include <kernel/fs/marfs/marfs.h> uint32_t marfs_new_dir(uint32_t uid) { return marfs_new_file(0, 0, uid, 0, 1); } diff --git a/src/kernel/fs/marfs/disklevel.c b/src/kernel/fs/marfs/disklevel.c index b6fc8c2..f54dea1 100644 --- a/src/kernel/fs/marfs/disklevel.c +++ b/src/kernel/fs/marfs/disklevel.c @@ -1,6 +1,6 @@ #include <stdint.h> #include <kernel/fs/ata_pio.h> -#include "marfs.h" +#include <kernel/fs/marfs/marfs.h> void marfs_format(void) { // Create superblock diff --git a/src/kernel/fs/marfs/new_file.c b/src/kernel/fs/marfs/new_file.c index 7b06621..ebc8152 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/lib/alloc.h> -#include "marfs.h" +#include <mlibc/stdlib.h> +#include <kernel/fs/marfs/marfs.h> static uint8_t last_maxlevel = 0; diff --git a/src/kernel/fs/marfs/read_whole_file.c b/src/kernel/fs/marfs/read_whole_file.c index 86aae5f..0d3af26 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/lib/alloc.h> -#include "marfs.h" +#include <mlibc/stdlib.h> +#include <kernel/fs/marfs/marfs.h> static uint8_t last_maxlevel = 0; diff --git a/src/kernel/fs/marfs/sectorlevel.c b/src/kernel/fs/marfs/sectorlevel.c index 7575f8c..d8795fa 100644 --- a/src/kernel/fs/marfs/sectorlevel.c +++ b/src/kernel/fs/marfs/sectorlevel.c @@ -1,7 +1,7 @@ #include <stdint.h> -#include <kernel/lib/alloc.h> +#include <mlibc/stdlib.h> #include <kernel/fs/ata_pio.h> -#include "marfs.h" +#include <kernel/fs/marfs/marfs.h> uint8_t marfs_init(struct ATA_INTERFACE *_iface) { iface = _iface; |