Devfs初步实现 (#41)

* new: 在devfs中使用键盘文件(仍存在bug)

* new:支持dev目录下的readdir
This commit is contained in:
login
2022-09-07 23:27:27 +08:00
committed by GitHub
parent 86a5f25e07
commit 7d44599447
16 changed files with 683 additions and 215 deletions

View File

@ -12,6 +12,7 @@
#include <driver/usb/usb.h>
#include <exception/gate.h>
#include <filesystem/fat32/fat32.h>
#include <filesystem/devfs/devfs.h>
#include <mm/slab.h>
#include <common/spinlock.h>
#include <syscall/syscall.h>
@ -464,7 +465,9 @@ ul initial_kernel_thread(ul arg)
{
// kinfo("initial proc running...\targ:%#018lx", arg);
ahci_init();
vfs_init();
fat32_init();
devfs_init();
// 使用单独的内核线程来初始化usb驱动程序
int usb_pid = kernel_thread(usb_init, 0, 0);