# Do not flush the whole kernel page table instead of flushing only a range # in SKAS mode: # loop from start to end instead than to start_vm to end_vm. To test a lot, # since it could well be wrong, or some callers could be passing wrong # parameters (they were ignored!). Anyway, it seems that this is safe and # that most callers are in arch-independent code (i.e. correct one). # But actually I did not test modules well. # # Signed-off-by: Paolo 'Blaisorblade' Giarrusso # # I eyeballed all the callers, and they seem to be doing the right # thing - jdike Index: um/arch/um/kernel/skas/tlb.c =================================================================== --- um.orig/arch/um/kernel/skas/tlb.c 2004-07-13 14:40:16.000000000 -0400 +++ um/arch/um/kernel/skas/tlb.c 2004-09-14 01:27:25.000000000 -0400 @@ -76,7 +76,7 @@ int updated = 0, err; mm = &init_mm; - for(addr = start_vm; addr < end_vm;){ + for(addr = start; addr < end;){ pgd = pgd_offset(mm, addr); pmd = pmd_offset(pgd, addr); if(pmd_present(*pmd)){