fix stacks for amd64. note that do to the design of itoa(), we don't have to specify %llx. the size of the type is inferred. there will be a seperate patch to fix a problem with \a or \A and itoa. Reference: /n/atom/patch/applied/acidthread64 Date: Wed Feb 19 01:53:39 CET 2014 Signed-off-by: quanstro@quanstro.net --- /sys/lib/acid/thread Wed Feb 19 01:51:56 2014 +++ /sys/lib/acid/thread Wed Feb 19 01:51:57 2014 @@ -2,7 +2,7 @@ defn labpc(l) { - if objtype == "386" then + if objtype == "386" || objtype == "amd64" then return longjmp; return *(l+4); } @@ -27,7 +27,7 @@ complex Alt A; s = "alt("; - s = s + "tag(*" + itoa(A.tag, "%x") + "=" + itoa(*A.tag, "%x") + ") "; + s = s + "tag(*" + itoa(A.tag\W, "%x") + "=" + itoa(*(A.tag\W), "%x") + ") "; i = 0; yes = 0; while A.op != CHANEND && A.op != CHANNOBLK do{ @@ -74,7 +74,7 @@ } if a == {} then return "{}"; - return itoa(a\X, "%x"); + return itoa(a\W, "%x"); } stkignorelist = {}; @@ -351,7 +351,7 @@ if C.e==4 then { print((*p)\X, " "); }else { - print("data(", (*p)\X, ") "); + print("data(", (*p)\W, ") "); } p = p+C.e; if p == C.v+C.s*C.e then {