Skip to content

Commit

Permalink
m68knommu: fix build when CPU is not coldfire
Browse files Browse the repository at this point in the history
Commit dd1cb3a [merge MMU and non-MMU
versions of mm/init.c] unified mm/init.c for both MMU and non-MMU m68k
platforms. However, it broke when we build a non-MMU M68K Classic CPU kernel.

This fix builds a section that came from the MMU version only when we are
building a MMU kernel.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Thadeu Lima de Souza Cascardo authored and Greg Ungerer committed Mar 4, 2013
1 parent 1a62fe8 commit be3f695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/m68k/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void __init mem_init(void)
}
}

#if !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE)
#if defined(CONFIG_MMU) && !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE)
/* insert pointer tables allocated so far into the tablelist */
init_pointer_table((unsigned long)kernel_pg_dir);
for (i = 0; i < PTRS_PER_PGD; i++) {
Expand Down

0 comments on commit be3f695

Please sign in to comment.