kernel/x86_64: fix build

This commit is contained in:
Jérôme Duval 2020-11-02 18:08:58 +01:00
parent aaca5974ec
commit 102bf4b799

View File

@ -1554,7 +1554,7 @@ arch_cpu_init_post_vm(kernel_args* args)
call_all_cpus_sync(&enable_xsavemask, NULL);
get_current_cpuid(&cpuid, 0xd, 0);
gFPUSaveLength = cpuid.regs.ebx;
if (gFPUSaveLength > sizeof(sInitialState.fpu_state))
if (gFPUSaveLength > sizeof(((struct arch_thread *)0)->fpu_state))
gFPUSaveLength = 832;
arch_altcodepatch_replace(ALTCODEPATCH_TAG_XSAVE,