2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
26 * Copyright (c) 1997-1998 Apple Computer, Inc.
31 * sdouglas 22 Oct 97 - first checked in from DriverServices
32 * sdouglas 28 Jul 98 - start IOKit
35 #include <architecture/ppc/asm_help.h>
37 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
41 ; Assembly directives to begin an exported function.
43 ; Takes: functionName - name of the exported function
44 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
53 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
57 OSStatus SynchronizeIO( void )
61 ENTRY __eSynchronizeIO
70 OSStatus CallTVector_NoRecover(
71 void * p1, void * p2, void * p3, void * p4, void * p5, void * p6, // r3-8
72 LogicalAddress entry ) // r9
79 #define FM_TOC_SAVE 20
84 stw r2, FM_TOC_SAVE(r1)
92 stw r0, FM_LR_SAVE(r1)
93 stw r2, FM_TOC_SAVE(r1)
95 stwu r1, -(PARAM_SIZE+FM_SIZE)(r1)
103 addi r1, r1,(PARAM_SIZE+FM_SIZE)
104 lwz r2, FM_TOC_SAVE(r1)
105 lwz r0, FM_LR_SAVE(r1)
111 * Seemingly unused references from cpp statically initialized objects.
114 .globl .constructors_used
115 .constructors_used = 0
116 .globl .destructors_used
117 .destructors_used = 0