home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16330 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.9 KB  |  43 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!boulder!caesar!drew
  3. From: drew@caesar.cs.colorado.edu (Drew Eckhardt)
  4. Subject: Re: Does Linux use segmentation?
  5. Message-ID: <1992Nov11.082654.5672@colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: caesar.cs.colorado.edu
  8. Organization: University of Colorado at Boulder
  9. References: <1992Nov11.011359.27473@cbnewse.cb.att.com>
  10. Date: Wed, 11 Nov 1992 08:26:54 GMT
  11. Lines: 30
  12.  
  13. In article <1992Nov11.011359.27473@cbnewse.cb.att.com> sph1@cbnewse.cb.att.com (stephen.p.hill) writes:
  14. >
  15. >I get the impression that Linux uses combined paging and 
  16. >segmentation, in fact that nearly all modern OSs use 
  17. >the combination.  Is this true?(the part about Linux)
  18.  
  19. If you're talking about the implementation of Linux on the i386,
  20. this is correct.  Segmentation allows the kernel to access it's 
  21. address space, and a user process space independantly of eachother,
  22. without mapping the user space into kernel space someplace and doing
  23. pointer scrambling.
  24.  
  25. When in kernel code, es,ds,ss, and cs point to the kernel's address space,
  26. while fs points to the address space of the user process.
  27.  
  28. Earlier versions of Linux used a single, system-wide set of page tables,
  29. with the segments in each processes' LDT selecting an appropriate 
  30. offset into the 4G virtual address space, with a 64M limit.
  31.  
  32. From a user perspective, segmentation isn't there.  Each process 
  33. has a flat 3G bit address space, with the cs, ds, es, and ss selectors
  34. only serving to select descriptors with appropriate permissions for 
  35. access with that segment register (ie, cs segment must be executable,
  36. ds must be writeable) to the same flat address space.
  37.  
  38.  
  39. -- 
  40. Boycott AT&T for their absurd anti-BSDI lawsuit. | Drew Eckhardt
  41. Condemn Colorado for Amendment Two.         | drew@cs.colorado.edu
  42. Use Linux, the fast, flexible, and free 386 unix |  
  43.