Skip to content

Commit

Permalink
m68knommu: use asm-generic/mmu.h for nommu setups
Browse files Browse the repository at this point in the history
The nommu case defines its own local mm_context_t structure. There is
nothing special or different about the m68knommu version of this and it
can easily use the common asm-generic version.

Remove the local mmu_context struct and include the asm-generic version
instead. This will also make it easier to support ELF format executables
in the future (since the asm-generic version has support for this
already).

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
  • Loading branch information
Greg Ungerer committed May 16, 2022
1 parent 968f0e1 commit 6ed2db9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/m68k/include/asm/mmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
/* Default "unsigned long" context */
typedef unsigned long mm_context_t;
#else
typedef struct {
unsigned long end_brk;
} mm_context_t;
#include <asm-generic/mmu.h>
#endif

#endif

0 comments on commit 6ed2db9

Please sign in to comment.