From 4d0d7ea9e752d7fce2a2f46e4c6c02951aaaf504 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Tue, 14 Sep 2021 00:05:47 +0300 Subject: amd64: stop using top of the thread' kernel stack for FPU user save area MFC note: this commit changes layout of td_md for amd64, resulting in static checks for struct thread ABI in kern_thread.c to fail. Next two commits restore the layout, I decided to not overcomplicate the merge and not do the work that is going to be overwritten immediately. (cherry picked from commit df8dd6025af88a99d34f549fa9591a9b8f9b75b1) --- sys/amd64/include/proc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/amd64/include/proc.h') diff --git a/sys/amd64/include/proc.h b/sys/amd64/include/proc.h index 59796e729ac4..12fb7bf9724c 100644 --- a/sys/amd64/include/proc.h +++ b/sys/amd64/include/proc.h @@ -75,6 +75,8 @@ struct mdthread { int md_efirt_dis_pf; /* (k) */ struct pcb md_pcb; vm_offset_t md_stack_base; + struct savefpu *md_usr_fpu_save; + struct savefpu *md_fpu_scratch; }; struct mdproc { -- cgit v1.3