Conversation
prinzdezibel
commented
Apr 6, 2022
- Data descriptor is not needed in long mode
- 41th bit of code descriptor is unused in long mode
- Data descriptor is not needed in long mode - 41th bit of code descriptor is unused in long mode
|
Thanks for the PR!
You're right that it is not needed in this case, but you still need them for system calls. I'm fine with removing it here.
The AMD manual states that this bit is ignored, but I can't find anything like this in the Intel manual. There are some slight differences between the two sometimes, so I think it's better to keep the |
|
@phil-opp , regarding the WRITABLE descriptor flag (41th bit) I am refering to which states it's not needed in long mode.. Also I've read it in your blog_os tutorial, IIRC. https://os.phil-opp.com/entering-longmode/#loading-the-gdt Thank you for your great OS development & Rust tutorial. This is an invaluable source of extremly useful information. |
|
Looks like this PR fell off my raday, sorry! With #232 merged, the |