-explicitely align "struct savexmm" so that we don't get surprised

if we play with the PCB
-remove historical "struct emcsts"; there is no support in context
 switching code for ages (if there has ever been)
This commit is contained in:
drochner 2006-05-02 19:03:24 +00:00
parent 7987283ca6
commit 76d85cf9ac
2 changed files with 4 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: npx.h,v 1.21 2005/10/10 21:07:17 christos Exp $ */
/* $NetBSD: npx.h,v 1.22 2006/05/02 19:03:24 drochner Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -114,20 +114,13 @@ struct savexmm {
/* 512-bytes --- end of hardware portion of save area */
uint32_t sv_ex_sw; /* saved SW from last exception */
uint32_t sv_ex_tw; /* saved TW from last exception */
};
} __aligned(16);
union savefpu {
struct save87 sv_87;
struct savexmm sv_xmm;
};
/* Cyrix EMC memory - mapped coprocessor context switch information */
struct emcsts {
long em_msw; /* memory mapped status register when swtched */
long em_tar; /* memory mapped temp A register when swtched */
long em_dl; /* memory mapped D low register when swtched */
};
/*
* The i387 defaults to Intel extended precision mode and round to nearest,
* with all exceptions masked.

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcb.h,v 1.37 2004/02/20 17:35:01 yamt Exp $ */
/* $NetBSD: pcb.h,v 1.38 2006/05/02 19:03:24 drochner Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -100,7 +100,7 @@ struct pcb {
int pcb_cr0; /* saved image of CR0 */
int pcb_cr2; /* page fault address (CR2) */
union savefpu pcb_savefpu; /* floating point state for FPU */
struct emcsts pcb_saveemc; /* Cyrix EMC state */
/*
* Software pcb (extension)
*/