]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/FirmwareCalls.h
2 * Copyright (c) 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 * @OSF_FREE_COPYRIGHT@
29 * @APPLE_FREE_COPYRIGHT@
34 #ifdef _FIRMWARECALLS_H_
35 #error Hey! You can only include FirmwareCalls.h in one assembler file, dude. And it should be Firmware.s!
36 #else /* _FIRMWARECALLS_H_ */
39 * Entries for all firmware calls are in here (except for call 0x80000000 - CutTrace
42 #define _FIRMWARECALLS_H_
44 #define fwCallEnt(name, entrypt) \
45 .globl name __ASMNL__ \
46 .set name,(.-EXT(FWtable))/4|0x80000000 __ASMNL__ \
47 .long EXT(entrypt) __ASMNL__
53 fwCallEnt(dbgDispCall
, dbgDispLL
) /* Write stuff to printer or modem port */
54 fwCallEnt(dbgCkptCall
, dbgCkptLL
) /* Save 128 bytes from r3 to 0x380 V=R mapping */
55 fwCallEnt(StoreRealCall
, StoreRealLL
) /* Save one word in real storage */
56 fwCallEnt(ClearRealCall
, ClearRealLL
) /* Clear physical pages */
57 fwCallEnt(LoadDBATsCall
, xLoadDBATsLL
) /* Load all DBATs */
58 fwCallEnt(LoadIBATsCall
, xLoadIBATsLL
) /* Load all IBATs */
59 fwCallEnt(DoPreemptCall
, DoPreemptLL
) /* Preempt if need be */
60 fwCallEnt(CreateFakeIOCall
, CreateFakeIOLL
) /* Make a fake I/O interruption */
61 fwCallEnt(SwitchContextCall
, SwitchContextLL
) /* Switch context */
62 fwCallEnt(Choke
, DoChokeLL
) /* Choke (system crash) */
63 fwCallEnt(dbgRegsCall
, dbgRegsLL
) /* Dumps all registers */
64 fwCallEnt(CreateFakeDECCall
, CreateFakeDECLL
) /* Make a fake decrementer interruption */
65 fwCallEnt(CreateShutdownCTXCall
, CreateShutdownCTXLL
) /* create a shutdown context */
66 fwCallEnt(NullCall
, NullLL
) /* Null Firmware call */
67 fwCallEnt(iNullCall
, iNullLL
) /* Instrumented null Firmware call */
69 #endif /* _FIRMWARECALLS_H_ */
74 * The firmware function headers
76 extern void CutTrace (unsigned int item1
, ...);
78 #endif /* ASSEMBLER */