lkml.org 
[lkml]   [1999]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] highmem-2.3.23-D1 (was: Re: invalid address for sound DMA-buffer)

oops, i broke PG_DMA handling. The attached patch should fix it.

-- mingo
--- linux/mm/bootmem.c.orig2 Wed Oct 20 09:20:39 1999
+++ linux/mm/bootmem.c Wed Oct 20 09:22:40 1999
@@ -16,6 +16,7 @@
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/bootmem.h>
+#include <asm/dma.h>

/*
* Pointer to a bitmap - the bits represent all physical memory pages
@@ -194,6 +195,8 @@
count++;
ClearPageReserved(page);
set_page_count(page, 1);
+ if (i >= (MAX_DMA_ADDRESS >> PAGE_SHIFT))
+ clear_bit(PG_DMA, page);
__free_page(page);
}
}
\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.034 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site