Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\e820.c Create Date:2022-07-28 07:43:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Pass the firmware (bootloader) E820 map to the kernel and process it:

Proto:char *__init e820__memory_setup_default(void)

Type:char

Parameter:Nothing

1229  who = "BIOS-e820"
1237  If Copy the BIOS E820 map into a safe place.* Sanity-check it while we're at it..* If we're lucky and live on a modern system, the setup code* will have given us a memory map that we can use to properly* set up memory. If we aren't, we'll fake a memory map. < 0 Then
1241  If 0x1e0 < 0x02 Then
1242  mem_size = 0x02
1243  who = "BIOS-88"
1244  Else
1245  mem_size = 0x1e0
1246  who = "BIOS-e801"
1249  nr_entries = 0
1250  e820__range_add(0, Do NOT EVER look at the BIOS memory size location.* It does not work on many machines.(), E820_TYPE_RAM)
1251  e820__range_add(HIGH_MEMORY, mem_size << 10, E820_TYPE_RAM)
1255  e820__update_table(e820_table)
1257  Return who