thread_local.hpp 442 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <stdint.h>
  3. namespace kernel::user {
  4. struct user_desc {
  5. uint32_t entry_number;
  6. uint32_t base_addr;
  7. uint32_t limit;
  8. uint32_t seg_32bit : 1;
  9. uint32_t contents : 2;
  10. uint32_t read_exec_only : 1;
  11. uint32_t limit_in_pages : 1;
  12. uint32_t seg_not_present : 1;
  13. uint32_t useable : 1;
  14. };
  15. // TODO: LONG MODE
  16. // void load_thread_area(const segment_descriptor& desc);
  17. } // namespace kernel::user