[boot-i386] Reduce differences with NetBSD

Change-Id: I50c183d283858a098f0766cf3053fa6e78ce06ad
This commit is contained in:
Antoine Leca 2016-09-02 20:28:47 +02:00 committed by Lionel Sambuc
parent 7a3aae8b5b
commit 2aa07764b8
6 changed files with 10 additions and 25 deletions

View File

@ -36,9 +36,9 @@
#include <sys/featuretest.h>
#if defined(__minix)
#if defined(__minix) && (defined(_LIBMINC) || ! defined(_STANDALONE))
#include <machine/fpu.h>
#endif /* defined(__minix) */
#endif /* defined(__minix) ... */
typedef int sig_atomic_t;
@ -108,17 +108,17 @@ struct sigcontext {
int sc_err;
sigset_t sc_mask; /* signal mask to restore (new style) */
#if defined(__minix)
#if defined(__minix) && (defined(_LIBMINC) || ! defined(_STANDALONE))
union fpu_state_u sc_fpu_state;
int trap_style; /* KTS_* method of entering kernel */
int sc_flags; /* MF_FPU_INITIALIZED if fpu state valid */
#define SC_MAGIC 0xc0ffee1
int sc_magic;
#endif /* defined(__minix) */
#endif /* defined(__minix) ... */
};
#endif /* _KERNEL */
#if defined(__minix)
#if defined(__minix) && (defined(_LIBMINC) || ! defined(_STANDALONE))
__BEGIN_DECLS
int sigreturn(struct sigcontext *_scp);
__END_DECLS

View File

@ -1,6 +1,11 @@
# $NetBSD: Makefile,v 1.3 2005/12/11 12:17:48 christos Exp $
# LSC FIXME: Why change the name?
# AL: name is changed because in MINIX 3 system is stored
# in /boot/ directory, so names are conflicting. This in turn
# is probably inspired by Linux habits to have /boot as a
# separate partition, holding the system at boot time.
# Clearly a name change to align with NetBSD is possible!
PROG= boot_monitor
.include <../Makefile.boot>

View File

@ -5,10 +5,6 @@ S= ${.CURDIR}/../../../../..
AFLAGS.bootxx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.label.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.pbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
.if defined(__MINIX)
# LSC: Still required by our old binutils
AFLAGS.bootxx.S+= -Wa,--divide
.endif # defined(__MINIX)
PIE_CFLAGS=
PIE_LDFLAGS=

View File

@ -4,9 +4,6 @@ S= ${.CURDIR}/../../../..
AFLAGS.cdboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
.if defined(__MINIX)
# LSC: Still required by our old binutils
AFLAGS.cdboot.S+= -Wa,--divide
USE_BITCODE=no
.endif # defined(__MINIX)

View File

@ -51,15 +51,6 @@ AFLAGS.gpt.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
.if defined(__MINIX)
CPPFLAGS+= -DLOADADDR=${LOADADDR}
# LSC: Still required by our old binutils
AFLAGS.mbr.S+= -Wa,--divide
BUILDSYMLINKS+= \
${NETBSDSRCDIR}/minix/include/arch/i386/include/stackframe.h machine/stackframe.h \
${NETBSDSRCDIR}/minix/include/arch/i386/include/fpu.h machine/fpu.h
DPSRCS+= machine/stackframe.h machine/fpu.h
.endif # defined(__MINIX)
${PROG}: ${OBJS}

View File

@ -4,10 +4,6 @@ PROG= gptmbr.bin
SRCS= gptmbr.S
AFLAGS.gptmbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
.if defined(__MINIX)
# LSC: Still required by our old binutils
AFLAGS.gptmbr.S+= -Wa,--divide
.endif # defined(__MINIX)
.include <../Makefile.mbr>