diff options
author | Robert Morris <[email protected]> | 2016-08-24 13:40:06 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2016-08-24 13:40:06 -0400 |
commit | a7c03bd91490a10383b7241e41f79e57a09cf212 (patch) | |
tree | 912c7602a573f0fd1e676771f082018b6a48b56d /memlayout.h | |
parent | 7a77375d64675a6d05b47531ebb24205a3f36483 (diff) | |
download | xv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.tar.gz xv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.tar.bz2 xv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.zip |
p2v -> P2V
Diffstat (limited to 'memlayout.h')
-rw-r--r-- | memlayout.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/memlayout.h b/memlayout.h index ce9cdeb..70c1968 100644 --- a/memlayout.h +++ b/memlayout.h @@ -8,13 +8,6 @@ #define KERNBASE 0x80000000 // First kernel virtual address #define KERNLINK (KERNBASE+EXTMEM) // Address where kernel is linked -#ifndef __ASSEMBLER__ - -static inline uint v2p(void *a) { return ((uint) (a)) - KERNBASE; } -static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); } - -#endif - #define V2P(a) (((uint) (a)) - KERNBASE) #define P2V(a) (((void *) (a)) + KERNBASE) |