函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\aperture_64.c Create Date:2022-07-27 09:52:18
Last Modify:2020-03-17 10:38:51 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This code runs before the PCI subsystem is initialized, so justaccess the northbridge directly.

函数原型:static unsigned int __init allocate_aperture(void)

返回类型:unsigned int

参数:

104  如果fallback_aper_order大于5则fallback_aper_order等于5
106  aper_size等于32乘1024乘1024左移fallback_aper_order
114  addr等于memblock_find_in_range(Using 512M as goal, in case kexec will load kernel_big* that will do the on-position decompress, and could overlap with* with the gart aperture that is used, GART_MAX_ADDR, aper_size, aper_size)
116  如果非addr
117  打印错误信息("Cannot allocate aperture memory hole [mem %#010lx-%#010lx] (%uKB)\n", addr, addr + aper_size - 1, aper_size >> 10)
119  返回:0
121  准备内存空间
122  打印信息("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  返回:addr
调用者
名称描述
gart_iommu_hole_init