X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/9343e9338ddf1015a63a95e4e78bfe659a557b76..c7eda62d83dd463895a3b096f8c32502077e7bcd:/include/paging.h?ds=sidebyside diff --git a/include/paging.h b/include/paging.h index 90c44e9..86f5676 100644 --- a/include/paging.h +++ b/include/paging.h @@ -1,9 +1,22 @@ +/* minilib.h + * Definitions for page-table mapping and demapping + * NetWatch system management mode administration console + * + * Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved. + * This program is free software; you can redistribute and/or modify it under + * the terms found in the file LICENSE in the root of this source tree. + * + */ + #ifndef __PAGING_H #define __PAGING_H +#include + extern unsigned long v2p(void *virt); extern void *p2v(unsigned long phys); +extern void *p2v64(uint64_t phys); extern int addmap(unsigned long vaddr, unsigned long paddr); -extern void *demap(unsigned long _pd, unsigned long vaddr); +extern int addmap_4m(unsigned long vaddr, unsigned long paddr); #endif