@@ -111,6 +111,11 @@ AC_ARG_WITH([booke],
AC_DEFINE(CONFIG_BOOKE,1,
[Define to build for BookE]))
+AC_ARG_WITH([loongson],
+ AC_HELP_STRING([--with-loongson],[build for loongson]),
+ AC_DEFINE(CONFIG_LOONGSON,1,
+ [Define to build for LoongsoN]))
+
dnl ---Programs
dnl To specify a different compiler, just 'export CC=/path/to/compiler'
if test "${build}" != "${host}" ; then
@@ -5,7 +5,11 @@ struct kexec_info;
int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline,
unsigned long max_addr, unsigned long min_base);
#ifdef __mips64
-#define PAGE_OFFSET 0xa800000000000000ULL
+#ifdef CONFIG_LOONGSON
+#define PAGE_OFFSET 0xFFFFFFFF80000000ULL
+#else
+#define PAGE_OFFSET 0xa800000000000000ULL
+#endif
#define MAXMEM 0
#else
#define PAGE_OFFSET 0x80000000
Under the mips architecture,PAGE_OFFSE is defined as 0xa800000000000000ULL. But now loongson and many cpu's PAGE_OFFSET use 0xFFFFFFFF80000000ULL in kernel.so. add a --with-loongson option to distinguish PAGE_OFFSET between different platforms under mips. Signed-off-by: Hui Li <lihui@loongson.cn> --- configure.ac | 5 +++++ kexec/arch/mips/crashdump-mips.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-)