From a066cdad71b741374a97b6591ccf72c31d36d079 Mon Sep 17 00:00:00 2001 From: hubertf Date: Wed, 26 Apr 2000 12:15:59 +0000 Subject: Define rdmsr() etc. only for __NetBSD_Version__ < 104240000. At least right now, they're clashing with the definitions in cpufunc.h (as the comment in the file even said :-) --- sysutils/aperture/files/patch-sum | 3 ++- sysutils/aperture/patches/patch-ac | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 sysutils/aperture/patches/patch-ac (limited to 'sysutils') diff --git a/sysutils/aperture/files/patch-sum b/sysutils/aperture/files/patch-sum index 88aef9c8adf..2d59ea961db 100644 --- a/sysutils/aperture/files/patch-sum +++ b/sysutils/aperture/files/patch-sum @@ -1,4 +1,5 @@ -$NetBSD: patch-sum,v 1.1.1.1 2000/01/05 18:02:19 jlam Exp $ +$NetBSD: patch-sum,v 1.2 2000/04/26 12:15:59 hubertf Exp $ MD5 (patch-aa) = 2eff82bf1a230de43a83a4cb4c96eba7 MD5 (patch-ab) = f45a6989db23e6019effe4683898d9c8 +MD5 (patch-ac) = bdef667d9a470fa0b1dd02d0098c786f diff --git a/sysutils/aperture/patches/patch-ac b/sysutils/aperture/patches/patch-ac new file mode 100644 index 00000000000..4764083eae7 --- /dev/null +++ b/sysutils/aperture/patches/patch-ac @@ -0,0 +1,20 @@ +$NetBSD: patch-ac,v 1.1 2000/04/26 12:16:00 hubertf Exp $ + +--- module/xf86_reg.h.orig Wed Apr 26 14:09:20 2000 ++++ module/xf86_reg.h Wed Apr 26 14:11:27 2000 +@@ -18,6 +18,7 @@ + #define MTRR_N16K 16 + #define MTRR_N4K 64 + ++#if (__NetBSD_Version__ < 104240000) + /* + * XXX - These belong to cpufunc.h + */ +@@ -41,6 +42,7 @@ + { + __asm __volatile(".byte 0x0f, 0x30" : : "A" (newval), "c" (msr)); + } ++#endif /* __NetBSD_Version__ */ + + #ifndef M_MEMDESC + #define M_MEMDESC M_TEMP /* XXX */ -- cgit v1.2.3