1 /* 2 * Copyright 2004-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include "cpu.h" 8 9 #include <OS.h> 10 #include <boot/platform.h> 11 #include <boot/stdio.h> 12 #include <boot/kernel_args.h> 13 #include <boot/stage2.h> 14 #include <arch/cpu.h> 15 #include <arch_kernel.h> 16 #include <arch_system_info.h> 17 18 #include <string.h> 19 20 21 //#define TRACE_CPU 22 #ifdef TRACE_CPU 23 # define TRACE(x) dprintf x 24 #else 25 # define TRACE(x) ; 26 #endif 27 28 29 extern "C" void 30 cpu_init() 31 { 32 gKernelArgs.num_cpus = 1; 33 // this will eventually be corrected later on 34 35 if (boot_arch_cpu_init() != B_OK) 36 panic("You need a 6502 or higher in order to boot!\n"); 37 } 38 39 40 extern "C" void 41 platform_load_ucode(BootVolume& volume) 42 { 43 } 44