Paging Example


# Paging in Hardware (Intel x86)
– **physical addresses of page tables (CR3 register store) - two level in intel (+ page directory)**
![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fce48bc62-3c64-4981-9923-613303ea798a%2FUntitled.png?table=block&id=14d204a8-6dd8-4444-8190-33197645aa4b&cache=v2)
Enable by setting PG bit in CR0 register
4kb so 20 upper bits to find page table
![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff3239cab-044c-4eae-ab4b-7782ae6ba8bf%2FUntitled.png?table=block&id=217f7801-2b3e-4b75-a709-0b6d37ce1c00&cache=v2)
![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F11c86ab6-4414-47d7-a314-c6c3b4610e28%2FUntitled.png?table=block&id=79f5e569-5327-4fb8-9bac-bff87c58639c&cache=v2)

![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F4bdc9f84-8bc1-4229-ac66-ebbc796c9ba8%2FUntitled.png?table=block&id=c4967232-f546-42b6-b243-c52905d4b111&cache=v2)

> Linux support Four-level paging for future


![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fb10eea4f-ecbb-44d7-8b3f-dacb0d1b89e7%2FUntitled.png?table=block&id=b3f394dc-0641-4f29-b741-7f20dfb188f7&cache=v2)
![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F77e637c7-abbb-490c-86a4-5238dc928c7b%2FUntitled.png?table=block&id=03cdfda0-1c14-4877-8aeb-b01535c0e193&cache=v2)
![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff031c764-89ce-4d2e-a42f-037c38dc9cbe%2FUntitled.png?table=block&id=7097a2b7-c336-4177-aa5e-97a8c05f3632&cache=v2)