cvs commit: src/lib/libc/ia64/sys brk.S pipe.S sbrk.S
src/lib/libkvm kvm_ia64.c src/sys/conf Makefile.ia64 files.ia64
options.ia64 src/sys/ia64/ia32 ia32_sysvec.c ia32_util.h
src/sys/ia64/ia64 db_interface.c db_trace.c elf_machdep.c ...
Marcel Moolenaar
marcel at FreeBSD.org
Fri May 16 14:26:47 PDT 2003
marcel 2003/05/16 14:26:42 PDT
FreeBSD src repository
Modified files:
lib/libc/ia64/sys brk.S pipe.S sbrk.S
lib/libkvm kvm_ia64.c
sys/conf Makefile.ia64 files.ia64 options.ia64
sys/ia64/ia32 ia32_sysvec.c ia32_util.h
sys/ia64/ia64 db_interface.c db_trace.c elf_machdep.c
exception.s genassym.c interrupt.c
locore.s machdep.c mp_machdep.c pmap.c
support.s trap.c unaligned.c unwind.c
vm_machdep.c
sys/ia64/include asm.h cpu.h db_machdep.h frame.h pcb.h
proc.h reg.h signal.h smp.h ucontext.h
unwind.h vmparam.h
sys/kern kern_synch.c kern_thr.c kern_thread.c
sys/sys proc.h
usr.bin/truss ia64-fbsd.c
Log:
Revamp of the syscall path, exception and context handling. The
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)
Revision Changes Path
1.4 +5 -3 src/lib/libc/ia64/sys/brk.S
1.4 +12 -6 src/lib/libc/ia64/sys/pipe.S
1.5 +6 -3 src/lib/libc/ia64/sys/sbrk.S
1.4 +1 -1 src/lib/libkvm/kvm_ia64.c
1.56 +2 -0 src/sys/conf/Makefile.ia64
1.52 +15 -1 src/sys/conf/files.ia64
1.18 +1 -1 src/sys/conf/options.ia64
1.3 +69 -53 src/sys/ia64/ia32/ia32_sysvec.c
1.5 +6 -3 src/sys/ia64/ia32/ia32_util.h
1.23 +101 -104 src/sys/ia64/ia64/db_interface.c
1.15 +39 -54 src/sys/ia64/ia64/db_trace.c
1.11 +4 -4 src/sys/ia64/ia64/elf_machdep.c
1.42 +777 -1228 src/sys/ia64/ia64/exception.s
1.34 +39 -71 src/sys/ia64/ia64/genassym.c
1.37 +3 -0 src/sys/ia64/ia64/interrupt.c
1.30 +96 -146 src/sys/ia64/ia64/locore.s
1.132 +368 -466 src/sys/ia64/ia64/machdep.c
1.47 +19 -30 src/sys/ia64/ia64/mp_machdep.c
1.102 +25 -40 src/sys/ia64/ia64/pmap.c
1.17 +13 -83 src/sys/ia64/ia64/support.s
1.76 +292 -162 src/sys/ia64/ia64/trap.c
1.3 +93 -32 src/sys/ia64/ia64/unaligned.c
1.6 +186 -1391 src/sys/ia64/ia64/unwind.c
1.57 +46 -149 src/sys/ia64/ia64/vm_machdep.c
1.10 +12 -5 src/sys/ia64/include/asm.h
1.29 +23 -27 src/sys/ia64/include/cpu.h
1.9 +4 -4 src/sys/ia64/include/db_machdep.h
1.5 +6 -75 src/sys/ia64/include/frame.h
1.12 +29 -56 src/sys/ia64/include/pcb.h
1.10 +1 -2 src/sys/ia64/include/proc.h
1.12 +8 -33 src/sys/ia64/include/reg.h
1.12 +12 -39 src/sys/ia64/include/signal.h
1.8 +8 -6 src/sys/ia64/include/smp.h
1.3 +12 -28 src/sys/ia64/include/ucontext.h
1.3 +21 -9 src/sys/ia64/include/unwind.h
1.6 +7 -7 src/sys/ia64/include/vmparam.h
1.223 +2 -2 src/sys/kern/kern_synch.c
1.8 +1 -1 src/sys/kern/kern_thr.c
1.130 +1 -1 src/sys/kern/kern_thread.c
1.329 +1 -1 src/sys/sys/proc.h
1.3 +4 -4 src/usr.bin/truss/ia64-fbsd.c
More information about the cvs-src
mailing list