3 /* $OpenBSD: prefix.h,v 1.2 2001/03/29 04:08:21 mickey Exp $ */
6 * (c) Copyright 1985 HEWLETT-PACKARD COMPANY
8 * To anyone who acknowledges that this file is provided "AS IS"
9 * without any express or implied warranty:
10 * permission to use, copy, modify, and distribute this file
11 * for any purpose is hereby granted without fee, provided that
12 * the above copyright notice and this notice appears in all
13 * copies, and that the name of Hewlett-Packard Company not be
14 * used in advertising or publicity pertaining to distribution
15 * of the software without specific, written prior permission.
16 * Hewlett-Packard Company makes no representations about the
17 * suitability of this software for any purpose.
21 * STANDARD INCLUDE FILE FOR MILLICODE
22 * Every source file must include this file.
24 * Hardware General Registers
26 * Frame Offsets (millicode convention!)
27 * Used when calling other millicode routines.
28 * Stack unwinding is dependent upon these definitions.
33 #include <machine/asm.h>
35 #define DEFINE(name, value)name: .EQU value
38 #define MILLI_BE(lbl) \
40 ! ADDIL L%lbl-labl/**/lbl,r1\
42 ! BE R%lbl-labl/**/lbl(sr7,r1)
44 #define MILLI_BEN(lbl) \
46 ! ADDIL L%lbl-labl/**/lbl,r1\
48 ! BE,N R%lbl-labl/**/lbl(sr7,r1)
50 #define MILLI_BLE(lbl) \
52 ! ADDIL L%lbl-labl/**/lbl,r1\
53 ! .LABEL labl/**/lbl \
54 ! BLE R%lbl-labl/**/lbl(sr7,r1)
56 #define MILLI_BLEN(lbl) \
58 ! ADDIL L%lbl-labl/**/lbl,r1\
60 ! BLE,N R%lbl-labl/**/lbl(sr7,r1)
62 #define MILLI_BE(lbl) BE lbl(sr7,r0)
63 #define MILLI_BEN(lbl) BE,n lbl(sr7,r0)
64 #define MILLI_BLE(lbl) BLE lbl(sr7,r0)
65 #define MILLI_BLEN(lbl) BLE,n lbl(sr7,r0)
68 #define MILLIRETN BE,n 0(sr0,r31)
69 #define MILLIRET BE 0(sr0,r31)
70 #define MILLI_RETN BE,n 0(sr0,r31)
71 #define MILLI_RET BE 0(sr0,r31)
74 #define MILLI_BE(lbl) B lbl
75 #define MILLI_BEN(lbl) B,n lbl
76 #define MILLI_BLE(lbl) BL lbl,r31
77 #define MILLI_BLEN(lbl) BL,n lbl,r31
78 #define MILLIRETN BV,n 0(r31)
79 #define MILLIRET BV 0(r31)
80 #define MILLI_RETN BV,n 0(r31)
81 #define MILLI_RET BV 0(r31)
83 ; VERSION is used wherever
".version" can appear in a routine
84 ;#define VERSION .version