Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Copy the header into the boot parameter block. Since this* screws up the old-style command line protocol, adjust by* filling in the new-style command line pointer instead.

Proto:static void copy_boot_params(void)

Type:void

Parameter:Nothing

31  struct old_cmdline{u16 cl_magic;u16 cl_offset;}
35  oldcmd = Relative to real mode data
38  BUILD_BUG_ON - break compile if a condition is true( size of boot_params != 4096)
39  Access builtin version by default. If one needs to use optimized version,* do "undef memcpy" in .c file and link against right string.c( & setup header , & hdr, size of hdr )
41  If Not cmd_line_ptr && cl_magic == OLD_CL_MAGIC Then
49  If cl_offset < setup_move_size Then cmdline_seg = These functions are used to reference data in other segments.
51  Else cmdline_seg = 0x9000
54  cmd_line_ptr = (cmdline_seg << 4) + cl_offset
Caller
NameDescribe
main