Function report |
Source Code:arch\x86\kernel\aperture_64.c |
Create Date:2022-07-28 08:52:58 |
| Last Modify:2020-03-17 10:38:51 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This code runs before the PCI subsystem is initialized, so justaccess the northbridge directly.
Proto:static unsigned int __init allocate_aperture(void)
Type:unsigned int
Parameter:Nothing
| 104 | If fallback_aper_order > 5 Then fallback_aper_order = 5 |
| 106 | aper_size = 32 * 1024 * 1024 << fallback_aper_order |
| 116 | If Not addr Then |
| 117 | pr_err("Cannot allocate aperture memory hole [mem %#010lx-%#010lx] (%uKB)\n", addr, addr + aper_size - 1, aper_size >> 10) |
| 119 | Return 0 |
| 121 | memblock_reserve(addr, aper_size) |
| 122 | pr_info("Mapping aperture over RAM [mem %#010lx-%#010lx] (%uKB)\n", addr, addr + aper_size - 1, aper_size >> 10) |
| 124 | register_nosave_region(addr >> PAGE_SHIFT determines the page size , (addr + aper_size) >> PAGE_SHIFT determines the page size ) |
| 127 | Return addr |
| Name | Describe |
|---|---|
| gart_iommu_hole_init |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |