equal
deleted
inserted
replaced
16 * fields enclosed by brackets "[]" replaced with your own identifying |
16 * fields enclosed by brackets "[]" replaced with your own identifying |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
|
21 |
21 /* |
22 /* |
22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
23 * Use is subject to license terms. |
24 * Use is subject to license terms. |
24 */ |
25 */ |
25 |
26 |
26 .ident "%Z%%M% %I% %E% SMI" |
27 #pragma ident "%Z%%M% %I% %E% SMI" |
27 |
28 |
28 .file "%M%" |
29 .file "%M%" |
29 |
30 |
30 #include <sys/asm_linkage.h> |
31 #include <sys/asm_linkage.h> |
31 |
32 |
38 ANSI_PRAGMA_WEAK2(cas64,atomic_cas_64,function) |
39 ANSI_PRAGMA_WEAK2(cas64,atomic_cas_64,function) |
39 ANSI_PRAGMA_WEAK2(caslong,atomic_cas_ulong,function) |
40 ANSI_PRAGMA_WEAK2(caslong,atomic_cas_ulong,function) |
40 ANSI_PRAGMA_WEAK2(casptr,atomic_cas_ptr,function) |
41 ANSI_PRAGMA_WEAK2(casptr,atomic_cas_ptr,function) |
41 ANSI_PRAGMA_WEAK2(atomic_and_long,atomic_and_ulong,function) |
42 ANSI_PRAGMA_WEAK2(atomic_and_long,atomic_and_ulong,function) |
42 ANSI_PRAGMA_WEAK2(atomic_or_long,atomic_or_ulong,function) |
43 ANSI_PRAGMA_WEAK2(atomic_or_long,atomic_or_ulong,function) |
43 #else |
|
44 /* |
|
45 * Include the definitions for the libc weak aliases. |
|
46 */ |
|
47 #include "../atomic_asm_weak.h" |
|
48 #endif |
44 #endif |
49 |
45 |
50 ENTRY(atomic_inc_8) |
46 ENTRY(atomic_inc_8) |
51 ALTENTRY(atomic_inc_uchar) |
47 ALTENTRY(atomic_inc_uchar) |
52 lock |
48 lock |