lkml.org 
[lkml]   [2000]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: fix for sparc32 dma errors

> Doesn't help for me. This is pristine 2.3.49 plus your patch plus David Millers

For everyone else, here is the patch. Alexey tells me that it fixes his
problem, but I still have to chase up Thomas' one. It is in vger now.

Cheers,
Anton

diff -ru --exclude=CVS linux/arch/sparc/mm/init.c linux_work/arch/sparc/mm/init.c
--- linux/arch/sparc/mm/init.c Sun Feb 27 21:07:02 2000
+++ linux_work/arch/sparc/mm/init.c Tue Mar 7 21:45:10 2000
@@ -121,7 +121,7 @@
int i;

/* Limit maximum memory until we implement highmem for sparc */
- if (cmdline_memory_size > 0x9000000)
+ if (!cmdline_memory_size || cmdline_memory_size > 0x9000000)
cmdline_memory_size = 0x9000000;

/* XXX It is a bit ambiguous here, whether we should
@@ -138,7 +138,7 @@
sp_banks[i].num_bytes;
if (cmdline_memory_size) {
if (end_of_phys_memory > cmdline_memory_size) {
- if (cmdline_memory_size > sp_banks[i].base_addr) {
+ if (cmdline_memory_size < sp_banks[i].base_addr) {
end_of_phys_memory =
sp_banks[i-1].base_addr +
sp_banks[i-1].num_bytes;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.146 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site