On Fri, Oct 09, 2020 at 05:39:42PM +0200, Ahelenia Ziemiańska wrote: > Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx> > --- > configure.ac | 8 ++++++++ > purgatory/arch/x86_64/Makefile | 2 ++ > 2 files changed, 10 insertions(+) > > diff --git a/configure.ac b/configure.ac > index f025823..4e8f7c5 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -54,6 +54,14 @@ case $target_cpu in > ;; > ia64|x86_64|alpha|m68k ) > ARCH="$target_cpu" > + case $target in > + *x32 ) > + SUBARCH="x32" > + ;; > + * ) > + SUBARCH="" > + ;; > + esac Is x32 value only for x86_64 or ia64, x886_64, alpha and m68k as seems to be implied by this change? Also, could you let me know how to exercise compiling this changeset? Thanks > ;; > hppa*) > ARCH="hppa" > diff --git a/purgatory/arch/x86_64/Makefile b/purgatory/arch/x86_64/Makefile > index 7300937..b0e277a 100644 > --- a/purgatory/arch/x86_64/Makefile > +++ b/purgatory/arch/x86_64/Makefile > @@ -23,4 +23,6 @@ x86_64_PURGATORY_SRCS += purgatory/arch/i386/console-x86.c > x86_64_PURGATORY_SRCS += purgatory/arch/i386/vga.c > x86_64_PURGATORY_SRCS += purgatory/arch/i386/pic.c > > +ifneq ($(SUBARCH),x32) > x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large > +endif > -- > 2.28.0 > > _______________________________________________ > kexec mailing list > kexec@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/kexec _______________________________________________ kexec mailing list kexec@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/kexec