]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/pc64/fns.h
pc64: avoid getcr3() in mmuflushtlb()
[plan9front.git] / sys / src / 9 / pc64 / fns.h
index 90d831e3a4ece9c3f2f5d963d72e3d198c1281b7..75764f06dff4e1f41ce1030f5950c8f9dddc4f51 100644 (file)
@@ -52,7 +52,6 @@ u64int        getcr4(void);
 u64int getxcr0(void);
 u64int getdr6(void);
 char*  getconf(char*);
-void   guesscpuhz(int);
 void   halt(void);
 void   mwait(void*);
 int    i8042auxcmd(int);
@@ -97,7 +96,7 @@ void  meminit(void);
 void   meminit0(void);
 void   memreserve(uintptr, uintptr);
 void   mfence(void);
-#define mmuflushtlb() putcr3(getcr3())
+#define mmuflushtlb(pml4) putcr3(pml4)
 void   mmuinit(void);
 uintptr        *mmuwalk(uintptr*, uintptr, int, int);
 char*  mtrr(uvlong, uvlong, char *);