[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Netscape/alpha on kernel 2.4.11 + old adaptec driver



Great, thanx Falk Hueffner.
That patch does the job on 2.4.11 too. For reference, I'll include is here ;-)

By Ivan Kokshaysky: ink@jurassic.park.msu.ru

     --- 2.4.10/mm/mmap.c    Fri Sep 21 14:49:18 2001 
     +++ linux/mm/mmap.c     Fri Sep 21 16:58:51 2001
     @@ -600,8 +600,11 @@ static inline unsigned long arch_get_unm
                     if (TASK_SIZE - len >= addr &&
                         (!vma || addr + len <= vma->vm_start))
                             return addr;
     +               if (addr > TASK_UNMAPPED_BASE)
     +                       addr = 0;
             }
     -       addr = PAGE_ALIGN(TASK_UNMAPPED_BASE);
     +       if (!addr)
     +               addr = PAGE_ALIGN(TASK_UNMAPPED_BASE);

             for (vma = find_vma(current->mm, addr); ; vma = vma->vm_next) {
                     /* At this point:  (!vma || addr < vma->vm_end). */

In addition, if you intend to use the old aic-driver build into kernel 2.4.11 ( not as a module ), you'll
need to change ( in drivers/scsi/aic7xxx_old.c )

#if defined(MODULE) || defined(PCMCIA)
#include <linux/module.h>
#endif

to just 

#include <linux/module.h>

in order to get the MODULE_LICENSE defined.

regards,
Kirk


-- 
Thomas Weyergraf                                                kirk@colinet.de
My Favorite IA64 Opcode-guess ( see arch/ia64/lib/memset.S )
"br.ret.spnt.few" - got back from getting beer, did not spend a lot.




Reply to: