pc64: update headers to match pc

This commit is contained in:
aiju 2018-07-11 16:05:03 +01:00
parent 6b0de3de8e
commit d16a96daca
2 changed files with 4 additions and 1 deletions

View file

@ -216,6 +216,9 @@ struct Mach
int cpuiddx; int cpuiddx;
char cpuidid[16]; char cpuidid[16];
char* cpuidtype; char* cpuidtype;
uchar cpuidfamily;
uchar cpuidmodel;
uchar cpuidstepping;
int havetsc; int havetsc;
int havepge; int havepge;
int havewatchpt8; int havewatchpt8;

View file

@ -588,7 +588,7 @@ void
mathinit(void) mathinit(void)
{ {
trapenable(VectorCERR, matherror, 0, "matherror"); trapenable(VectorCERR, matherror, 0, "matherror");
if(X86FAMILY(m->cpuidax) == 3) if(m->cpuidfamily == 3)
intrenable(IrqIRQ13, matherror, 0, BUSUNKNOWN, "matherror"); intrenable(IrqIRQ13, matherror, 0, BUSUNKNOWN, "matherror");
trapenable(VectorCNA, mathemu, 0, "mathemu"); trapenable(VectorCNA, mathemu, 0, "mathemu");
trapenable(VectorCSO, mathover, 0, "mathover"); trapenable(VectorCSO, mathover, 0, "mathover");