Re:Linux and BSD
Posted: Tue Aug 09, 2005 4:49 am
1. i suggest the "understanding Linux Kernel" or "Linux Kernel Internals" e-books for anything related on "how do linux xxx ?" questions.
2. you could perfectly have an LDT with every process without having several LDT entries in the GDT: just put your LDT on a process-specific memory area: when switching to another process, your LDT is still there but it now contains new data for the new process.
3. I suggest you check out volume 3 of the intel manuals for a clearer description of what "LIDT" expects (which is same as LGDT) and "LLDT" expects (e.g. a selector)
2. you could perfectly have an LDT with every process without having several LDT entries in the GDT: just put your LDT on a process-specific memory area: when switching to another process, your LDT is still there but it now contains new data for the new process.
3. I suggest you check out volume 3 of the intel manuals for a clearer description of what "LIDT" expects (which is same as LGDT) and "LLDT" expects (e.g. a selector)