/* $NetBSD: asm.h,v 1.4 2006/08/30 11:14:23 cherry Exp $ */
/* -
* Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
/*
* Assembly coding style
*
* This file contains macros and register defines to
* aid in writing more readable assembly code.
* Some rules to make assembly code understandable by
* a debugger are also noted.
*/
/*
* Macro to make a local label name.
*/
/*
* MCOUNT
*/
#if defined(GPROF)
#define MCOUNT \
#else
#endif
/*
* ENTRY
* Declare a global leaf function.
* A leaf function does not call other functions.
*/
.align 16; \
_name_:; \
.align 16; \
_name_:; \
/*
* STATIC_ENTRY
* Declare a local leaf function.
*/
.align 16; \
_name_:; \
/*
* XENTRY
* Global alias for a leaf function, or alternate entry point
*/
/*
* STATIC_XENTRY
* Local alias for a leaf function, or alternate entry point
*/
/*
* END
* Function delimiter
*/
/*
* EXPORT
* Export a symbol
*/
/*
* IMPORT
* Make an external name visible, typecheck the size
*/
/* .extern _name_,_size_ */
/*
* ABS
* Define an absolute symbol
*/
/*
* BSS
* Allocate un-initialized space for a global symbol
*/
/*
* MSG
* Allocate space for a message (a read-only ascii string)
*/
.data; \
.text;
/*
* System call glue.
*/
{ .mmi ; \
{ .mib ; \
/*
* WEAK_ALIAS: create a weak alias (ELF only).
*/
/*
* STRONG_ALIAS: create a strong alias.
*/