summaryrefslogtreecommitdiff
path: root/memlayout.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2016-08-24 13:40:06 -0400
committerRobert Morris <[email protected]>2016-08-24 13:40:06 -0400
commita7c03bd91490a10383b7241e41f79e57a09cf212 (patch)
tree912c7602a573f0fd1e676771f082018b6a48b56d /memlayout.h
parent7a77375d64675a6d05b47531ebb24205a3f36483 (diff)
downloadxv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.tar.gz
xv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.tar.bz2
xv6-labs-a7c03bd91490a10383b7241e41f79e57a09cf212.zip
p2v -> P2V
Diffstat (limited to 'memlayout.h')
-rw-r--r--memlayout.h7
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)