Function report |
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 activity | Download SCCT | Chinese |
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 |
212 | rtc = 0 |
213 | warm_reset = 0 |
216 | legacy_pic = & null_legacy_pic |
221 | mapping = early_memremap(pa_data, size of header ) |
223 | early_memunmap(mapping, size of header ) |
225 | If type == SETUP_JAILHOUSE Then Break |
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) |
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 |
258 | pci_probe = 0 |
264 | disable_acpi() |
267 | Return |
269 | unsupported : |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |