函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\jailhouse.c Create Date:2022-07-27 09:45:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:jailhouse_init_platform

函数原型:static void __init jailhouse_init_platform(void)

返回类型:void

参数:

199  pa_data等于安装数据地址
204  初始化运行中断等于x86_init_noop
205  初始化定时器(PIT/HPET)等于jailhouse_timer_init
206  获得SMP配置等于jailhouse_get_smp_config
207  平台PCI初始化等于jailhouse_pci_arch_init
209  calibrate_cpu等于jailhouse_get_tsc
210  calibrate_tsc等于jailhouse_get_tsc
211  get_wallclock等于jailhouse_get_wallclock
212  rtc等于0
213  warm_reset等于0
214  i8042等于X86_LEGACY_I8042_PLATFORM_ABSENT
216  legacy_pic = & null_legacy_pic
218  emergency_restart等于jailhouse_no_restart
220 pa_data循环
221  mapping等于early_memremap(pa_data, header的长度)
222  memcpy( & header, mapping, header的长度)
223  early_memunmap(mapping, header的长度)
225  如果type恒等于SETUP_JAILHOUSE退出
228  pa_data等于next
231  如果非pa_datapanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
235  如果len小于hdr的长度则转到:unsupported
238  pa_data加等于offsetof(structsetup_data, data)
239  setup_data_len等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, setup_data的长度, (unsignedlong)len)
241  mapping等于early_memremap(pa_data, setup_data_len)
242  memcpy( & setup_data, mapping, setup_data_len)
243  early_memunmap(mapping, setup_data_len)
245  如果version恒等于0或compatible_version不等于Smallest compatible version of jailhouse_setup_data required by this kernel.version恒等于1且len小于SETUP_DATA_V1_LENversion大于等于2且len小于SETUP_DATA_V2_LEN则转到:unsupported
252  pmtmr_ioport等于pm_timer_address
253  pr_debug("Jailhouse: PM-Timer IO Port: %#x\n", pmtmr_ioport)
255  precalibrated_tsc_khz等于tsc_khz
256  setup_force_cpu_cap(TSC has known frequency )
258  pci_probe等于0
264  disable_acpi()
266  jailhouse_serial_workaround()
267  返回
269  unsupported :
270  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.