Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\cleanup.c Create Date:2022-07-28 08:06:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:real_trim_memory

Proto:static u64 __init real_trim_memory(unsigned long start_pfn, unsigned long limit_pfn)

Type:u64

Parameter:

TypeParameterName
unsigned longstart_pfn
unsigned longlimit_pfn
856  trim_start = start_pfn
857  trim_start <<= PAGE_SHIFT determines the page size
859  trim_size = limit_pfn
860  trim_size <<= PAGE_SHIFT determines the page size
861  trim_size -= trim_start
863  Return e820__range_update(trim_start, trim_size, E820_TYPE_RAM, E820_TYPE_RESERVED)
Caller
NameDescribe
mtrr_trim_uncached_memorymtrr_trim_uncached_memory - trim RAM not covered by MTRRs*@end_pfn: ending page frame number* Some buggy BIOSes don't setup the MTRRs properly for systems with certain* memory configurations