diff -U3 -r a/go/src/runtime/sys_darwin_386.s b/go/src/runtime/sys_darwin_386.s
|
|
|
182 | 182 | |
183 | 183 | systime: |
184 | 184 | // Fall back to system call (usually first call in this thread) |
185 | | LEAL 12(SP), AX // must be non-nil, unused |
| 185 | LEAL 16(SP), AX // must be non-nil, unused |
186 | 186 | MOVL AX, 4(SP) |
187 | 187 | MOVL $0, 8(SP) // time zone pointer |
| 188 | MOVL $0, 12(SP) // required as of Sierra; Issue 16570 |
188 | 189 | MOVL $116, AX |
189 | 190 | INT $0x80 |
| 191 | CMPL AX $0 |
| 192 | JNE inreg |
| 193 | MOVL 16(SP), AX |
| 194 | MOVL 20(SP), DX |
| 195 | inreg: |
190 | 196 | // sec is in AX, usec in DX |
191 | 197 | // convert to DX:AX nsec |
192 | 198 | MOVL DX, BX |
diff -U3 -r a/go/src/runtime/sys_darwin_amd64.s b/go/src/runtime/sys_darwin_amd64.s
|
|
|
143 | 143 | // Fall back to system call (usually first call in this thread). |
144 | 144 | MOVQ SP, DI // must be non-nil, unused |
145 | 145 | MOVQ $0, SI |
| 146 | MOVQ $0, DX // required as of Sierra; Issue 16570 |
146 | 147 | MOVL $(0x2000000+116), AX |
147 | 148 | SYSCALL |
148 | 149 | // sec is in AX, usec in DX |