summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2001-06-29 13:57:45 +0000
committerKeith Packard <keithp@keithp.com>2001-06-29 13:57:45 +0000
commitc872ee82045e8c7ce019df2577d06bec549cd71c (patch)
tree369c03d0d8a8d6cd2f82f0deac355130bc364621 /hw
parent63dd090655ba995b8f26386bb50cb5b7568f7da0 (diff)
kdrive: typo in MTRR calculations
Diffstat (limited to 'hw')
-rw-r--r--hw/kdrive/src/kmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/kdrive/src/kmap.c b/hw/kdrive/src/kmap.c
index bf3991370..c7de1852c 100644
--- a/hw/kdrive/src/kmap.c
+++ b/hw/kdrive/src/kmap.c
@@ -21,7 +21,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $XFree86: xc/programs/Xserver/hw/kdrive/kmap.c,v 1.7 2001/03/30 02:15:20 keithp Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/kdrive/kmap.c,v 1.8 2001/05/23 08:56:08 alanh Exp $ */
#include "kdrive.h"
@@ -121,7 +121,7 @@ KdSetMappedMode (CARD32 addr, CARD32 size, int mode)
mtrr = open ("/proc/mtrr", 2);
if (mtrr > 0)
{
- base = addr & ~((1<22)-1);
+ base = addr & ~((1<<22)-1);
bound = ((addr + size) + ((1<<22) - 1)) & ~((1<<22) - 1);
switch (mode) {
case KD_MAPPED_MODE_REGISTERS: