#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;
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
# $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>
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=
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)
.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}
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>