OLD | NEW |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "a.h" | 5 #include "a.h" |
6 | 6 |
7 /* | 7 /* |
8 * Helpers for building pkg/runtime. | 8 * Helpers for building pkg/runtime. |
9 */ | 9 */ |
10 | 10 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } | 123 } |
124 | 124 |
125 static struct { | 125 static struct { |
126 char *goarch; | 126 char *goarch; |
127 char *goos; | 127 char *goos; |
128 char *hdr; | 128 char *hdr; |
129 } zasmhdr[] = { | 129 } zasmhdr[] = { |
130 {"386", "", | 130 {"386", "", |
131 "#define get_tls(r) MOVL TLS, r\n" | 131 "#define get_tls(r) MOVL TLS, r\n" |
132 "#define g(r) 0(r)(TLS*1)\n" | 132 "#define g(r) 0(r)(TLS*1)\n" |
133 "#define m(r) 4(r)(TLS*1)\n" | |
134 }, | 133 }, |
135 {"amd64p32", "", | 134 {"amd64p32", "", |
136 "#define get_tls(r) MOVL TLS, r\n" | 135 "#define get_tls(r) MOVL TLS, r\n" |
137 "#define g(r) 0(r)(TLS*1)\n" | 136 "#define g(r) 0(r)(TLS*1)\n" |
138 "#define m(r) 4(r)(TLS*1)\n" | |
139 }, | 137 }, |
140 {"amd64", "", | 138 {"amd64", "", |
141 "#define get_tls(r) MOVQ TLS, r\n" | 139 "#define get_tls(r) MOVQ TLS, r\n" |
142 "#define g(r) 0(r)(TLS*1)\n" | 140 "#define g(r) 0(r)(TLS*1)\n" |
143 "#define m(r) 8(r)(TLS*1)\n" | |
144 },······ | 141 },······ |
145 | 142 |
146 {"arm", "", | 143 {"arm", "", |
147 "#define LR R14\n" | 144 "#define LR R14\n" |
148 }, | 145 }, |
149 }; | 146 }; |
150 | 147 |
151 #define MAXWINCB 2000 /* maximum number of windows callbacks allowed */ | 148 #define MAXWINCB 2000 /* maximum number of windows callbacks allowed */ |
152 | 149 |
153 // mkzasm writes zasm_$GOOS_$GOARCH.h, | 150 // mkzasm writes zasm_$GOOS_$GOARCH.h, |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 | 400 |
404 bfree(&in); | 401 bfree(&in); |
405 bfree(&b); | 402 bfree(&b); |
406 bfree(&b1); | 403 bfree(&b1); |
407 bfree(&out); | 404 bfree(&out); |
408 vfree(&argv); | 405 vfree(&argv); |
409 vfree(&lines); | 406 vfree(&lines); |
410 vfree(&fields); | 407 vfree(&fields); |
411 vfree(&seen); | 408 vfree(&seen); |
412 } | 409 } |
OLD | NEW |