From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Morrow To: ecos-discuss@sourceware.cygnus.com Subject: [ECOS] mips mmu setup Date: Sun, 25 Feb 2001 18:15:00 -0000 Message-id: <3A99BC17.7EB5AA48@YottaYotta.com> References: <3A6369EB.E071860B@YottaYotta.com> <3A63B257.4E238048@redhat.com> <3A99B9B6.444A2F22@YottaYotta.com> X-SW-Source: 2001-02/msg00378.html For the vrc4373 port, the hal_mips_setup routine use add instructions for the following sequence. li tmp,PADDR_INC add vaddr,vaddr,tmp add paddr0,paddr0,tmp Which is okay until you try to map in 2 gig of address space at which point the vaddr calculate will result in 0x80000000 during the last interation of the loop. This will cause an interger overflow exception. All the add's in that function should probably be addu's. -- Chris Morrow YottaYotta Inc. email: cmorrow@yottayotta.com phone: (780) 439 9000 ext 227 web: http://www.yottayotta.com