Re: [PATCH v3 25/29] nios2: Module support

2014-09-10 Thread Tobias Klauser
On 2014-09-10 at 09:29:25 +0200, Chung-Lin Tang wrote: > On 14/9/10 5:25 AM, valdis.kletni...@vt.edu wrote: > > On Mon, 08 Sep 2014 17:22:36 +0800, Ley Foon Tan said: > >> This patch adds support for loadable modules. > >> > >> Signed-off-by: Ley Foon Tan > > > >> +/* > >> + * Modules should NO

Re: [PATCH v3 25/29] nios2: Module support

2014-09-10 Thread Chung-Lin Tang
On 14/9/10 5:25 AM, valdis.kletni...@vt.edu wrote: > On Mon, 08 Sep 2014 17:22:36 +0800, Ley Foon Tan said: >> This patch adds support for loadable modules. >> >> Signed-off-by: Ley Foon Tan > >> +/* >> + * Modules should NOT be allocated with kmalloc for (obvious) reasons. >> + * But we do it fo

Re: [PATCH v3 25/29] nios2: Module support

2014-09-09 Thread Valdis . Kletnieks
On Mon, 08 Sep 2014 17:22:36 +0800, Ley Foon Tan said: > This patch adds support for loadable modules. > > Signed-off-by: Ley Foon Tan > +/* > + * Modules should NOT be allocated with kmalloc for (obvious) reasons. > + * But we do it for now to avoid relocation issues. CALL26/PCREL26 cannot > re

[PATCH v3 25/29] nios2: Module support

2014-09-08 Thread Ley Foon Tan
This patch adds support for loadable modules. Signed-off-by: Ley Foon Tan --- arch/nios2/kernel/module.c | 137 + 1 file changed, 137 insertions(+) create mode 100644 arch/nios2/kernel/module.c diff --git a/arch/nios2/kernel/module.c b/arch/nios2/ker