Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:setup_boot_parameters

Proto:static int setup_boot_parameters(struct kimage *image, struct boot_params *params, unsigned long params_load_addr, unsigned int efi_map_offset, unsigned int efi_map_sz, unsigned int efi_setup_data_offset)

Type:int

Parameter:

TypeParameterName
struct kimage *image
struct boot_params *params
unsigned longparams_load_addr
unsigned intefi_map_offset
unsigned intefi_map_sz
unsigned intefi_setup_data_offset
207  ret = 0
210  hardware_subarch = hardware_subarch
213  memcpy( & 0x000 , & 0x000 , size of Setup options )
217  0x02 = 0
218  0x1e0 = 0
221  0x070 = 0x070
224  memset( & 0x040 , 0, size of 0x040 )
227  memset( & bsolete! , 0, size of bsolete! )
228  memset( & bsolete! , 0, size of bsolete! )
230  If Flags to indicate special processing == KEXEC_TYPE_CRASH Then
231  ret = Prepare memory map for crash dump kernel
232  If ret Then Return ret
234  Else setup_e820_entries(params)
237  nr_e820_entries = 0x1e8
239  When i < nr_e820_entries cycle
240  If type != E820_TYPE_RAM Then Continue
242  start = addr
243  end = addr + size - 1
245  If start <= 0x100000 && end > 0x100000 Then
246  mem_k = (end >> 10) - (0x100000 >> 10)
247  0x02 = mem_k
248  0x1e0 = mem_k
249  If mem_k > 0xfc00 Then 0x02 = 0xfc00
251  If mem_k > 0xffffffff Then 0x1e0 = 0xffffffff
262  memcpy(0xd00 , 0xd00 , umber of edd_info structs starting at EDDBUF * sizeof(structedd_info))
264  0x1e9 = 0x1e9
266  memcpy(0x290 , 0x290 , max number of signatures to store * sizeof(unsignedint))
269  Return ret
Caller
NameDescribe
bzImage64_load