2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Copyright (c) 1997-1998 Apple Computer, Inc.
28 * sdouglas 22 Oct 97 - first checked in from DriverServices
29 * sdouglas 28 Jul 98 - start IOKit
32 #include <architecture/ppc/asm_help.h>
34 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
38 ; Assembly directives to begin an exported function.
40 ; Takes: functionName - name of the exported function
41 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
50 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
54 OSStatus SynchronizeIO( void )
58 ENTRY __eSynchronizeIO
67 OSStatus CallTVector_NoRecover(
68 void * p1, void * p2, void * p3, void * p4, void * p5, void * p6, // r3-8
69 LogicalAddress entry ) // r9
76 #define FM_TOC_SAVE 20
81 stw r2, FM_TOC_SAVE(r1)
89 stw r0, FM_LR_SAVE(r1)
90 stw r2, FM_TOC_SAVE(r1)
92 stwu r1, -(PARAM_SIZE+FM_SIZE)(r1)
100 addi r1, r1,(PARAM_SIZE+FM_SIZE)
101 lwz r2, FM_TOC_SAVE(r1)
102 lwz r0, FM_LR_SAVE(r1)
108 * Seemingly unused references from cpp statically initialized objects.
111 .globl .constructors_used
112 .constructors_used = 0
113 .globl .destructors_used
114 .destructors_used = 0