9624d94701
using the o32 ABI. This mostly follows nwhitehorn's lead in implementing COMPAT_FREEBSD32 on powerpc64. o) Add a new type to the freebsd32 compat layer, time32_t, which is time_t in the 32-bit ABI being used. Since the MIPS port is relatively-new, even the 32-bit ABIs use a 64-bit time_t. o) Because time{spec,val}32 has the same size and layout as time{spec,val} on MIPS with 32-bit compatibility, then, disable some code which assumes otherwise wrongly when built for MIPS. A more general macro to check in this case would seem like a good idea eventually. If someone adds support for using n32 userland with n64 kernels on MIPS, then they will have to add a variety of flags related to each piece of the ABI that can vary. That's probably the right time to generalize further. o) Add MIPS to the list of architectures which use PAD64_REQUIRED in the freebsd32 compat code. Probably this should be generalized at some point. Reviewed by: gonzo
129 lines
4.4 KiB
Plaintext
129 lines
4.4 KiB
Plaintext
# This file tells config what files go into building a kernel,
|
|
# files marked standard are always included.
|
|
#
|
|
# Copyright (c) 2001, 2004-2005, Juniper Networks, Inc.
|
|
# All rights reserved.
|
|
# JNPR: files.mips,v 1.11 2007/08/09 12:25:35 katta
|
|
#
|
|
# ----------------------------------------------------------------------
|
|
# Phase 2
|
|
# ----------------------------------------------------------------------
|
|
# This file tells config what files go into building a kernel,
|
|
# files marked standard are always included.
|
|
#
|
|
# Copyright (c) 2001, 2004-2005, Juniper Networks, Inc.
|
|
# All rights reserved.
|
|
# JNPR: files.mips,v 1.11 2007/08/09 12:25:35 katta
|
|
# $FreeBSD$
|
|
#
|
|
# ----------------------------------------------------------------------
|
|
# Phase 2
|
|
# ----------------------------------------------------------------------
|
|
mips/mips/machdep.c standard
|
|
mips/mips/mp_machdep.c optional smp
|
|
mips/mips/mpboot.S optional smp
|
|
# ----------------------------------------------------------------------
|
|
# Phase 3
|
|
# ----------------------------------------------------------------------
|
|
mips/mips/autoconf.c standard
|
|
mips/mips/cpu.c standard
|
|
mips/mips/elf_machdep.c standard
|
|
mips/mips/exception.S standard
|
|
mips/mips/gdb_machdep.c standard
|
|
# mips/mips/mainbus.c standard
|
|
mips/mips/pmap.c standard
|
|
mips/mips/trap.c standard
|
|
mips/mips/vm_machdep.c standard
|
|
# ----------------------------------------------------------------------
|
|
# Phase 4
|
|
# ----------------------------------------------------------------------
|
|
# ----------------------------------------------------------------------
|
|
# Phase 5
|
|
# ----------------------------------------------------------------------
|
|
mips/mips/fp.S standard
|
|
mips/mips/pm_machdep.c standard
|
|
mips/mips/swtch.S standard
|
|
mips/mips/tlb.c standard
|
|
|
|
mips/mips/bus_space_generic.c standard
|
|
mips/mips/busdma_machdep.c standard
|
|
mips/mips/cache.c standard
|
|
mips/mips/cache_mipsNN.c standard
|
|
mips/mips/db_disasm.c optional ddb
|
|
mips/mips/db_interface.c optional ddb
|
|
mips/mips/db_trace.c optional ddb
|
|
mips/mips/dump_machdep.c standard
|
|
mips/mips/in_cksum.c optional inet | inet6
|
|
mips/mips/locore.S standard no-obj
|
|
mips/mips/minidump_machdep.c standard
|
|
mips/mips/mem.c optional mem
|
|
mips/mips/nexus.c standard
|
|
mips/mips/stack_machdep.c optional ddb | stack
|
|
mips/mips/support.S standard
|
|
mips/mips/sys_machdep.c standard
|
|
mips/mips/swtch.S standard
|
|
mips/mips/uio_machdep.c standard
|
|
mips/mips/uma_machdep.c standard
|
|
crypto/blowfish/bf_enc.c optional crypto | ipsec
|
|
crypto/des/des_enc.c optional crypto | ipsec | netsmb
|
|
geom/geom_bsd.c optional geom_bsd
|
|
geom/geom_bsd_enc.c optional geom_bsd
|
|
geom/geom_mbr.c optional geom_mbr
|
|
geom/geom_mbr_enc.c optional geom_mbr
|
|
libkern/ashldi3.c standard
|
|
libkern/ashrdi3.c standard
|
|
libkern/cmpdi2.c standard
|
|
libkern/divdi3.c optional isa_mips32
|
|
libkern/ffsl.c standard
|
|
libkern/fls.c standard
|
|
libkern/flsl.c standard
|
|
libkern/lshrdi3.c standard
|
|
libkern/memchr.c optional fdt
|
|
libkern/memmove.c standard
|
|
libkern/moddi3.c optional isa_mips32
|
|
libkern/qdivrem.c optional isa_mips32
|
|
libkern/ucmpdi2.c standard
|
|
libkern/udivdi3.c optional isa_mips32
|
|
libkern/umoddi3.c optional isa_mips32
|
|
|
|
#XXX: We can't use these versions, as strcmp.c is included conf/files
|
|
#libkern/mips/strcmp.S standard
|
|
#libkern/mips/strncmp.S standard
|
|
|
|
compat/freebsd32/freebsd32_ioctl.c optional compat_freebsd32
|
|
compat/freebsd32/freebsd32_misc.c optional compat_freebsd32
|
|
compat/freebsd32/freebsd32_syscalls.c optional compat_freebsd32
|
|
compat/freebsd32/freebsd32_sysent.c optional compat_freebsd32
|
|
kern/imgact_elf32.c optional compat_freebsd32
|
|
mips/mips/freebsd32_machdep.c optional compat_freebsd32
|
|
|
|
kern/kern_clocksource.c standard
|
|
kern/link_elf_obj.c standard
|
|
|
|
dev/cfe/cfe_api.c optional cfe
|
|
dev/cfe/cfe_console.c optional cfe_console
|
|
dev/cfe/cfe_env.c optional cfe_env
|
|
#dev/cfe/cfe_resource.c optional cfe # not yet needed
|
|
|
|
dev/siba/siba.c optional siba
|
|
dev/siba/siba_cc.c optional siba
|
|
dev/siba/siba_core.c optional siba
|
|
dev/siba/siba_pcib.c optional siba pci
|
|
#mips/sentry5/siba_mips.c optional siba # not yet
|
|
|
|
dev/hwpmc/hwpmc_mips.c optional hwpmc
|
|
dev/hwpmc/hwpmc_mips24k.c optional hwpmc
|
|
|
|
dev/rt/if_rt.c optional rt
|
|
dev/nvram2env/nvram2env.c optional nvram2env
|
|
|
|
dev/ofw/openfirm.c optional fdt
|
|
dev/ofw/openfirmio.c optional fdt
|
|
dev/ofw/ofw_bus_if.m optional fdt
|
|
dev/ofw/ofw_if.m optional fdt
|
|
dev/ofw/ofw_bus_subr.c optional fdt
|
|
dev/ofw/ofw_fdt.c optional fdt
|
|
|
|
dev/fdt/fdt_mips.c optional fdt
|
|
|