]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/misc_protos.h
2 * Copyright (c) 2000-2004 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@
26 #ifndef _PPC_MISC_PROTOS_H_
27 #define _PPC_MISC_PROTOS_H_
31 #include <mach_kgdb.h>
33 #include <mach_debug.h>
36 #include <kern/thread.h>
37 #include <mach/vm_types.h>
38 #include <kern/cpu_data.h>
39 #include <ppc/savearea.h>
40 #include <mach/ppc/thread_status.h>
55 /* Physical to physical copy (ints must be disabled) */
56 extern void bcopy_phys(
61 /* Physical to physical copy virtually (ints must be disabled) */
62 extern void bcopy_physvir_32(
67 extern void phys_copy(
72 extern void machine_conf(
75 extern void machine_startup(
78 extern void ppc_vm_init(
79 uint64_t ppc_mem_size
,
83 struct savearea
*asavearea
);
85 extern int ppcNullinst(
86 struct savearea
*asavearea
);
88 extern void disable_bluebox_internal(
91 extern uint64_t hid0get64(
94 extern void hid5set64(
97 extern void Load_context(
100 extern thread_t
Switch_context(
105 extern void fpu_save(
106 struct facility_context
*fpu_fc
);
108 extern void vec_save(
109 struct facility_context
*vec_fc
);
111 extern void toss_live_fpu(
112 struct facility_context
*fpu_fc
);
114 extern void toss_live_vec(
115 struct facility_context
*vec_fc
);
117 extern struct savearea
*enterDebugger(
119 struct savearea
*state
,
122 extern void draw_panic_dialog(
126 #define DPRINTF(x) { printf("%s : ",__FUNCTION__);printf x; }
130 extern void dump_thread(
134 #endif /* _PPC_MISC_PROTOS_H_ */