ts-7000
[Top] [All Lists]

[ts-7000] Re: kernel 2.6.27.4 for TS-72XX [take1]

To:
Subject: [ts-7000] Re: kernel 2.6.27.4 for TS-72XX [take1]
From: "greywolf9923" <>
Date: Fri, 09 Jan 2009 12:20:46 -0000
--- In  "Christopher Friedt" <>
wrote:
>
> Hi everyone -
> 
> It's good to see that people in the ts-7000 list are actively
> maintaining the TS-7xxx port of the latest linux-2.6 kernel.
> 
> Matthieu, I've looked at your patchset against 2.6.27.4 - great work!
> 
> All of the boards that we use are shipped with 64 MB of ram, so I'm
> quite interested to know how the migration goes from DISCONTIGMEM to
> SPARSEMEM and ARCH_HAS_FLATMEM_HOLES. I remember when I was doing some
> of the earlier work with the 2.6.20 kernel, that there were some
> issues with virt_to_phys and vice-versa (from the discontigmem patch)
> not really fitting in cleanly.

Hi,

sparsemem works well only starting from 2.6.28. You can modify the
Matt's patches and add to the memory.h file under the mach folder:

static inline unsigned long __phys_to_virt(unsigned long pa)
{
        return (pa & 0x07ffffff) | ((pa & 0xe0000000) ? 0x08000000 : 0);
}

static inline unsigned long __virt_to_phys(unsigned long va)
{
        return (va & 0x07ffffff) | ((va & 0x08000000) ? 0xe0000000 : 0);
}

#define SECTION_SIZE_BITS       24
#define MAX_PHYSMEM_BITS        32




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU