Replaced all remaining PAGE_SIZE with B_PAGE_SIZE, addr with addr_t.
Removed the definition of PAGE_SIZE and addr. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9433 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
/*
|
||||
** Copyright 2002-2004, The Haiku Team. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
**
|
||||
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||
** Distributed under the terms of the NewOS License.
|
||||
*/
|
||||
@@ -11,7 +14,7 @@
|
||||
#include <boot/kernel_args.h>
|
||||
|
||||
|
||||
#define PAGE_ALIGN(x) (((x) + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1))
|
||||
#define PAGE_ALIGN(x) (((x) + (B_PAGE_SIZE - 1)) & ~(B_PAGE_SIZE - 1))
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -22,13 +25,13 @@ 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_invalidate_TLB_range(addr_t start, addr_t end);
|
||||
void arch_cpu_invalidate_TLB_list(addr_t 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);
|
||||
int arch_cpu_user_memcpy(void *to, const void *from, size_t size, addr_t *faultHandler);
|
||||
int arch_cpu_user_strlcpy(char *to, const char *from, size_t size, addr_t *faultHandler);
|
||||
int arch_cpu_user_memset(void *s, char c, size_t count, addr_t *faultHandler);
|
||||
|
||||
void arch_cpu_idle(void);
|
||||
void arch_cpu_sync_icache(void *address, size_t length);
|
||||
|
||||
Reference in New Issue
Block a user