X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/e5568f75972dfc723778653c11cb6b4dc825716a..3e170ce000f1506b7b5d2c5c7faec85ceabb573d:/osfmk/kern/startup.h?ds=sidebyside diff --git a/osfmk/kern/startup.h b/osfmk/kern/startup.h index bbd76a447..6e1864df6 100644 --- a/osfmk/kern/startup.h +++ b/osfmk/kern/startup.h @@ -1,82 +1,77 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2008 Apple Inc. All rights reserved. * - * @APPLE_LICENSE_HEADER_START@ + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * - * The contents of this file constitute Original Code as defined in and - * are subject to the Apple Public Source License Version 1.1 (the - * "License"). You may not use this file except in compliance with the - * License. Please obtain a copy of the License at - * http://www.apple.com/publicsource and read it before using this file. + * 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. 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. * - * This Original Code and all software distributed under the License are - * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * 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 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the - * License for the specific language governing rights and limitations - * under the License. + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * 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); + +/* codesigning subsystem initialization */ +extern void cs_init(void); + +#endif /* MACH_BSD */ + +__END_DECLS -#endif /* NCPUS > 1 */ #endif /* _KERN_STARTUP_H_ */ + +#endif /* XNU_KERNEL_PRIVATE */