patch-2.1.29 linux/arch/sparc/mm/srmmu.c
Next file: linux/arch/sparc/mm/sun4c.c
Previous file: linux/arch/sparc/mm/fault.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Wed Mar 5 17:04:30 1997
- Orig file:
v2.1.28/linux/arch/sparc/mm/srmmu.c
- Orig date:
Sun Jan 26 02:07:09 1997
diff -u --recursive --new-file v2.1.28/linux/arch/sparc/mm/srmmu.c linux/arch/sparc/mm/srmmu.c
@@ -1,4 +1,4 @@
-/* $Id: srmmu.c,v 1.128 1997/01/12 12:07:00 davem Exp $
+/* $Id: srmmu.c,v 1.130 1997/02/10 23:33:49 davem Exp $
* srmmu.c: SRMMU specific routines for memory management.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -2795,7 +2795,7 @@
tally = 0;
for(entry = 0; sp_banks[entry].num_bytes; entry++)
tally += sp_banks[entry].num_bytes;
- if(tally >= (0xfd000000 - KERNBASE))
+ if(tally > (0xfd000000 - KERNBASE))
lots_of_ram = 1;
else
lots_of_ram = 0;
@@ -2846,7 +2846,7 @@
MKTRACE(("<%d> base=%08lx bs=%08lx ", entry, sp_banks[entry].base_addr, bank_size));
if(!bank_size)
break;
- if(((vaddr + bank_size) >= 0xfd000000) ||
+ if(((vaddr + bank_size) > 0xfd000000) ||
((vaddr + bank_size) < KERNBASE)) {
unsigned long orig_base = sp_banks[entry].base_addr;
unsigned long orig_len = sp_banks[entry].num_bytes;
@@ -3104,7 +3104,7 @@
if((pte_val(*ptep) & SRMMU_ET_MASK) == SRMMU_VALID) {
#if 1
- printk("Fixing USER/USER alias [%d:%08lx]\n",
+ printk("Fixing USER/USER alias [%ld:%08lx]\n",
vmaring->vm_mm->context, start);
#endif
flush_cache_page(vmaring, start);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov