Move FS things to PosixThread

This commit is contained in:
Ruihan Li
2024-12-01 11:41:23 +08:00
committed by Tate, Hongliang Tian
parent fe7e4884c9
commit 36fc1d3757
65 changed files with 268 additions and 215 deletions

View File

@ -15,7 +15,7 @@ pub fn sys_read(
);
let file = {
let file_table = ctx.process.file_table().lock();
let file_table = ctx.posix_thread.file_table().lock();
file_table.get_file(fd)?.clone()
};