2d690920ac
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12360 a95241bf-73f2-0310-859d-f6bbb57e9c96
68 lines
1.0 KiB
C
68 lines
1.0 KiB
C
/*
|
|
* Copyright 2002-2005, Axel Dörfler, axeld@pinc-software.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Copyright 2002, Travis Geiselbrecht. All rights reserved.
|
|
* Distributed under the terms of the NewOS License.
|
|
*/
|
|
|
|
/* This file contains the cpu functions (init, etc). */
|
|
|
|
#include <kernel.h>
|
|
#include <cpu.h>
|
|
#include <vm.h>
|
|
#include <arch/cpu.h>
|
|
#include <boot/kernel_args.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
/* global per-cpu structure */
|
|
cpu_ent cpu[MAX_BOOT_CPUS];
|
|
|
|
|
|
status_t
|
|
cpu_init(kernel_args *args)
|
|
{
|
|
int i;
|
|
|
|
memset(cpu, 0, sizeof(cpu));
|
|
for (i = 0; i < MAX_BOOT_CPUS; i++) {
|
|
cpu[i].info.cpu_num = i;
|
|
}
|
|
|
|
return arch_cpu_init(args);
|
|
}
|
|
|
|
|
|
status_t
|
|
cpu_init_post_vm(kernel_args *args)
|
|
{
|
|
return arch_cpu_init_post_vm(args);
|
|
}
|
|
|
|
|
|
status_t
|
|
cpu_preboot_init(kernel_args *args)
|
|
{
|
|
return arch_cpu_preboot_init(args);
|
|
}
|
|
|
|
|
|
void
|
|
clear_caches(void *address, size_t length, uint32 flags)
|
|
{
|
|
// ToDo: implement me!
|
|
}
|
|
|
|
|
|
// #pragma mark -
|
|
|
|
|
|
void
|
|
_user_clear_caches(void *address, size_t length, uint32 flags)
|
|
{
|
|
clear_caches(address, length, flags);
|
|
}
|
|
|