[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] [PATCH] FreeMiNT MMU usage define
Hello.
This is a small cleanup around WITH_MMU_SUPPORT.
Alan, please commit!
mmusupport2.patch
Cleaned up WITH_MMU_SUPPORT. Contributed by Vincent Riviere.
--
Vincent Rivière
diff -x CVS -aurN freemint.orig/sys/info.c freemint.work/sys/info.c
--- freemint.orig/sys/info.c 2011-06-16 20:15:33.984375000 +0200
+++ freemint.work/sys/info.c 2011-07-16 23:29:09.953125000 +0200
@@ -364,7 +364,7 @@
const char *MSG_init_hitanykey = "Hit a key to continue.\r\n";
const char *MSG_init_delay_loop = "Calibrating delay loop ... ";
# ifdef VERBOSE_BOOT
-# ifndef M68000
+# ifdef WITH_MMU_SUPPORT
const char *MSG_init_mp = "Memory protection %s\r\n";
const char *MSG_init_mp_enabled = "enabled";
const char *MSG_init_mp_disabled = "disabled";
diff -x CVS -aurN freemint.orig/sys/info.h freemint.work/sys/info.h
--- freemint.orig/sys/info.h 2004-10-19 18:45:37.000000000 +0200
+++ freemint.work/sys/info.h 2011-07-16 23:29:46.421875000 +0200
@@ -177,13 +177,15 @@
extern const char *MSG_init_no_mint_folder;
extern const char *MSG_init_delay_loop;
# ifdef VERBOSE_BOOT
+# ifdef WITH_MMU_SUPPORT
extern const char *MSG_init_mp;
extern const char *MSG_init_mp_enabled;
extern const char *MSG_init_mp_disabled;
+extern const char *MSG_init_saving_mmu;
+# endif
extern const char *MSG_init_kbd_desktop_nationality;
extern const char *MSG_init_supermode;
extern const char *MSG_init_sysdrv_is;
-extern const char *MSG_init_saving_mmu;
extern const char *MSG_init_tosver_kbshft;
extern const char *MSG_init_bconmap;
extern const char *MSG_init_system;
diff -x CVS -aurN freemint.orig/sys/init.c freemint.work/sys/init.c
--- freemint.orig/sys/init.c 2011-06-16 20:15:33.984375000 +0200
+++ freemint.work/sys/init.c 2011-07-16 23:28:14.843750000 +0200
@@ -281,17 +281,13 @@
get_my_name();
-# ifdef WITH_MMU_SUPPORT
# ifdef VERBOSE_BOOT
+# ifdef WITH_MMU_SUPPORT
boot_printf(MSG_init_mp, no_mem_prot ? MSG_init_mp_disabled : MSG_init_mp_enabled);
# endif
-# endif
-# ifdef VERBOSE_BOOT
/* These are set inside getmch() */
boot_printf(MSG_init_kbd_desktop_nationality, gl_kbd, gl_lang);
-# endif
-# ifdef VERBOSE_BOOT
boot_print(MSG_init_supermode);
# endif