Home | History | Annotate | Line # | Download | only in boot
libstubs.s revision 1.4
      1  1.4  is /* $NetBSD: libstubs.s,v 1.4 2001/02/26 14:58:37 is Exp $ */
      2  1.2  is 
      3  1.2  is /*-
      4  1.3  is  * Copyright (c) 1996 The NetBSD Foundation, Inc.
      5  1.2  is  * All rights reserved.
      6  1.1  is  *
      7  1.2  is  * This code is derived from software contributed to The NetBSD Foundation
      8  1.2  is  * by Ignatios Souvatzis.
      9  1.1  is  *
     10  1.1  is  * Redistribution and use in source and binary forms, with or without
     11  1.1  is  * modification, are permitted provided that the following conditions
     12  1.1  is  * are met:
     13  1.1  is  * 1. Redistributions of source code must retain the above copyright
     14  1.1  is  *    notice, this list of conditions and the following disclaimer.
     15  1.1  is  * 2. Redistributions in binary form must reproduce the above copyright
     16  1.1  is  *    notice, this list of conditions and the following disclaimer in the
     17  1.1  is  *    documentation and/or other materials provided with the distribution.
     18  1.1  is  * 3. All advertising materials mentioning features or use of this software
     19  1.1  is  *    must display the following acknowledgement:
     20  1.2  is  *        This product includes software developed by the NetBSD
     21  1.2  is  *        Foundation, Inc. and its contributors.
     22  1.2  is  * 4. Neither the name of The NetBSD Foundation nor the names of its
     23  1.2  is  *    contributors may be used to endorse or promote products derived
     24  1.2  is  *    from this software without specific prior written permission.
     25  1.1  is  *
     26  1.2  is  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     27  1.2  is  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     28  1.2  is  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     29  1.2  is  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     30  1.2  is  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     31  1.2  is  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     32  1.2  is  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     33  1.2  is  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     34  1.2  is  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     35  1.2  is  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     36  1.2  is  * POSSIBILITY OF SUCH DAMAGE.
     37  1.1  is  */
     38  1.1  is 
     39  1.1  is /*
     40  1.1  is  * Exec.library functions.
     41  1.1  is  */
     42  1.4  is #include <machine/asm.h>
     43  1.4  is 	.comm _C_LABEL(SysBase),4
     44  1.1  is 
     45  1.4  is ENTRY_NOPROFILE(OpenLibrary)
     46  1.1  is 	movl	a6,sp@-
     47  1.1  is 	movl	pc@(_SysBase:w),a6
     48  1.1  is 	movl	sp@(8),a1
     49  1.1  is 	movl	sp@(12),d0
     50  1.1  is 	jsr	a6@(-0x228)
     51  1.1  is 	movl	sp@+,a6
     52  1.1  is 	rts
     53  1.1  is #ifdef notyet
     54  1.4  is ENTRY_NOPROFILE(CloseLibrary)
     55  1.1  is 	movl	a6,sp@-
     56  1.1  is 	movl	pc@(_SysBase:w),a6
     57  1.1  is 	movl	sp@(8),a1
     58  1.1  is 	jsr	a6@(-0x19e)
     59  1.1  is 	movl	sp@+,a6
     60  1.1  is 	rts
     61  1.1  is #endif
     62  1.4  is ENTRY_NOPROFILE(CreateIORequest)
     63  1.1  is 	movl	a6,sp@-
     64  1.1  is 	movl	pc@(_SysBase:w),a6
     65  1.1  is 	movl	sp@(8),a0
     66  1.1  is 	movl	sp@(12),d0
     67  1.1  is 	jsr	a6@(-0x28e)
     68  1.1  is 	movl	sp@+,a6
     69  1.1  is 	rts
     70  1.1  is 
     71  1.4  is ENTRY_NOPROFILE(CreateMsgPort)
     72  1.1  is 	movl	a6,sp@-
     73  1.1  is 	movl	pc@(_SysBase:w),a6
     74  1.1  is 	jsr	a6@(-0x29a)
     75  1.1  is 	movl	sp@+,a6
     76  1.1  is 	rts
     77  1.1  is 
     78  1.1  is #ifdef notyet
     79  1.4  is ENTRY_NOPROFILE(DeleteMsgPort)
     80  1.1  is 	movl	a6,sp@-
     81  1.1  is 	movl	pc@(_SysBase:w),a6
     82  1.1  is 	movl	sp@(8),a0
     83  1.1  is 	jsr	a6@(-0x2a0)
     84  1.1  is 	movl	sp@+,a6
     85  1.1  is 	rts
     86  1.1  is 
     87  1.4  is ENTRY_NOPROFILE(DeleteIORequest)
     88  1.1  is 	movl	a6,sp@-
     89  1.1  is 	movl	pc@(_SysBase:w),a6
     90  1.1  is 	movl	sp@(8),a0
     91  1.1  is 	jsr	a6@(-0x294)
     92  1.1  is 	movl	sp@+,a6
     93  1.1  is 	rts
     94  1.1  is #endif
     95  1.1  is 
     96  1.4  is ENTRY_NOPROFILE(OpenDevice)
     97  1.1  is 	movl	a6,sp@-
     98  1.1  is 	movl	pc@(_SysBase:w),a6
     99  1.1  is 	movl	sp@(8),a0
    100  1.1  is 	movl	sp@(12),d0
    101  1.1  is 	movl	sp@(16),a1
    102  1.1  is 	movl	sp@(20),d1
    103  1.1  is 	jsr	a6@(-0x1bc)
    104  1.1  is 	movl	sp@+,a6
    105  1.1  is 	rts
    106  1.1  is 
    107  1.4  is ENTRY_NOPROFILE(DoIO)
    108  1.1  is 	movl	a6,sp@-
    109  1.1  is 	movl	pc@(_SysBase:w),a6
    110  1.1  is 	movl	sp@(8),a1
    111  1.1  is 	jsr	a6@(-0x1c8)
    112  1.1  is 	movl	sp@+,a6
    113  1.1  is 	rts
    114  1.1  is #ifdef nomore
    115  1.4  is ENTRY_NOPROFILE(CheckIO)
    116  1.1  is 	movl	a6,sp@-
    117  1.1  is 	movl	pc@(_SysBase:w),a6
    118  1.1  is 	movl	sp@(8),a1
    119  1.1  is 	jsr	a6@(-0x1d4)
    120  1.1  is 	movl	sp@+,a6
    121  1.1  is 	rts
    122  1.1  is #endif
    123  1.4  is ENTRY_NOPROFILE(WaitIO)
    124  1.1  is 	movl	a6,sp@-
    125  1.1  is 	movl	pc@(_SysBase:w),a6
    126  1.1  is 	movl	sp@(8),a1
    127  1.1  is 	jsr	a6@(-0x1da)
    128  1.1  is 	movl	sp@+,a6
    129  1.1  is 	rts
    130  1.1  is 
    131  1.4  is ENTRY_NOPROFILE(SendIO)
    132  1.1  is 	movl	a6,sp@-
    133  1.1  is 	movl	pc@(_SysBase:w),a6
    134  1.1  is 	movl	sp@(8),a1
    135  1.1  is 	jsr	a6@(-0x1ce)
    136  1.1  is 	movl	sp@+,a6
    137  1.1  is 	rts
    138  1.1  is 
    139  1.4  is ENTRY_NOPROFILE(AbortIO)
    140  1.1  is 	movl	a6,sp@-
    141  1.1  is 	movl	pc@(_SysBase:w),a6
    142  1.1  is 	movl	sp@(8),a1
    143  1.1  is 	jsr	a6@(-0x1e0)
    144  1.1  is 	movl	sp@+,a6
    145  1.1  is 	rts
    146  1.1  is 
    147  1.4  is ENTRY_NOPROFILE(WaitPort)
    148  1.1  is 	movl	a6,sp@-
    149  1.1  is 	movl	pc@(_SysBase:w),a6
    150  1.1  is 	movl	sp@(8),a0
    151  1.1  is 	jsr	a6@(-0x180)
    152  1.1  is 	movl	sp@+,a6
    153  1.1  is 	rts
    154  1.1  is 
    155  1.1  is #ifndef DOINLINES
    156  1.4  is ENTRY_NOPROFILE(CacheClearU)
    157  1.1  is 	movl	a6,sp@-
    158  1.1  is 	movl	pc@(_SysBase:w),a6
    159  1.1  is 	jsr	a6@(-0x27c)
    160  1.1  is 	movl	sp@+,a6
    161  1.1  is 	rts
    162  1.1  is #endif
    163  1.4  is ENTRY_NOPROFILE(CachePreDMA)
    164  1.1  is 	movl	a6,sp@-
    165  1.1  is 	movl	pc@(_SysBase:w),a6
    166  1.1  is 	movl	sp@(8),a0
    167  1.1  is 	movl	sp@(12),a1
    168  1.1  is 	movl	sp@(16),d0
    169  1.1  is 	jsr	a6@(-0x2fa)
    170  1.1  is 	movl	sp@+,a6
    171  1.1  is 	rts
    172  1.1  is 
    173  1.4  is ENTRY_NOPROFILE(FindResident)
    174  1.1  is 	movl	a6,sp@-
    175  1.1  is 	movl	pc@(_SysBase:w),a6
    176  1.1  is 	movl	sp@(8),a1
    177  1.1  is 	jsr	a6@(-0x60)
    178  1.1  is 	movl	sp@+,a6
    179  1.1  is 	rts
    180  1.1  is 
    181  1.4  is ENTRY_NOPROFILE(OpenResource)
    182  1.1  is 	movl	a6,sp@-
    183  1.1  is 	movl	pc@(_SysBase:w),a6
    184  1.1  is 	movl	sp@(8),a1
    185  1.1  is 	jsr	a6@(-0x1f2)
    186  1.1  is 	movl	sp@+,a6
    187  1.1  is 	rts
    188  1.1  is #ifdef notyet
    189  1.4  is ENTRY_NOPROFILE(Forbid)
    190  1.1  is 	movl	a6,sp@-
    191  1.1  is 	movl	pc@(_SysBase:W),a6
    192  1.1  is 	jsr	a6@(-0x84)
    193  1.1  is 	movl	sp@+,a6
    194  1.1  is 	rts
    195  1.1  is 
    196  1.4  is ENTRY_NOPROFILE(Permit)
    197  1.1  is 	movl	a6,sp@-
    198  1.1  is 	movl	pc@(_SysBase:W),a6
    199  1.1  is 	jsr	a6@(-0x8a)
    200  1.1  is 	movl	sp@+,a6
    201  1.1  is 	rts
    202  1.1  is #endif
    203  1.1  is 
    204  1.1  is /*
    205  1.1  is  * Intuition.library functions.
    206  1.1  is  */
    207  1.1  is 
    208  1.1  is 	.comm _IntuitionBase,4
    209  1.1  is 
    210  1.4  is ENTRY_NOPROFILE(OpenScreenTagList)
    211  1.1  is 	movl	a6,sp@-
    212  1.1  is 	movl	pc@(_IntuitionBase:w),a6
    213  1.1  is 	movl	sp@(8),a0
    214  1.1  is 	movl	sp@(12),a1
    215  1.1  is 	jsr	a6@(-0x264)
    216  1.1  is 	movl	sp@+,a6
    217  1.1  is 	rts
    218  1.1  is 
    219  1.4  is ENTRY_NOPROFILE(OpenWindowTagList)
    220  1.1  is 	movl	a6,sp@-
    221  1.1  is 	movl	pc@(_IntuitionBase:w),a6
    222  1.1  is 	movl	sp@(8),a0
    223  1.1  is 	movl	sp@(12),a1
    224  1.1  is 	jsr	a6@(-0x25e)
    225  1.1  is 	movl	sp@+,a6
    226  1.1  is 	rts
    227  1.1  is #ifdef nomore
    228  1.4  is ENTRY_NOPROFILE(mytime)
    229  1.1  is 	movl	a6,sp@-
    230  1.1  is 	movl	pc@(_IntuitionBase:w),a6
    231  1.1  is 	subql	#8,sp
    232  1.1  is 	movl	sp,a0
    233  1.1  is 	lea	sp@(4),a1
    234  1.1  is 	jsr	a6@(-0x54)
    235  1.1  is 	movl	sp@+,d0
    236  1.1  is 	addql	#4,sp
    237  1.1  is 	movl	sp@+,a6
    238  1.1  is 	rts
    239  1.1  is #endif
    240  1.1  is 	.comm _ExpansionBase,4
    241  1.4  is ENTRY_NOPROFILE(FindConfigDev)
    242  1.1  is 	movl	a6,sp@-
    243  1.1  is 	movl	_ExpansionBase,a6
    244  1.1  is 	movl	sp@(8),a0
    245  1.1  is 	movl	sp@(12),d0
    246  1.1  is 	movl	sp@(16),d1
    247  1.1  is 	jsr	a6@(-0x48)
    248  1.1  is 	movl	sp@+,a6
    249  1.1  is 	rts
    250