diff --git a/src/kernel/core/arch/ppc/Jamfile b/src/kernel/core/arch/ppc/Jamfile index 0b20d6fdde..08f03916d9 100644 --- a/src/kernel/core/arch/ppc/Jamfile +++ b/src/kernel/core/arch/ppc/Jamfile @@ -1,23 +1,24 @@ SubDir OBOS_TOP src kernel core arch ppc ; KernelStaticLibrary libppc : - <$(SOURCE_GRIST)>arch_atomic.c - <$(SOURCE_GRIST)>arch_cpu.c - <$(SOURCE_GRIST)>arch_cpu_asm.S - <$(SOURCE_GRIST)>arch_dbg_console.c - <$(SOURCE_GRIST)>arch_debug.c - <$(SOURCE_GRIST)>arch_elf.c - <$(SOURCE_GRIST)>arch_exceptions.S - <$(SOURCE_GRIST)>arch_faults.c - <$(SOURCE_GRIST)>arch_int.c - <$(SOURCE_GRIST)>arch_mmu.cpp - <$(SOURCE_GRIST)>arch_real_time_clock.c - <$(SOURCE_GRIST)>arch_smp.c - <$(SOURCE_GRIST)>arch_thread.c - <$(SOURCE_GRIST)>arch_timer.c - <$(SOURCE_GRIST)>arch_vm.cpp - <$(SOURCE_GRIST)>arch_vm_translation_map.cpp - <$(SOURCE_GRIST)>arch_asm.S + arch_atomic.c + arch_cpu.c + arch_cpu_asm.S + arch_dbg_console.c + arch_debug.c + arch_elf.c + arch_exceptions.S + arch_faults.c + arch_int.c + arch_mmu.cpp + arch_real_time_clock.c + arch_smp.c + arch_system_info.c + arch_thread.c + arch_timer.c + arch_vm.cpp + arch_vm_translation_map.cpp + arch_asm.S : -fno-pic -Wno-unused ; diff --git a/src/kernel/core/arch/ppc/arch_system_info.c b/src/kernel/core/arch/ppc/arch_system_info.c new file mode 100644 index 0000000000..bf3892eb43 --- /dev/null +++ b/src/kernel/core/arch/ppc/arch_system_info.c @@ -0,0 +1,39 @@ +/* + * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + */ + + +#include +#include + +#include +#include +#include +#include + +#include + + +status_t +arch_get_system_info(system_info *info, size_t size) +{ + //info->cpu_type = sCpuType; + //info->cpu_revision = sCpuRevision; + + // - various cpu_info + //info->cpu_clock_speed = sCpuClockSpeed; + // - bus_clock_speed + info->platform_type = B_MAC_PLATFORM; + + return B_OK; +} + + +status_t +arch_system_info_init(struct kernel_args *args) +{ + //sCpuClockSpeed = args->arch_args.cpu_clock_speed; + return B_OK; +} +