Function report |
Source Code:arch\x86\kernel\fpu\xstate.c |
Create Date:2022-07-28 07:50:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Record the offsets and sizes of various xstates contained* in the XSAVE state memory layout.
Proto:static void __init setup_xstate_features(void)
Type:void
Parameter:Nothing
250 | last_good_offset = offsetof(structxregs_state, extended_state_area) |
257 | xstate_offsets[XFEATURE_FP] = 0 |
258 | xstate_sizes[XFEATURE_FP] = offsetof(structfxregs_state, xmm_space) |
262 | xstate_sizes[XFEATURE_SSE] = sizeof_field(TYPE, MEMBER)*@TYPE: The structure containing the field of interest*@MEMBER: The field to return the size of(structfxregs_state, xmm_space) |
265 | When i < XFEATURE_MAX cycle |
266 | If Not Note that in the future we will likely need a pair of* functions here: one for user xstates and the other for* system xstates. For now, they are the same. Then Continue |
269 | cpuid_count(XSTATE_CPUID, i, & eax, & ebx, & ecx, & edx) |
275 | If xfeature_is_user(i) Then xstate_offsets[i] = ebx |
278 | xstate_sizes[i] = eax |
284 | WARN_ONCE(last_good_offset > xstate_offsets[i], "x86/fpu: misordered xstate at %d\n", last_good_offset) |
286 | last_good_offset = xstate_offsets[i] |
Name | Describe |
---|---|
setup_init_fpu_buf | setup the xstate image representing the init state |
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 |