changes needed for ticket locks in dat.h Reference: /n/atom/patch/applied2013/tikdat Date: Tue Dec 17 17:37:46 CET 2013 Signed-off-by: quanstro@quanstro.net --- /sys/src/nix/k10/dat.h Tue Dec 17 17:37:34 2013 +++ /sys/src/nix/k10/dat.h Tue Dec 17 17:37:34 2013 @@ -30,6 +30,21 @@ /* * machine dependent definitions used by ../port/portdat.h */ +#ifdef Tiklock +enum { + Cachelinesz = 64, +}; +struct Lock +{ + uchar pad[Cachelinesz*2]; + Mpl pl; + int isilock; + uintptr pc; + Proc* p; + Mach* m; + uvlong lockcycles; +}; +#else struct Lock { u32int key; @@ -40,6 +55,7 @@ Mach* m; uvlong lockcycles; }; +#endif struct Label {