mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-22 07:03:22 +00:00
new: devfs删除文件夹
This commit is contained in:
@ -15,6 +15,11 @@ extern void ret_from_system_call(void); // 导出从系统调用返回的函数
|
||||
|
||||
extern system_call_t system_call_table[MAX_SYSTEM_CALL_NUM];
|
||||
|
||||
// 判断系统调用是否来自用户态
|
||||
#define SYSCALL_FROM_USER(regs) ((regs)->cs & USER_CS)
|
||||
// 判断系统调用是否来自内核态
|
||||
#define SYSCALL_FROM_KERNEL(regs) (!SYSCALL_FROM_USER(regs))
|
||||
|
||||
/**
|
||||
* @brief 初始化系统调用模块
|
||||
*
|
||||
|
Reference in New Issue
Block a user