powernow(4): Make it build on x86_64 and hook it in the x86_64 build.
authorSascha Wildner <saw@online.de>
Thu, 14 Oct 2010 07:22:47 +0000 (09:22 +0200)
committerSascha Wildner <saw@online.de>
Thu, 14 Oct 2010 07:22:47 +0000 (09:22 +0200)
Tested-by: Max Herrgard <herrgard@gmail.com>
sys/dev/powermng/Makefile
sys/dev/powermng/powernow/powernow.c

index 508abe6..0ebf2b5 100644 (file)
@@ -1,7 +1,4 @@
-SUBDIR=        alpm amdpm amdsmb aps coretemp ichsmb intpm kate km lm viapm wbsio
-
-.if ${MACHINE_ARCH} == "i386"
-SUBDIR+= powernow
-.endif
+SUBDIR=        alpm amdpm amdsmb aps coretemp ichsmb intpm kate km lm powernow viapm
+SUBDIR+=wbsio
 
 .include <bsd.subdir.mk>
index 8ff38b7..ca7be26 100644 (file)
@@ -39,6 +39,7 @@
 #include <machine/cpufunc.h>
 #include <machine/md_var.h>
 #include <machine/specialreg.h>
+#include <machine/vmparam.h>
 
 #define PN8_STA_MFID(x)                 (((x) >> 16) & 0x3f)
 #define PN8_STA_MVID(x)                 (((x) >> 48) & 0x1f)