LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 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 // | 5 // |
6 // System calls and other sys.stuff for AMD64, Darwin | 6 // System calls and other sys.stuff for AMD64, Darwin |
7 // See http://fxr.watson.org/fxr/source/bsd/kern/syscalls.c?v=xnu-1228 | 7 // See http://fxr.watson.org/fxr/source/bsd/kern/syscalls.c?v=xnu-1228 |
8 // or /usr/include/sys/syscall.h (on a Mac) for system call numbers. | 8 // or /usr/include/sys/syscall.h (on a Mac) for system call numbers. |
9 // | 9 // |
10 // The low 24 bits are the system call number. | 10 // The low 24 bits are the system call number. |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 /* | 271 /* |
272 * Same as in ../386/sys.s:/ugliness, different constant. | 272 * Same as in ../386/sys.s:/ugliness, different constant. |
273 * See ../../../../libcgo/darwin_amd64.c for the derivation | 273 * See ../../../../libcgo/darwin_amd64.c for the derivation |
274 * of the constant. | 274 * of the constant. |
275 */ | 275 */ |
276 SUBQ $0x8a0, DI | 276 SUBQ $0x8a0, DI |
277 | 277 |
278 MOVL $(0x3000000+3), AX // thread_fast_set_cthread_self - machde
p call #3 | 278 MOVL $(0x3000000+3), AX // thread_fast_set_cthread_self - machde
p call #3 |
279 SYSCALL | 279 SYSCALL |
280 RET | 280 RET |
LEFT | RIGHT |