git: 9front

Download patch

ref: e29fa96d44dcd126caca03bbacbff52ad292bbb7
parent: a509bb8a592f0e0685b207ba4794f4b544bac056
author: aiju <devnull@localhost>
date: Wed Jul 11 12:05:03 EDT 2018

pc64: update headers to match pc

--- a/sys/src/9/pc64/dat.h
+++ b/sys/src/9/pc64/dat.h
@@ -216,6 +216,9 @@
 	int	cpuiddx;
 	char	cpuidid[16];
 	char*	cpuidtype;
+	uchar	cpuidfamily;
+	uchar	cpuidmodel;
+	uchar	cpuidstepping;
 	int	havetsc;
 	int	havepge;
 	int	havewatchpt8;
--- a/sys/src/9/pc64/main.c
+++ b/sys/src/9/pc64/main.c
@@ -588,7 +588,7 @@
 mathinit(void)
 {
 	trapenable(VectorCERR, matherror, 0, "matherror");
-	if(X86FAMILY(m->cpuidax) == 3)
+	if(m->cpuidfamily == 3)
 		intrenable(IrqIRQ13, matherror, 0, BUSUNKNOWN, "matherror");
 	trapenable(VectorCNA, mathemu, 0, "mathemu");
 	trapenable(VectorCSO, mathover, 0, "mathover");
--