5d3af2c5ab
prime objectives are: o Implement a syscall path based on the epc inststruction (see sys/ia64/ia64/syscall.s). o Revisit the places were we need to save and restore registers and define those contexts in terms of the register sets (see sys/ia64/include/_regset.h). Secundairy objectives: o Remove the requirement to use contigmalloc for kernel stacks. o Better handling of the high FP registers for SMP systems. o Switch to the new cpu_switch() and cpu_throw() semantics. o Add a good unwinder to reconstruct contexts for the rare cases we need to (see sys/contrib/ia64/libuwx) Many files are affected by this change. Functionally it boils down to: o The EPC syscall doesn't preserve registers it does not need to preserve and places the arguments differently on the stack. This affects libc and truss. o The address of the kernel page directory (kptdir) had to be unstaticized for use by the nested TLB fault handler. The name has been changed to ia64_kptdir to avoid conflicts. The renaming affects libkvm. o The trapframe only contains the special registers and the scratch registers. For syscalls using the EPC syscall path no scratch registers are saved. This affects all places where the trapframe is accessed. Most notably the unaligned access handler, the signal delivery code and the debugger. o Context switching only partly saves the special registers and the preserved registers. This affects cpu_switch() and triggered the move to the new semantics, which additionally affects cpu_throw(). o The high FP registers are either in the PCB or on some CPU. context switching for them is done lazily. This affects trap(). o The mcontext has room for all registers, but not all of them have to be defined in all cases. This mostly affects signal delivery code now. The *context syscalls are as of yet still unimplemented. Many details went into the removal of the requirement to use contigmalloc for kernel stacks. The details are mostly CPU specific and limited to exception_save() and exception_restore(). The few places where we create, destroy or switch stacks were mostly simplified by not having to construct physical addresses and additionally saving the virtual addresses for later use. Besides more efficient context saving and restoring, which of course yields a noticable speedup, this also fixes the dreaded SMP bootup problem as a side-effect. The details of which are still not fully understood. This change includes all the necessary backward compatibility code to have it handle older userland binaries that use the break instruction for syscalls. Support for break-based syscalls has been pessimized in favor of a clean implementation. Due to the overall better performance of the kernel, this will still be notived as an improvement if it's noticed at all. Approved by: re@ (jhb)
134 lines
4.8 KiB
Plaintext
134 lines
4.8 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"
|
|
#
|
|
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"
|
|
#
|
|
contrib/ia64/libuwx/src/uwx_bstream.c standard
|
|
contrib/ia64/libuwx/src/uwx_context.c standard
|
|
contrib/ia64/libuwx/src/uwx_env.c standard
|
|
contrib/ia64/libuwx/src/uwx_scoreboard.c standard
|
|
#contrib/ia64/libuwx/src/uwx_self.c standard
|
|
#contrib/ia64/libuwx/src/uwx_self_context.s standard
|
|
contrib/ia64/libuwx/src/uwx_step.c standard
|
|
contrib/ia64/libuwx/src/uwx_str.c standard
|
|
contrib/ia64/libuwx/src/uwx_swap.c standard
|
|
contrib/ia64/libuwx/src/uwx_trace.c standard
|
|
#contrib/ia64/libuwx/src/uwx_ttrace.c standard
|
|
contrib/ia64/libuwx/src/uwx_uinfo.c standard
|
|
contrib/ia64/libuwx/src/uwx_utable.c standard
|
|
crypto/blowfish/bf_enc.c optional crypto
|
|
crypto/blowfish/bf_enc.c optional ipsec ipsec_esp
|
|
crypto/des/des_enc.c optional crypto
|
|
crypto/des/des_enc.c optional ipsec ipsec_esp
|
|
dev/advansys/adv_isa.c optional adv isa
|
|
dev/aic/aic_isa.c optional aic isa
|
|
dev/fb/fb.c optional fb
|
|
dev/fb/fb.c optional vga
|
|
dev/fb/splash.c optional splash
|
|
dev/fb/vga.c optional vga
|
|
dev/kbd/atkbd.c optional atkbd
|
|
dev/kbd/atkbdc.c optional 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/sio/sio.c optional sio
|
|
dev/sio/sio_isa.c optional sio isa
|
|
dev/syscons/schistory.c optional sc
|
|
dev/syscons/scmouse.c optional sc
|
|
dev/syscons/scterm-dumb.c optional sc
|
|
dev/syscons/scterm-sc.c optional sc
|
|
dev/syscons/scterm.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
|
|
geom/geom_bsd.c standard
|
|
geom/geom_bsd_enc.c standard
|
|
geom/geom_gpt.c standard
|
|
geom/geom_mbr.c standard
|
|
geom/geom_mbr_enc.c standard
|
|
ia64/acpica/OsdEnvironment.c optional acpi
|
|
ia64/acpica/acpi_machdep.c optional acpi
|
|
ia64/acpica/acpi_wakeup.c optional acpi
|
|
ia64/acpica/madt.c optional acpi
|
|
ia64/ia32/ia32_misc.c optional ia32
|
|
ia64/ia32/ia32_sysent.c optional ia32
|
|
ia64/ia32/ia32_sysvec.c optional ia32
|
|
ia64/ia64/autoconf.c standard
|
|
ia64/ia64/busdma_machdep.c standard
|
|
ia64/ia64/clock.c standard
|
|
ia64/ia64/clock_if.m standard
|
|
ia64/ia64/context.s standard
|
|
ia64/ia64/critical.c standard
|
|
ia64/ia64/db_disasm.c optional ddb
|
|
ia64/ia64/db_interface.c optional ddb
|
|
ia64/ia64/db_trace.c optional ddb
|
|
ia64/ia64/dump_machdep.c standard
|
|
ia64/ia64/efi.c standard
|
|
ia64/ia64/eficlock.c standard
|
|
ia64/ia64/elf_machdep.c standard
|
|
ia64/ia64/exception.s standard
|
|
ia64/ia64/ia64-gdbstub.c optional ddb
|
|
ia64/ia64/in_cksum.c optional inet
|
|
ia64/ia64/interrupt.c standard
|
|
ia64/ia64/locore.s standard no-obj
|
|
ia64/ia64/machdep.c standard
|
|
ia64/ia64/mca.c standard
|
|
ia64/ia64/mem.c standard
|
|
ia64/ia64/mp_machdep.c optional smp
|
|
ia64/ia64/nexus.c standard
|
|
ia64/ia64/pal.s standard
|
|
ia64/ia64/pmap.c standard
|
|
ia64/ia64/sal.c standard
|
|
ia64/ia64/sapic.c standard
|
|
ia64/ia64/setjmp.s standard
|
|
ia64/ia64/ssc.c optional ski
|
|
ia64/ia64/sscdisk.c optional ski
|
|
ia64/ia64/support.s standard
|
|
ia64/ia64/sys_machdep.c standard
|
|
ia64/ia64/syscall.s standard
|
|
ia64/ia64/trap.c standard
|
|
ia64/ia64/unaligned.c standard
|
|
ia64/ia64/unwind.c standard
|
|
ia64/ia64/vm_machdep.c standard
|
|
ia64/isa/isa.c optional isa
|
|
ia64/isa/isa_dma.c optional isa
|
|
ia64/pci/pci_cfgreg.c optional pci
|
|
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/syscons_isa.c optional sc
|
|
isa/vga_isa.c optional vga
|
|
kern/imgact_elf32.c optional ia32
|
|
libkern/bcmp.c standard
|
|
libkern/ffs.c standard
|
|
libkern/ia64/__divdi3.S standard
|
|
libkern/ia64/__divsi3.S standard
|
|
libkern/ia64/__moddi3.S standard
|
|
libkern/ia64/__modsi3.S standard
|
|
libkern/ia64/__udivdi3.S standard
|
|
libkern/ia64/__udivsi3.S standard
|
|
libkern/ia64/__umoddi3.S standard
|
|
libkern/ia64/__umodsi3.S standard
|
|
libkern/ia64/bswap16.S standard
|
|
libkern/ia64/bswap32.S standard
|