|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /*
26: * Mach Operating System
27: * Copyright (c) 1989 Carnegie-Mellon University
28: * Copyright (c) 1988 Carnegie-Mellon University
29: * Copyright (c) 1987 Carnegie-Mellon University
30: * All rights reserved. The CMU software License Agreement specifies
31: * the terms and conditions for use and redistribution.
32: */
33: /*
34: * File: slave.c
35: *
36: * Copyright (C) 1985, Avadis Tevanian, Jr.
37: *
38: * Misc. slave routines.
39: */
40:
41: #import <cpus.h>
42:
43: #if NCPUS > 1
44:
45: #import <simple_clock.h>
46:
47: #import <bsd/machine/reg.h>
48: #ifdef ibmrt
49: #import <ca/scr.h>
50: #endif ibmrt
51: #if !defined(ibmrt) && !defined(mips)
52: #import <bsd/machine/psl.h>
53: #endif !defined(ibmrt) && !defined(mips)
54:
55: #import <sys/param.h>
56: #import <sys/systm.h>
57: #import <sys/dk.h>
58: #import <sys/dir.h>
59: #import <sys/user.h>
60: #import <sys/kernel.h>
61: #import <sys/proc.h>
62: #import <bsd/machine/cpu.h>
63: #ifdef vax
64: #import <vax/mtpr.h>
65: #endif vax
66:
67: #import <kern/timer.h>
68:
69: #import <kern/sched.h>
70: #import <kern/thread.h>
71: #import <mach/machine.h>
72: #import <kernserv/clock_timer.h>
73:
74: #ifdef balance
75: #import <machine/intctl.h>
76: #endif balance
77:
78: #import <kernserv/machine/us_timer.h>
79:
80: slave_main()
81: {
82: slave_config();
83: cpu_up(cpu_number());
84:
85: ns_hardclock_init();
86: timer_init(&kernel_timer[cpu_number()]);
87: start_timer(&kernel_timer[cpu_number()]);
88:
89: slave_start();
90: /*NOTREACHED*/
91: }
92:
93: #endif NCPUS > 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.