aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorMarvin Borner2020-08-27 22:31:44 +0200
committerMarvin Borner2020-08-27 22:31:44 +0200
commit834ab9e2771b631c46d34fa906b4e2448f9192ca (patch)
tree828d7aed8a6a885f8100bc61b9453f003f45cb04 /kernel
parent5565c4f1d12d9bdbabcc878541d3b81be45d4cf3 (diff)
Kinda fixed wallpapers
Diffstat (limited to 'kernel')
-rw-r--r--kernel/features/fs.c2
-rw-r--r--kernel/inc/ide.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/kernel/features/fs.c b/kernel/features/fs.c
index 52d1bb0..a0c8735 100644
--- a/kernel/features/fs.c
+++ b/kernel/features/fs.c
@@ -72,7 +72,7 @@ void *read_inode(struct inode *in)
int blocknum;
char *data;
- // TODO: Support treply indirect pointers
+ // TODO: Support triply indirect pointers
// TODO: This can be heavily optimized by saving the indirect block lists
for (int i = 0; i < num_blocks; i++) {
if (i < 12) {
diff --git a/kernel/inc/ide.h b/kernel/inc/ide.h
index 9d753ae..e88a6d7 100644
--- a/kernel/inc/ide.h
+++ b/kernel/inc/ide.h
@@ -6,6 +6,7 @@
#include <def.h>
#define BLOCK_SIZE 1024
+#define BLOCK_COUNT 256 // BLOCK_SIZE / sizeof(u32)
#define SECTOR_SIZE 512
#define IDE_BUSY (1 << 7)