usr/src/common/atomic/amd64/atomic.s
changeset 6812 febeba71273d
parent 4292 d7beef35913b
child 7298 b69e27387f74
equal deleted inserted replaced
6811:2ed8737b86b7 6812:febeba71273d
    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