36412d79b4
reducues the maintenance load for the mutex code. The only MD portions of the mutex code are in machine/mutex.h now, which include the assembly macros for handling mutexes as well as optionally overriding the mutex micro-operations. For example, we use optimized micro-ops on the x86 platform #ifndef I386_CPU. - Change the behavior of the SMP_DEBUG kernel option. In the new code, mtx_assert() only depends on INVARIANTS, allowing other kernel developers to have working mutex assertiions without having to include all of the mutex debugging code. The SMP_DEBUG kernel option has been renamed to MUTEX_DEBUG and now just controls extra mutex debugging code. - Abolish the ugly mtx_f hack. Instead, we dynamically allocate seperate mtx_debug structures on the fly in mtx_init, except for mutexes that are initiated very early in the boot process. These mutexes are declared using a special MUTEX_DECLARE() macro, and use a new flag MTX_COLD when calling mtx_init. This is still somewhat hackish, but it is less evil than the mtx_f filler struct, and the mtx struct is now the same size with and without mutex debugging code. - Add some micro-micro-operation macros for doing the actual atomic operations on the mutex mtx_lock field to make it easier for other archs to override/optimize mutex ops if needed. These new tiny ops also clean up the code in some places by replacing long atomic operation function calls that spanned 2-3 lines with a short 1-line macro call. - Don't call mi_switch() from mtx_enter_hard() when we block while trying to obtain a sleep mutex. Calling mi_switch() would bogusly release Giant before switching to the next process. Instead, inline most of the code from mi_switch() in the mtx_enter_hard() function. Note that when we finally kill Giant we can back this out and go back to calling mi_switch().
187 lines
7.1 KiB
Plaintext
187 lines
7.1 KiB
Plaintext
# This file tells config what files go into building a kernel,
|
|
# files marked standard are always included.
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# The long compile-with and dependency lines are required because of
|
|
# limitations in config: backslash-newline doesn't work in strings, and
|
|
# dependency lines other than the first are silently ignored.
|
|
#
|
|
#
|
|
font8x16.o optional std8x16font \
|
|
compile-with "uudecode < /usr/share/syscons/fonts/${STD8X16FONT}-8x16.fnt && file2c 'unsigned char font_16[16*256] = {' '};' < ${STD8X16FONT}-8x16 > font8x16.c && ${CC} -c ${CFLAGS} font8x16.c" \
|
|
no-implicit-rule before-depend \
|
|
clean "${STD8X16FONT}-8x16 font8x16.c"
|
|
# make sure apm.h gets made correctly
|
|
apm.h standard \
|
|
compile-with "echo '#define NAPM 0' > apm.h" \
|
|
no-obj no-implicit-rule before-depend
|
|
#
|
|
atkbdmap.h optional atkbd_dflt_keymap \
|
|
compile-with "/usr/sbin/kbdcontrol -L ${ATKBD_DFLT_KEYMAP} | sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.* = /static accentmap_t accent_map = /' > atkbdmap.h" \
|
|
no-obj no-implicit-rule before-depend \
|
|
clean "atkbdmap.h"
|
|
#
|
|
alpha/alpha/alpha-gdbstub.c optional ddb
|
|
alpha/alpha/api_up1000.c optional api_up1000
|
|
alpha/alpha/atomic.s standard
|
|
alpha/alpha/autoconf.c standard
|
|
alpha/alpha/busdma_machdep.c standard
|
|
alpha/alpha/busspace.c standard
|
|
alpha/alpha/clock.c standard
|
|
alpha/alpha/clock_if.m standard
|
|
alpha/alpha/cpuconf.c standard
|
|
alpha/alpha/db_disasm.c optional ddb
|
|
alpha/alpha/db_interface.c optional ddb
|
|
alpha/alpha/db_trace.c optional ddb
|
|
alpha/alpha/dec_1000a.c optional dec_1000a
|
|
alpha/alpha/dec_1000a.c optional dec_1000a
|
|
alpha/alpha/dec_2100_a50.c optional dec_2100_a50
|
|
alpha/alpha/dec_2100_a500.c optional dec_2100_a500
|
|
alpha/alpha/dec_axppci_33.c optional dec_axppci_33
|
|
alpha/alpha/dec_eb164.c optional dec_eb164
|
|
alpha/alpha/dec_eb64plus.c optional dec_eb64plus
|
|
alpha/alpha/dec_kn20aa.c optional dec_kn20aa
|
|
alpha/alpha/dec_kn300.c optional dec_kn300
|
|
alpha/alpha/dec_kn8ae.c optional dec_kn8ae
|
|
alpha/alpha/dec_st550.c optional dec_st550
|
|
alpha/alpha/dec_st6600.c optional dec_st6600
|
|
alpha/alpha/dec_3000_300.c optional dec_3000_300
|
|
alpha/alpha/dec_3000_500.c optional dec_3000_500
|
|
alpha/alpha/elf_machdep.c standard
|
|
alpha/alpha/exception.s standard
|
|
alpha/alpha/fp_emulate.c standard
|
|
alpha/alpha/ieee_float.c standard
|
|
alpha/alpha/in_cksum.c optional inet
|
|
alpha/alpha/interrupt.c standard
|
|
alpha/alpha/ipl_funcs.c standard
|
|
# locore.s needs to be handled in Makefile to put it first. Otherwise it's
|
|
# now normal.
|
|
# alpha/alpha/locore.s standard
|
|
alpha/alpha/machdep.c standard
|
|
alpha/alpha/mem.c standard
|
|
alpha/alpha/mountroot.c optional slice
|
|
alpha/alpha/mp_machdep.c optional smp
|
|
alpha/alpha/pal.s standard
|
|
alpha/alpha/perfmon.c optional perfmon profiling-routine
|
|
alpha/alpha/perfmon.c optional perfmon
|
|
alpha/alpha/pmap.c standard
|
|
alpha/alpha/procfs_machdep.c standard
|
|
alpha/alpha/mp_machdep.c standard
|
|
alpha/alpha/prom.c standard
|
|
alpha/alpha/promcons.c standard
|
|
alpha/alpha/prom_disp.s standard
|
|
alpha/alpha/sgmap.c standard
|
|
alpha/alpha/simplelock.s optional smp
|
|
alpha/alpha/support.s standard
|
|
alpha/alpha/swtch.s standard
|
|
alpha/alpha/sys_machdep.c standard
|
|
alpha/alpha/trap.c standard
|
|
alpha/alpha/userconfig.c optional userconfig
|
|
alpha/alpha/vm_machdep.c standard
|
|
alpha/isa/isa.c optional isa
|
|
alpha/isa/isa_dma.c optional isa
|
|
alpha/isa/mcclock_isa.c optional isa
|
|
alpha/mcbus/mcbus.c optional dec_kn300
|
|
alpha/mcbus/mcmem.c optional dec_kn300
|
|
alpha/mcbus/mcpcia.c optional dec_kn300
|
|
alpha/pci/alphapci_if.m optional pci
|
|
alpha/pci/apecs.c optional dec_2100_a50
|
|
alpha/pci/apecs.c optional dec_eb64plus
|
|
alpha/pci/apecs.c optional dec_1000a
|
|
alpha/pci/apecs_pci.c optional dec_2100_a50
|
|
alpha/pci/apecs_pci.c optional dec_eb64plus
|
|
alpha/pci/apecs_pci.c optional dec_1000a
|
|
alpha/pci/bwx.c optional pci
|
|
alpha/pci/cia.c optional dec_eb164
|
|
alpha/pci/cia.c optional dec_kn20aa
|
|
alpha/pci/cia.c optional dec_st550
|
|
alpha/pci/cia.c optional dec_1000a
|
|
alpha/pci/cia_pci.c optional dec_eb164
|
|
alpha/pci/cia_pci.c optional dec_kn20aa
|
|
alpha/pci/cia_pci.c optional dec_st550
|
|
alpha/pci/cia_pci.c optional dec_1000a
|
|
alpha/pci/irongate.c optional api_up1000
|
|
alpha/pci/irongate_pci.c optional api_up1000
|
|
alpha/pci/lca.c optional dec_axppci_33
|
|
alpha/pci/lca_pci.c optional dec_axppci_33
|
|
alpha/pci/pci_eb164_intr.s optional dec_eb164
|
|
alpha/pci/pci_eb164_intr.s optional dec_kn20aa
|
|
alpha/pci/pci_eb164_intr.s optional dec_st550
|
|
alpha/pci/pci_eb64plus_intr.s optional dec_2100_a50
|
|
alpha/pci/pci_eb64plus_intr.s optional dec_eb64plus
|
|
alpha/pci/pcibus.c optional pci
|
|
alpha/pci/swiz.c optional pci
|
|
alpha/pci/t2.c optional dec_2100_a500
|
|
alpha/pci/t2_pci.c optional dec_2100_a500
|
|
alpha/pci/tsunami.c optional dec_st6600
|
|
alpha/pci/tsunami_pci.c optional dec_st6600
|
|
alpha/tc/am7990.c optional le dec_3000_300
|
|
alpha/tc/am7990.c optional le dec_3000_500
|
|
alpha/tc/esp.c optional esp dec_3000_300
|
|
alpha/tc/esp.c optional esp dec_3000_500
|
|
alpha/tc/if_le_dec.c optional le dec_3000_300
|
|
alpha/tc/if_le_dec.c optional le dec_3000_500
|
|
alpha/tc/if_le_ioasic.c optional le dec_3000_300
|
|
alpha/tc/if_le_ioasic.c optional le dec_3000_500
|
|
alpha/tc/ioasic.c optional dec_3000_300
|
|
alpha/tc/ioasic.c optional dec_3000_500
|
|
alpha/tc/mcclock_ioasic.c optional dec_3000_300
|
|
alpha/tc/mcclock_ioasic.c optional dec_3000_500
|
|
alpha/tc/tc.c optional dec_3000_300
|
|
alpha/tc/tc.c optional dec_3000_500
|
|
alpha/tc/tcasic.c optional dec_3000_300
|
|
alpha/tc/tcasic.c optional dec_3000_500
|
|
alpha/tc/tcds.c optional esp dec_3000_300
|
|
alpha/tc/tcds.c optional esp dec_3000_500
|
|
alpha/tc/tcds_dma.c optional tcds dec_3000_300
|
|
alpha/tc/tcds_dma.c optional tcds dec_3000_500
|
|
alpha/tlsb/dwlpx.c optional dec_kn8ae
|
|
alpha/tlsb/gbus.c optional dec_kn8ae
|
|
alpha/tlsb/kftxx.c optional dec_kn8ae
|
|
alpha/tlsb/mcclock_tlsb.c optional dec_kn8ae
|
|
alpha/tlsb/tlsb.c optional dec_kn8ae
|
|
alpha/tlsb/tlsbcpu.c optional dec_kn8ae
|
|
alpha/tlsb/tlsbmem.c optional dec_kn8ae
|
|
alpha/tlsb/zs_tlsb.c optional dec_kn8ae
|
|
dev/advansys/adv_isa.c optional adv isa
|
|
dev/aic/aic_isa.c optional aic isa
|
|
dev/dec/mcclock.c optional mcclock
|
|
dev/dec/mcclock_if.m optional mcclock
|
|
dev/ed/if_ed_isa.c optional ed isa
|
|
dev/fb/fb.c optional fb
|
|
dev/fb/fb.c optional vga
|
|
dev/fb/splash.c count splash
|
|
dev/fb/vga.c optional vga
|
|
dev/kbd/atkbd.c optional atkbd
|
|
dev/kbd/atkbdc.c count atkbdc
|
|
dev/kbd/kbd.c optional atkbd
|
|
dev/kbd/kbd.c optional kbd
|
|
dev/kbd/kbd.c optional sc
|
|
dev/kbd/kbd.c optional ukbd
|
|
dev/syscons/schistory.c count sc
|
|
dev/syscons/scmouse.c optional sc
|
|
dev/syscons/scterm.c optional sc
|
|
dev/syscons/scterm-dumb.c optional sc
|
|
dev/syscons/scterm-sc.c optional sc
|
|
dev/syscons/scvgarndr.c optional sc vga
|
|
dev/syscons/scvidctl.c optional sc
|
|
dev/syscons/scvtb.c optional sc
|
|
dev/syscons/syscons.c optional sc
|
|
dev/syscons/sysmouse.c optional sc
|
|
isa/atkbd_isa.c optional atkbd
|
|
isa/atkbdc_isa.c optional atkbdc
|
|
isa/fd.c optional fdc
|
|
isa/ppc.c optional ppc
|
|
isa/psm.c optional psm
|
|
isa/sio.c count sio
|
|
isa/syscons_isa.c optional sc
|
|
isa/vga_isa.c optional vga
|
|
kern/subr_diskmbr.c standard
|
|
libkern/alpha/htonl.S standard
|
|
libkern/alpha/htons.S standard
|
|
libkern/alpha/ntohl.S standard
|
|
libkern/alpha/ntohs.S standard
|
|
libkern/bcmp.c standard
|
|
libkern/ffs.c standard
|