Added empty arch_system_info functions, added arch_system_info.c to the build.

Removed grist from libppc source files.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11077 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-01-26 18:39:25 +00:00
parent f2e40399c2
commit 4cf3e70f94
2 changed files with 57 additions and 17 deletions

View File

@ -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
;

View File

@ -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 <KernelExport.h>
#include <OS.h>
#include <kernel.h>
#include <smp.h>
#include <arch/system_info.h>
#include <boot/kernel_args.h>
#include <string.h>
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;
}