Feat: lab 4

This commit is contained in:
2025-03-21 03:39:25 +08:00
parent eb7b9199f6
commit a6dc454a4c
35 changed files with 833 additions and 174 deletions

15
kernel/include/shell.h Normal file
View File

@@ -0,0 +1,15 @@
#pragma once
#include <initrd.h>
#include <stddef.h>
void help(void);
void hello(void);
void hwinfo(void);
void memalloc(size_t size);
void ls(file_node_t *root);
void cat(file_node_t *root, const char *filename);
void reboot(void);
int // is continue
shell(file_node_t *);