]> git.saurik.com Git - apple/xnu.git/blame - osfmk/i386/cpu.c
xnu-344.12.2.tar.gz
[apple/xnu.git] / osfmk / i386 / cpu.c
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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.
11 *
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
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/*
23 * File: i386/cpu.c
24 *
25 * cpu specific routines
26 */
27
28#include <kern/machine.h>
29#include <kern/misc_protos.h>
9bccf70c 30#include <kern/cpu_data.h>
1c79356b
A
31#include <kern/processor.h>
32#include <mach/processor_info.h>
33
9bccf70c
A
34cpu_data_t cpu_data[NCPUS];
35
1c79356b
A
36/*ARGSUSED*/
37kern_return_t
38cpu_control(
39 int slot_num,
40 processor_info_t info,
41 unsigned int count)
42{
43 printf("cpu_control not implemented\n");
44 return (KERN_FAILURE);
45}
46
47/*ARGSUSED*/
48kern_return_t
49cpu_info_count(
50 processor_flavor_t flavor,
51 unsigned int *count)
52{
53 *count = 0;
54 return (KERN_FAILURE);
55}
56
57/*ARGSUSED*/
58kern_return_t
59cpu_info(
60 processor_flavor_t flavor,
61 int slot_num,
62 processor_info_t info,
63 unsigned int *count)
64{
65 printf("cpu_info not implemented\n");
66 return (KERN_FAILURE);
67}
68
69void
70cpu_sleep()
71{
72 printf("cpu_sleep not implemented\n");
73}