fix(devfs): directory_count/file_count 去掉 static,允许跨模块读取用于诊断
编译器报 NameError: drivers.devfs.devfs.directory_count is a static symbol, cross-module use is forbidden(static 仅定义模块内可见)。这两个只是注册计数,改为普通模块级变量即可让 main.vp 的临时探针读取;文件内原有的 global directory_count, file_count 声明语义不变。
This commit is contained in:
1 parent
9469ee8b4d
commit
745c0e0b83
1 file changed
+2
-2
@@ -9,10 +9,10 @@ define MAX_DIRECTORIES = 16
|
||||
define PATH_BUFFER_SIZE = 256
|
||||
|
||||
directories: [MAX_DIRECTORIES]devfs_directory = [0]
|
||||
static directory_count: int = 0
|
||||
directory_count: int = 0
|
||||
|
||||
files: [MAX_DEVICE_FILES]devfs_file = [0]
|
||||
static file_count: int = 0
|
||||
file_count: int = 0
|
||||
|
||||
|
||||
class _fd_table:
|
||||
|
||||
Reference in new issue
Block a user