Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752829AbaG1O7S (ORCPT ); Mon, 28 Jul 2014 10:59:18 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:52317 "EHLO mail-lb0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752324AbaG1O7P (ORCPT ); Mon, 28 Jul 2014 10:59:15 -0400 MIME-Version: 1.0 In-Reply-To: <1405413956-2772-6-git-send-email-lftan@altera.com> References: <1405413956-2772-1-git-send-email-lftan@altera.com> <1405413956-2772-6-git-send-email-lftan@altera.com> Date: Mon, 28 Jul 2014 16:59:13 +0200 X-Google-Sender-Auth: CWU_CJmg72QklLTZKMl95eVzi1M Message-ID: Subject: Re: [PATCH v2 05/29] nios2: Memory management From: Geert Uytterhoeven To: Ley Foon Tan Cc: Linux-Arch , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , LeyFoon Tan , Chung-Lin Tang Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 15, 2014 at 10:45 AM, Ley Foon Tan wrote: > --- /dev/null > +++ b/arch/nios2/include/asm/mmu.h > @@ -0,0 +1,18 @@ > +/* > + * Copyright (C) 2010 Tobias Klauser > + * 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). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/