Paging – Virtual to Physical address translation

本文深入探讨了x86架构下虚拟地址到物理地址的转换机制,详细讲解了分页机制的工作原理,包括页目录表和页表的设置及使用,以及页表项的具体结构。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转自:http://blog.nandaka.io/paging-virtual-to-physical-address-translation/

I will start by recalling the first part of the address translation ‘Segmentation‘ which we have already covered. This post will expand further on Paging Mechanism for translating the virtual address to physical address.

clip_image001

On x86 architecture, enabling paging is easy task. All we need to do is turn on the paging bit. Paging bit is the 31st bit of CR0 CPU register. You can use ‘r’ command to print the content of CR0 register in WinDbg to dump it content:

kd> r cr0
cr0=8001003b   >> 10000000 00000001 00000000 00111011
Before we enable paging, we need to initialize a couple of tables first. In Paging Introduction we learnt how paging mechanism helps translating the virtual address to physical address. On x86 processor, paging mechanism of Memory Management Unit(MMU) maps the memory through a series of tables.

  1. Page Directory Table
  2. Page Table
I will currently keep the discussion to non-PAE mode only and will cover PAE separately to keep things simple to understand.
A Page by default is a 4K (2^12) size block of memory. Although, it could be of higher size but we will stick to the default page size during our discussion.


We already know that virtual address space is 4GB and if we map this virtual address space to Pages, we get around 2^32/2^12 = 2^20 Pages. We store the information for 2^20 pages in above mentioned tables.

2^20 pages are mapped in two levels of tables(for non-PAE). Both the tables above contain 1024 Entries with each entry size of 4 bytes size i.e. 1024*4 = 4096 (4K or 1 Page). So each table takes 1 page of memory.

clip_image002

Each Table entry(Page Directory Entry and Page Table Entry) can be visualized in two parts as shown below:

  1. Physical Address
  2. Access

Bit 12 to 31(20 bits) of each Page Directory Entry( PDE – 4 byte) in Page Directory Table represents the Physical Address of the base of a Page Table.

Bit 12 to 31(20 bits) of each Page Table Entry( PTE – 4 byte) in Page Table represents the Physical Address of the base of a Page.

Access fields of PDE and PTE are mostly similar. Table below explains the meaning and usage of bits. NX bit is available in 64 bit PTE only(PAE Mode on x86 or x64 bit machine) and WSI is available in 64 bit PTE in 64 bit system. I will discuss these in upcoming blogs.

 

image

 image

If you just consider the 20 bits in PTE in Page Table, you can call it Page Frame Number(PFN). Append PFN with remaining 12 bits, it would become the base address of the page represented by PFN

clip_image004

Access bits defines the page protection and other settings per page. We will get into the details of it while exploring the PFNDatabase via WinDbg.

PFN Database: Page Frame Number(PFN) Database is the list that represents the physical pages in the memory.

Going back a bit, we know that 4GB virtual address space will be mapped into 2^20 pages. Each page is represented by a Page Table Entry(PTE) or carries a PFN. Each PTE is 4 bytes in size so your Page Tables would take around 2^20 * 4 = 4,194,304 (4MB) of space. Don’t forget one page 1024 PDEs in addition.

Let’s take a step further in address translation and then we will put the whole thing together.

On x86 architecture, a virtual address is interpreted in 3 separate components:

  1. Page Directory Index (10 bits)  – Can address 2^10(1024) entries
  2. Page Table Index (10 bits) – can address 2^10(1024) entries
  3. Byte Index (12 bits) – can address 2^12(4096) entries. i.e. all the bytes in a 4K page

clip_image005

Here is how the address translation works on non-PAE 32 bit machine:

image

Image taken from the book Windows Internals by M Russinovich, D A Solomon, A Ionescu.

So before enabling the paging we need to make sure we have our page tables setup done and CR3 CPU register is loaded with Page Directory physical address i.e. the base of the Page Directory.

 

mov eax, PageDirectoryBase
mov cr3, eax
mov eax, cr0
or eax, 0x80000000  ;Enable paging by turning on 31st bit of CR0 CPU Register
mov cr0, eax

During address translation:

  1. CR3 register contains the physical address of Page Directory Base of PDT.
  2. Bit 22 to 31 of the virtual address represent an index to PDE in PDT.
  3. PDE uniquely selects a Page Table(PT) and points to the base(Physical Address) of PT.
  4. Bit 12 to 21 of the virtual address represent an index to PTE in selected PT.
  5. PTE in the selected PT represents a page in physical memory and points to the base address of the start of the physical page.
  6. Bit 0 to 11 represent byte index in the selects physical page.
  7. Base address of the physical page and byte index together uniquely locate an address(desired byte) in physical memory.

 

In the next article we will look into PAE mode which is by default enabled and will see address translation in practice via WinDbg



[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 5.15.36-xilinx-v2022.2 (oe-user@oe-host) (aarch64-xilinx-linux-gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37.20210721) #1 SMP Mon Oct 3 07:50:07 UTC 2022 [ 0.000000] Machine model: xlnx,zynqmp [ 0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8') [ 0.000000] printk: bootconsole [cdns0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000000000000-0x00000000ffffffff] [ 0.000000] Normal [mem 0x0000000100000000-0x000000097fffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000007fefffff] [ 0.000000] node 0: [mem 0x0000000800000000-0x000000097fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000097fffffff] [ 0.000000] On node 0, zone Normal: 256 pages in unavailable ranges [ 0.000000] cma: Reserved 256 MiB at 0x000000006b800000 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.1 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.2 [ 0.000000] percpu: Embedded 18 pages/cpu s34776 r8192 d30760 u73728 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2064132 [ 0.000000] Kernel command line: earlycon console=ttyPS0,115200 clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait [ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear) [ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Unable to handle kernel paging request at virtual address ffff00007fc00000 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000047 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x07: level 3 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000047 [ 0.000000] CM = 0, WnR = 1 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00007fc00000] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8008 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8008] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Unable to handle kernel paging request at virtual address ffff00097fff8128 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000006 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] FSC = 0x06: level 2 translation fault [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000006 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000001378000 [ 0.000000] [ffff00097fff8128] pgd=180000097fff8003, p4d=180000097fff8003 [ 0.000000] Insufficient stack space to handle exception! [ 0.000000] ESR: 0x96000006 -- DABT (current EL) [ 0.000000] FAR: 0xffff00097fff8128 [ 0.000000] Task stack: [0xffff8000093a0000..0xffff8000093a4000] [ 0.000000] IRQ stack: [0x0000000000000000..0x0000000000004000] [ 0.000000] Overflow stack: [0xffff00097ef6c2b0..0xffff00097ef6d2b0] [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.15.36-xilinx-v2022.2 #1 [ 0.000000] Hardware name: xlnx,zynqmp (DT) [ 0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 0.000000] pc : show_pte+0x18c/0x238 [ 0.000000] lr : show_pte+0x15c/0x238 [ 0.000000] sp : ffff8000093a0020 [ 0.000000] x29: ffff8000093a0020 x28: ffff8000093b4e80 x27: 000000007fc8d978 [ 0.000000] x26: 0000000000000000 x25: 0000000000000000 x24: ffff00097efb6f80 [ 0.000000] x23: ffff800009107000 x22: ffff800009178000 x21: 0000000000000128 [ 0.000000] x20: ffff00097fff8000 x19: ffff00097fff8128 x18: ffffffffffffffff [ 0.000000] x17: 3030666666662073 x16: 736572646461206c x15: ffff8000094a7030 [ 0.000000] x14: 0000000000000010 x13: ffff8000093c6128 x12: 00000000000003ba [ 0.000000] x11: 000000000000013e x10: ffff8000093c6128 x9 : ffff8000093c6128 [ 0.000000] x8 : 00000000fffff7ff x7 : ffff8000093f2128 x6 : ffff8000093f2128 [ 0.000000] x5 : 0000000000005ff4 x4 : 40000000fffff93e x3 : 0000000000000000 [ 0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff8000090037e8 [ 0.000000] Kernel panic - not syncing: kernel stack overflow zynqmp板卡内核打印这个错误如何解决
最新发布
07-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值