Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:jailhouse_init_platform

Proto:static void __init jailhouse_init_platform(void)

Type:void

Parameter:Nothing

199  pa_data = setup_data
204  pre_vector_init = x86_init_noop
205  timer_init = jailhouse_timer_init
206  get_smp_config = jailhouse_get_smp_config
207  arch_init = 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  When pa_data cycle
221  mapping = early_memremap(pa_data, size of header )
222  memcpy( & header, mapping, size of header )
223  early_memunmap(mapping, size of header )
225  If type == SETUP_JAILHOUSE Then Break
228  pa_data = next
231  If Not pa_data Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
235  If len < size of hdr Then Go to 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, size of 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  If version == 0 || compatible_version != Smallest compatible version of jailhouse_setup_data required by this kernel. || version == 1 && len < SETUP_DATA_V1_LEN || version >= 2 && len < SETUP_DATA_V2_LEN Then Go to 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  Return
269  unsupported :
270  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.