From 834ab9e2771b631c46d34fa906b4e2448f9192ca Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 27 Aug 2020 22:31:44 +0200 Subject: Kinda fixed wallpapers --- kernel/features/fs.c | 2 +- kernel/inc/ide.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'kernel') 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 #define BLOCK_SIZE 1024 +#define BLOCK_COUNT 256 // BLOCK_SIZE / sizeof(u32) #define SECTOR_SIZE 512 #define IDE_BUSY (1 << 7) -- cgit v1.2.3