a few missing bits from prior patch Reference: /n/atom/patch/applied2013/k10vstraggler Date: Sat Dec 28 22:01:21 CET 2013 Signed-off-by: quanstro@quanstr.net --- /sys/src/nix/k10/io.h Sat Dec 28 22:01:13 2013 +++ /sys/src/nix/k10/io.h Sat Dec 28 22:01:14 2013 @@ -3,6 +3,7 @@ typedef struct Pcidev Pcidev; typedef struct Vctl Vctl; typedef struct Vkey Vkey; +typedef struct Vtime Vtime; enum { VectorNMI = 2, /* non-maskable interrupt */ @@ -70,6 +71,11 @@ int irq; /* 8259-emulating sources */ }; +struct Vtime { + uvlong count; + uvlong cycles; +}; + struct Vctl { Vctl* next; /* handlers on this vector */ @@ -86,6 +92,8 @@ int (*eoi)(int); /* eoi */ int (*mask)(Vkey*, int); /* interrupt enable returns masked vector */ int vno; + + Vtime; }; enum { --- /sys/src/nix/k10/apic.h Sat Dec 28 22:01:15 2013 +++ /sys/src/nix/k10/apic.h Sat Dec 28 22:01:16 2013 @@ -29,6 +29,9 @@ vlong max; vlong min; vlong div; + + Lock vecalloclk; /* allocated vectors */ + uchar vecalloc[256/8]; }; struct Apic {