tss.h 383 B

123456789101112
  1. #ifndef __USERPROG_TSS_H__
  2. #define __USERPROG_TSS_H__
  3. #include "../thread/thread.h"
  4. #include "../lib/stdint.h"
  5. #include "../thread/thread.h" // Include the header file for struct task_struct
  6. /// @brief 更新 tss 中 esp0 字段的值为 pthread 的 0 级线程
  7. /// @param pthread
  8. void update_tss_esp(struct task_struct *pthread);
  9. void tss_init(void);
  10. #endif // !__USERPROG_TSS_H__