lkml.org 
[lkml]   [2014]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 05/29] nios2: Memory management
    On 2014-07-30 at 10:18:49 +0200, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
    > On Wed, Jul 30, 2014 at 8:42 AM, Ley Foon Tan <lftan@altera.com> wrote:
    > > On Mon, Jul 28, 2014 at 10:59 PM, Geert Uytterhoeven
    > > <geert@linux-m68k.org> wrote:
    > >> On Tue, Jul 15, 2014 at 10:45 AM, Ley Foon Tan <lftan@altera.com> wrote:
    > >>> --- /dev/null
    > >>> +++ b/arch/nios2/include/asm/mmu.h
    > >>> @@ -0,0 +1,18 @@
    > >>> +/*
    > >>> + * Copyright (C) 2010 Tobias Klauser <tklauser@distanz.ch>
    > >>> + * Copyright (C) 2004 Microtronix Datacom Ltd.
    > >>> + *
    > >>> + * Taken from m68knommu.
    > >>> + *
    > >>> + * This file is subject to the terms and conditions of the GNU General Public
    > >>> + * License. See the file "COPYING" in the main directory of this archive
    > >>> + * for more details.
    > >>> + */
    > >>> +
    > >>> +#ifndef _ASM_NIOS2_MMU_H
    > >>> +#define _ASM_NIOS2_MMU_H
    > >>> +
    > >>> +/* Default "unsigned long" context */
    > >>> +typedef unsigned long mm_context_t;
    > >>> +
    > >>> +#endif /* _ASM_NIOS2_MMU_H */
    > >>
    > >> Any chance you can use mmu.h from asm-generic instead?
    > >> It uses a struct with a single "unsigned long end_brk" member (unless
    > >> CONFIG_BINFMT_ELF_FDPIC is defined).
    > > From asm-generic/mmu.h, it is for nommu implementations.
    > > So, I will keep this as it is now.
    >
    > Right, you have a MMU.
    > I got confused by the "Taken from m68knommu" comment, and you still
    > only need a single "unsigned long".

    That comment stems from the initial Nios II NOMMU port done by
    Microtronix. Since Nios II NOMMU support was dropped for mainline
    submission anyhow, it might be better to drop that comment to avoid any
    future confusion :)

    Cheers
    Tobias


    \
     
     \ /
      Last update: 2014-07-30 11:41    [W:4.238 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site