Results 1 to 2 of 2
Thread: I don't understand segmentation
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Dec 2007
I don't understand segmentation
LinuxDevCenter.com -- When Linux Runs Out of Memory
On the other hand, it sounds like Linux also uses _USER_CS and _USER_DS segment descriptors:
Section 2.3.* Segmentation in Linux
That makes it sound like the code and data segments *each* have 2^32 bytes of memory. For example:
"As an example, when the kernel invokes a function, it executes a call assembly language instruction specifying just the Offset component of its logical address; the Segment Selector is implicitly selected as the one referred to by the cs register."
Why should it need to use a segment selector if the code resides in the same 32-bit address space as the data?
try these resorces
Welcome to the forums!
I personally think these books on the kernel are good:
O'Reilly Media | Understanding the Linux Kernel
O'Reilly Media | Linux Kernel in a Nutshell
Also, look here for additional kernel information:
The Linux Kernel: The Book
Have fun with Linux!
New Users: * FAQ *
Note O'Reilly Media | Understanding the Linux Kernel has a section on linux segmentation
that may shed some light on your question...Gerard