haiku/headers/private/kernel/arch/cpu.h
Axel Dörfler ac526351a8 Removed user_strncpy()/strcpy() and backends.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-23 05:26:08 +00:00

44 lines
1.1 KiB
C

/*
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef _KERNEL_ARCH_CPU_H
#define _KERNEL_ARCH_CPU_H
#include <kernel.h>
#include <ktypes.h>
#include <boot/kernel_args.h>
#define PAGE_ALIGN(x) (((x) + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1))
#ifdef __cplusplus
extern "C" {
#endif
int arch_cpu_preboot_init(kernel_args *ka);
int arch_cpu_init(kernel_args *ka);
int arch_cpu_init2(kernel_args *ka);
void reboot(void);
void arch_cpu_invalidate_TLB_range(addr start, addr end);
void arch_cpu_invalidate_TLB_list(addr pages[], int num_pages);
void arch_cpu_global_TLB_invalidate(void);
int arch_cpu_user_memcpy(void *to, const void *from, size_t size, addr *faultHandler);
int arch_cpu_user_strlcpy(char *to, const char *from, size_t size, addr *faultHandler);
int arch_cpu_user_memset(void *s, char c, size_t count, addr *faultHandler);
void arch_cpu_idle(void);
void arch_cpu_sync_icache(void *address, size_t length);
#ifdef __cplusplus
}
#endif
#include <arch_cpu.h>
#endif /* _KERNEL_ARCH_CPU_H */