Subject: Re: port-sun2/32389 (sun2 GENERIC is not buildable)
To: None <>
From: Izumi Tsutsui <>
List: netbsd-bugs
Date: 01/14/2006 00:47:49
In article <> wrote:

> | fixed by he@.
> But now it is not bootable... It vm_faults.

Actually, sun2 has required different functions for libkern and libc.

In the previous src/sys/lib/libkern/arch/m68k/
.if defined(MACHINE_ARCH) && (${MACHINE_ARCH} == "m68000")
SRCS+=  mulsi3.S divsi3.S udivsi3.S modsi3.S umodsi3.S
SRCS+=  random.c
random.o random.d: random.c
SRCS+=  random.S

but in src/lib/libc/arch/m68k/gen/
# 68000-based machines build with a libgcc that includes
# much of the (soft)float and integer support that would 
# otherwise be compiled here.
.if     (${MACHINE_ARCH} == "m68000" || ${MKSOFTFLOAT} == "yes")
SRCS+=  modf_ieee754.c                  # generic ieee754 version
SRCS+=  flt_rounds_softfloat.S
SRCS+=  modf.S
SRCS+=  flt_rounds.S fpgetmask.S fpgetround.S fpgetsticky.S fpsetmask.S \
        fpsetround.S fpsetsticky.S
SRCS+=  adddf3.S addsf3.S cmpdf2.S cmpsf2.S divdf3.S \
        divsf3.S divsi3.S extendsfdf2.S fixdfsi.S fixunsdfsi.S \
        floatsidf.S modsi3.S muldf3.S mulsf3.S mulsi3.S \
        subdf3.S subsf3.S truncdfsf2.S udivsi3.S \
        umodsi3.S umulsi3.S

I have no idea how to handle this in src/common, though.
Izumi Tsutsui