Example The Intel 32 and 64 bit Architectures
Example: The Intel 32 and 64 -bit Architectures n Dominant industry chips n Pentium CPUs are 32 -bit and called IA-32 architecture n Current Intel CPUs are 64 -bit and called IA-64 architecture n Many variations in the chips, cover the main ideas here Operating System Concepts – 9 th Edition 8. 1 Silberschatz, Galvin and Gagne © 2013
Example: The Intel IA-32 Architecture n Supports both segmentation and segmentation with paging l Each segment can be 4 GB l Up to 16 K segments per process l Divided into two partitions 4 First partition of up to 8 K segments – private to process – kept in local descriptor table (LDT) 4 Second partition of up to 8 K segments – shared among all processes – kept in global descriptor table (GDT) Operating System Concepts – 9 th Edition 8. 2 Silberschatz, Galvin and Gagne © 2013
Example: The Intel IA-32 Architecture (Cont. ) n CPU generates logical address l Selector given to segmentation unit 4 Which l produces linear addresses Linear address given to paging unit 4 Which generates physical address in main memory 4 Paging 4 Pages Operating System Concepts – 9 th Edition units form equivalent of MMU sizes can be 4 KB or 4 MB 8. 3 Silberschatz, Galvin and Gagne © 2013
Logical to Physical Address Translation in IA-32 Operating System Concepts – 9 th Edition 8. 4 Silberschatz, Galvin and Gagne © 2013
Intel IA-32 Segmentation Operating System Concepts – 9 th Edition 8. 5 Silberschatz, Galvin and Gagne © 2013
Intel IA-32 Paging Architecture Operating System Concepts – 9 th Edition 8. 6 Silberschatz, Galvin and Gagne © 2013
Intel IA-32 Page Address Extensions n 32 -bit address limits led Intel to create page address extension (PAE), allowing 32 -bit apps access to more than 4 GB of memory space l Paging went to a 3 -level scheme l Top two bits refer to a page directory pointer table l Page-directory and page-table entries moved to 64 -bits in size l Net effect is increasing address space to 36 bits – 64 GB of physical memory Operating System Concepts – 9 th Edition 8. 7 Silberschatz, Galvin and Gagne © 2013
Intel x 86 -64 n Current generation Intel x 86 architecture n 64 bits is ginormous (> 16 exabytes) n In practice only implement 48 bit addressing n l Page sizes of 4 KB, 2 MB, 1 GB l Four levels of paging hierarchy Can also use PAE so virtual addresses are 48 bits and physical addresses are 52 bits Operating System Concepts – 9 th Edition 8. 8 Silberschatz, Galvin and Gagne © 2013
Example: ARM Architecture n Dominant mobile platform chip (Apple i. OS and Google Android devices for example) n Modern, energy efficient, 32 -bit CPU n 4 KB and 16 KB pages n 1 MB and 16 MB pages (termed sections) n One-level paging for sections, twolevel for smaller pages n Two levels of TLBs l Outer level has two micro TLBs (one data, one instruction) l Inner is single main TLB l First inner is checked, on miss outers are checked, and on miss page table walk performed by CPU Operating System Concepts – 9 th Edition 8. 9 Silberschatz, Galvin and Gagne © 2013
End of Chapter 8 Operating System Concepts – 9 th Edition Silberschatz, Galvin and Gagne © 2013
- Slides: 10