13ca3bd55SApple OSS Distributions /*
23ca3bd55SApple OSS Distributions * Copyright (c) 2008 Apple Inc. All rights reserved.
33ca3bd55SApple OSS Distributions *
43ca3bd55SApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
53ca3bd55SApple OSS Distributions *
63ca3bd55SApple OSS Distributions * This file contains Original Code and/or Modifications of Original Code
73ca3bd55SApple OSS Distributions * as defined in and that are subject to the Apple Public Source License
83ca3bd55SApple OSS Distributions * Version 2.0 (the 'License'). You may not use this file except in
93ca3bd55SApple OSS Distributions * compliance with the License. The rights granted to you under the License
103ca3bd55SApple OSS Distributions * may not be used to create, or enable the creation or redistribution of,
113ca3bd55SApple OSS Distributions * unlawful or unlicensed copies of an Apple operating system, or to
123ca3bd55SApple OSS Distributions * circumvent, violate, or enable the circumvention or violation of, any
133ca3bd55SApple OSS Distributions * terms of an Apple operating system software license agreement.
143ca3bd55SApple OSS Distributions *
153ca3bd55SApple OSS Distributions * Please obtain a copy of the License at
163ca3bd55SApple OSS Distributions * http://www.opensource.apple.com/apsl/ and read it before using this file.
173ca3bd55SApple OSS Distributions *
183ca3bd55SApple OSS Distributions * The Original Code and all software distributed under the License are
193ca3bd55SApple OSS Distributions * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
203ca3bd55SApple OSS Distributions * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
213ca3bd55SApple OSS Distributions * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
223ca3bd55SApple OSS Distributions * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
233ca3bd55SApple OSS Distributions * Please see the License for the specific language governing rights and
243ca3bd55SApple OSS Distributions * limitations under the License.
253ca3bd55SApple OSS Distributions *
263ca3bd55SApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
273ca3bd55SApple OSS Distributions */
283ca3bd55SApple OSS Distributions
293ca3bd55SApple OSS Distributions extern void iokit_post_constructor_init(void);
303ca3bd55SApple OSS Distributions
31186b8fceSApple OSS Distributions static void last_kernel_constructor(void) __attribute__ ((constructor));
32855239e5SApple OSS Distributions
33*a5e72196SApple OSS Distributions static void
last_kernel_constructor(void)34*a5e72196SApple OSS Distributions last_kernel_constructor(void)
353ca3bd55SApple OSS Distributions {
363ca3bd55SApple OSS Distributions iokit_post_constructor_init();
373ca3bd55SApple OSS Distributions }
383ca3bd55SApple OSS Distributions
39186b8fceSApple OSS Distributions __asm__(".globl _last_kernel_symbol");
403ca3bd55SApple OSS Distributions __asm__(".zerofill __LAST, __last, _last_kernel_symbol, 0");
41