summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2026-03-08 13:44:24 +0100
committerCarlos Maiolino <[email protected]>2026-03-08 13:47:28 +0100
commit4d76efafbe5319db4478bd627130db4036d75711 (patch)
treea3c3c49c1afdd087b208cf7c590deae8dccccc0b
parent84b464a185d20d8e329b7aad0b482687a9705b58 (diff)
Add some code to test the path parserHEADmaster
Signed-off-by: Carlos Maiolino <[email protected]>
-rw-r--r--src/kernel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel.c b/src/kernel.c
index 373d65d..eeccb32 100644
--- a/src/kernel.c
+++ b/src/kernel.c
@@ -8,12 +8,14 @@
#include <mm/kernel_heap.h>
#include <mm/paging.h>
#include <block/block.h>
+#include <fs/path.h>
static struct page_directory *kernel_directory;
void start_kernel()
{
char buf[512] = {0};
+ struct path_root *p;
init_display(2);
block_init();
@@ -53,4 +55,7 @@ void start_kernel()
kfree(ptr);
bread(bdev_get(0), 0, 1, buf);
+
+ p = parse_path("/home//foo/bar");
+ while(p);
}