=================================================================== RCS file: /cvs/prex-old/sys/include/vm.h,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.1 diff -u -r1.1.1.1 -r1.1.1.1.2.1 --- prex-old/sys/include/vm.h 2008/06/03 10:38:45 1.1.1.1 +++ prex-old/sys/include/vm.h 2008/08/13 17:12:31 1.1.1.1.2.1 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2005-2007, Kohsuke Ohtani + * Copyright (c) 2005-2008, Kohsuke Ohtani * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -30,7 +30,7 @@ #ifndef _VM_H #define _VM_H -#include +#include /* for pgd_t */ /* * One structure per allocated region. @@ -40,11 +40,11 @@ struct region *next; struct region *sh_prev; /* link for all shared region */ struct region *sh_next; - u_long addr; /* base address */ + void *addr; /* base address */ size_t size; /* size */ int flags; /* flag */ #ifdef CONFIG_MMU - u_long phys; /* physical address */ + void *phys; /* physical address */ #endif }; @@ -61,7 +61,7 @@ */ struct vm_map { struct region head; /* list head of regions */ - int ref_count; /* reference count */ + int refcnt; /* reference count */ pgd_t pgd; /* page directory */ }; @@ -81,7 +81,6 @@ extern void vm_switch(vm_map_t); extern int vm_load(vm_map_t, struct module *, void **); extern void *vm_translate(void *, size_t); -extern int vm_access(void *, size_t, int); extern void vm_dump(void); extern void vm_init(void);