From 5b5220556d38bb1f83ec63f685ea61e7b2ed97f2 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 13 Apr 1996 11:22:57 +0000 Subject: [PATCH] Generate #define of PCB_SAVEFPU_SIZE for use in savectx(). --- sys/amd64/amd64/genassym.c | 3 ++- sys/i386/i386/genassym.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/genassym.c b/sys/amd64/amd64/genassym.c index b19a3c773d0d..b56ebc8ff8b6 100644 --- a/sys/amd64/amd64/genassym.c +++ b/sys/amd64/amd64/genassym.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)genassym.c 5.11 (Berkeley) 5/10/91 - * $Id: genassym.c,v 1.32 1996/03/12 15:37:44 davidg Exp $ + * $Id: genassym.c,v 1.33 1996/03/27 17:21:57 bde Exp $ */ #include @@ -157,6 +157,7 @@ main() printf("#define\tRU_MINFLT %p\n", &rup->ru_minflt); printf("#define\tPCB_FLAGS %p\n", &pcb->pcb_flags); printf("#define\tPCB_SAVEFPU %p\n", &pcb->pcb_savefpu); + printf("#define\tPCB_SAVEFPU_SIZE %d\n", sizeof pcb->pcb_savefpu); printf("#define\tPCB_INL %p\n", &pcb->pcb_inl); printf("#define\tPCB_ONFAULT %p\n", &pcb->pcb_onfault); diff --git a/sys/i386/i386/genassym.c b/sys/i386/i386/genassym.c index b19a3c773d0d..b56ebc8ff8b6 100644 --- a/sys/i386/i386/genassym.c +++ b/sys/i386/i386/genassym.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)genassym.c 5.11 (Berkeley) 5/10/91 - * $Id: genassym.c,v 1.32 1996/03/12 15:37:44 davidg Exp $ + * $Id: genassym.c,v 1.33 1996/03/27 17:21:57 bde Exp $ */ #include @@ -157,6 +157,7 @@ main() printf("#define\tRU_MINFLT %p\n", &rup->ru_minflt); printf("#define\tPCB_FLAGS %p\n", &pcb->pcb_flags); printf("#define\tPCB_SAVEFPU %p\n", &pcb->pcb_savefpu); + printf("#define\tPCB_SAVEFPU_SIZE %d\n", sizeof pcb->pcb_savefpu); printf("#define\tPCB_INL %p\n", &pcb->pcb_inl); printf("#define\tPCB_ONFAULT %p\n", &pcb->pcb_onfault);