X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d7e50217d7adf6e52786a38bcaa4cd698cb9a79e..d9a64523371fa019c4575bb400cbbc3a50ac9903:/osfmk/kern/startup.h diff --git a/osfmk/kern/startup.h b/osfmk/kern/startup.h index 62cb3fa1c..4555687dc 100644 --- a/osfmk/kern/startup.h +++ b/osfmk/kern/startup.h @@ -1,16 +1,19 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2008 Apple Inc. All rights reserved. * - * @APPLE_LICENSE_HEADER_START@ - * - * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in - * compliance with the License. Please obtain a copy of the License at - * http://www.opensource.apple.com/apsl/ and read it before using this - * file. + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER @@ -20,66 +23,56 @@ * Please see the License for the specific language governing rights and * limitations under the License. * - * @APPLE_LICENSE_HEADER_END@ + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ /* * @OSF_COPYRIGHT@ */ -/* - * HISTORY - * - * Revision 1.1.1.1 1998/09/22 21:05:32 wsanchez - * Import of Mac OS X kernel (~semeria) - * - * Revision 1.1.1.1 1998/03/07 02:25:56 wsanchez - * Import of OSF Mach kernel (~mburg) - * - * Revision 1.1.7.1 1994/09/23 02:26:54 ezf - * change marker to not FREE - * [1994/09/22 21:36:18 ezf] - * - * Revision 1.1.2.3 1993/08/16 18:08:47 bernard - * Clean up MP configuration warnings - CR#9523 - * [1993/08/13 15:29:52 bernard] - * - * Revision 1.1.2.2 1993/08/11 18:04:28 bernard - * Fixed to use machine include file ANSI prototypes - CR#9523 - * [1993/08/11 16:28:27 bernard] - * - * Second pass fixes for ANSI prototypes - CR#9523 - * [1993/08/11 14:20:54 bernard] - * - * $EndLog$ - */ + +#ifdef XNU_KERNEL_PRIVATE #ifndef _KERN_STARTUP_H_ #define _KERN_STARTUP_H_ -#include +#include +__BEGIN_DECLS /* * Kernel and machine startup declarations */ /* Initialize kernel */ -extern void setup_main(void); +extern void kernel_early_bootstrap(void); +extern void kernel_bootstrap(void); /* Initialize machine dependent stuff */ extern void machine_init(void); -#if NCPUS > 1 - -extern void slave_main(void); +extern void slave_main(void *machine_param); /* * The following must be implemented in machine dependent code. */ /* Slave cpu initialization */ -extern void slave_machine_init(void); +extern void slave_machine_init(void *machine_param); + +/* Device subystem initialization */ +extern void device_service_create(void); + +#ifdef MACH_BSD -/* Start slave processors */ -extern void start_other_cpus(void); +/* BSD subsystem initialization */ +extern void bsd_init(void); +extern void bsd_early_init(void); + +/* codesigning subsystem initialization */ +extern void cs_init(void); + +#endif /* MACH_BSD */ + +__END_DECLS -#endif /* NCPUS > 1 */ #endif /* _KERN_STARTUP_H_ */ + +#endif /* XNU_KERNEL_PRIVATE */