[BACK]Return to asm.h CVS log [TXT][DIR] Up to [local] / sys / arch / hppa64 / include

Annotation of sys/arch/hppa64/include/asm.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: asm.h,v 1.1 2005/04/01 10:40:48 mickey Exp $  */
                      2:
                      3: /*
                      4:  * Copyright (c) 1990,1991,1994 The University of Utah and
                      5:  * the Computer Systems Laboratory (CSL).  All rights reserved.
                      6:  *
                      7:  * Permission to use, copy, modify and distribute this software is hereby
                      8:  * granted provided that (1) source code retains these copyright, permission,
                      9:  * and disclaimer notices, and (2) redistributions including binaries
                     10:  * reproduce the notices in supporting documentation, and (3) all advertising
                     11:  * materials mentioning features or use of this software display the following
                     12:  * acknowledgement: ``This product includes software developed by the
                     13:  * Computer Systems Laboratory at the University of Utah.''
                     14:  *
                     15:  * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
                     16:  * IS" CONDITION.  THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
                     17:  * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     18:  *
                     19:  * CSL requests users of this software to return to csl-dist@cs.utah.edu any
                     20:  * improvements that they make and grant CSL redistribution rights.
                     21:  *
                     22:  *     Utah $Hdr: asm.h 1.8 94/12/14$
                     23:  */
                     24:
                     25: #ifndef _MACHINE_ASM_H_
                     26: #define _MACHINE_ASM_H_
                     27:
                     28: /*
                     29:  *     hppa assembler definitions
                     30:  */
                     31:
                     32: arg7   .reg    %r19
                     33: arg6   .reg    %r20
                     34: arg5   .reg    %r21
                     35: arg4   .reg    %r22
                     36: ap     .reg    %r29
                     37:
                     38: #ifdef __STDC__
                     39: #define        __CONCAT(a,b)   a ## b
                     40: #else
                     41: #define        __CONCAT(a,b)   a/**/b
                     42: #endif
                     43:
                     44: #ifdef PROF
                     45: #define        _PROF_PROLOGUE                          \
                     46:        stw     %rp, HPPA_FRAME_CRP(%sr0,%sp)   !\
                     47:        ldil    L%_mcount,%r1                   !\
                     48:        ble     R%_mcount(%sr0,%r1)             !\
                     49:        ldo     HPPA_FRAME_SIZE(%sp),%sp        !\
                     50:        ldw     PPA_FRAME_CRP(%sr0,%sp),%rp
                     51: #else
                     52: #define        _PROF_PROLOGUE
                     53: #endif
                     54:
                     55: #define        LEAF_ENTRY(x) ! .text ! .align  4       !\
                     56:        .export x, entry ! .label x ! .proc     !\
                     57:        .callinfo frame=0,no_calls,save_rp      !\
                     58:        .entry ! _PROF_PROLOGUE
                     59:
                     60: #define        ENTRY(x,n) ! .text ! .align 4                   !\
                     61:        .export x, entry ! .label x ! .proc             !\
                     62:        .callinfo frame=n,calls, save_rp, save_sp       !\
                     63:        .entry ! _PROF_PROLOGUE
                     64:
                     65: #define ALTENTRY(x) ! .export x, entry ! .label  x
                     66: #define EXIT(x) ! .exit ! .procend ! .size   x, .-x
                     67:
                     68: #define        BSS(n,s)        ! .data ! .label n ! .comm s
                     69:
                     70: #endif /* _MACHINE_ASM_H_ */

CVSweb