Function report |
Source Code:arch\x86\kernel\cpu\common.c |
Create Date:2022-07-28 07:55:34 |
Last Modify:2020-03-16 20:28:31 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pu_init() initializes state that is per-CPU. Some data is already* initialized (naturally) in the bootstrap process, such as the GDT* and IDT. We reload them nevertheless, this function acts as a* 'CPU state barrier', nothing should get across.
Proto:void cpu_init(void)
Type:void
Parameter:Nothing
1858 | cur = current process |
1861 | wait_for_master_cpu(cpu) |
1863 | ucode_cpu_init(cpu) |
1870 | setup_getcpu(cpu) |
1886 | loadsegment(fs, 0) |
1887 | memset( Cached TLS descriptors: , 0, GDT_ENTRY_TLS_ENTRIES * 8) |
1890 | wrmsrl(64bit FS base , 0) |
1891 | wrmsrl(SwapGS GS shadow , 0) |
1894 | x2apic_setup() |
1901 | enter_lazy_tlb( & init_mm, cur) |
1904 | tss_setup_ist(tss) |
1905 | tss_setup_io_bitmap(tss) |
1906 | set_tss_desc(cpu, & x86_tss) |
1908 | load_TR_desc() |
1913 | load_sp0((unsignedlong)(cpu_entry_stack(cpu) + 1)) |
1915 | load_mm_ldt( & init_mm) |
1920 | doublefault_init_cpu_tss() |
1924 | If is_uv_system() Then uv_cpu_init() |
Name | Describe |
---|---|
start_secondary | Activate a secondary processor. |
trap_init |
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 |