- #ifndef __USERPROG_TSS_H__
- #define __USERPROG_TSS_H__
- #include "../thread/thread.h"
- #include "../lib/stdint.h"
- #include "../thread/thread.h" // Include the header file for struct task_struct
- /// @brief 更新 tss 中 esp0 字段的值为 pthread 的 0 级线程
- /// @param pthread
- void update_tss_esp(struct task_struct *pthread);
- void tss_init(void);
- #endif // !__USERPROG_TSS_H__
|