freebsd-nq/sys/ia64/include
Marcel Moolenaar ac8c7680a6 Use get_mcontext() to construct the signal context in sendsig() and
use set_mcontext() to restore the context in sigreturn(). Since we
put the syscall number and the syscall arguments in the trapframe
(we don't save the scratch registers for syscalls, which allows us
to reuse the space to our advantage), create a MD specific flag so
that we save the scratch registers even for syscalls. We would not
be able to restart a syscall otherwise.

The signal trampoline does not need to flush the regiters anymore,
because get_mcontext() already handles that. In fact, if we set up
the context correctly, we do not need to have a trampoline at all.
This change however only minimally changes the trampoline code. In
follow-up commits this can be further optimized.

Note that normally we preserve cfm and iip in the trapframe created
by the EPC syscall path when we restore a context in set_mcontext()
because those fields are not normally set for a synchronuous context.
The kernel puts the return address and frame info of the syscall
stub in there. By preserving these fields we hide this detail from
userland which allows us to use setcontext(2) for user created
contexts. However, sigreturn() is commonly called from the trampoline,
which means that if we preserve cfm and iip in all cases, we would
return to the trampoline after the sigreturn(), which means we hit
the safety net: we call exit(2). So, we do not preserve cfm and iip
when we have a synchronous context that also has scratch registers
(the uncommon context created by sendsig() only), under the assumption
that if such a context is created in userland, something special is
going on and the use of cfm and iip is then just another quirk. All
this is invisible in the common case.
2003-11-09 22:17:36 +00:00
..
pc Remove headers copied from i386 and either useless or wrong on ia64. 2003-11-02 09:19:07 +00:00
_inttypes.h
_limits.h
_regset.h Remove __aligned(16) from the definition of struct _ia64_fpreg. It's 2003-07-25 08:02:24 +00:00
_stdint.h
_types.h Add a bogus definition of __va_list for use by lint. Make it visible 2003-11-03 05:04:09 +00:00
acpica_machdep.h Unbreak ia64 builds now -Werror is enabled again. Avoid obsolete 2003-07-26 07:23:25 +00:00
asm.h
atomic.h
bootinfo.h
bus_memio.h
bus_pio.h
bus.h Document the lockfunc and lockfuncarg arguments to bus_dma_tag_create() in 2003-11-07 23:29:42 +00:00
clock.h Cleanup the clock code. This includes: 2003-08-04 05:13:18 +00:00
clockvar.h
cpu.h Change TRAPF_USERMODE and CLOCKF_USERMODE to not test for CPL == 3, 2003-09-19 07:48:22 +00:00
cpufunc.h
critical.h Expand inline the relevant parts of src/COPYRIGHT for Matt Dillon's 2003-08-12 23:24:05 +00:00
db_machdep.h
dig64.h
efi.h
elf.h Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
endian.h Style sync. 2003-08-03 07:50:19 +00:00
exec.h
float.h
floatingpoint.h
fpu.h
frame.h
ia64_cpu.h Add an instruction group break after the move to application register 2003-08-15 05:46:33 +00:00
ieee.h
ieeefp.h Cleanup and style(9) fixes. No functional change. 2003-08-11 21:25:19 +00:00
in_cksum.h
intr.h
intrcnt.h
ioctl_bt848.h
ioctl_meteor.h
kse.h
limits.h
mca.h
md_var.h Add prototypes for spillfd() and unaligned_fixup(). 2003-10-23 06:20:38 +00:00
mutex.h
nexusvar.h
pal.h
param.h Remove PAGE_SIZE_4K, PAGE_SIZE_8K and PAGE_SIZE_16K and replace them 2003-08-23 03:39:55 +00:00
pcb.h Cleanup prototypes in cpu.h, including fswintrberr and any references 2003-08-12 03:51:53 +00:00
pci_cfgreg.h
pcpu.h Cleanup the clock code. This includes: 2003-08-04 05:13:18 +00:00
pmap.h Move pmap_resident_count() from the MD pmap.h to the MI pmap.h. 2003-10-06 01:47:12 +00:00
proc.h Cleanup. Remove the md_flags for threads. It's not used. The flags 2003-10-23 06:41:59 +00:00
profile.h
pte.h
ptrace.h Introduce two machine specific ptrace(2) requests: PT_GETKSTACK and 2003-08-15 05:40:59 +00:00
reg.h
reloc.h
resource.h
runq.h
sal.h
sapicreg.h
sapicvar.h Rewrite the SAPIC initialization to always program the RTEs with what 2003-09-10 22:49:38 +00:00
setjmp.h Avoid using __aligned(16). Instead define the jmp_buf in terms of 2003-07-26 08:03:43 +00:00
sigframe.h
signal.h
smp.h
stdarg.h
sysarch.h The previous commit removed both clause 3 and clause 4 from the UCB 2003-10-27 22:54:34 +00:00
ucontext.h Use get_mcontext() to construct the signal context in sendsig() and 2003-11-09 22:17:36 +00:00
unwind.h Add logic to trace across/over a trapframe. We have ABI markers in 2003-07-12 04:35:09 +00:00
varargs.h Drop any and all support for varargs. There's no history to worry 2003-09-28 05:34:07 +00:00
vmparam.h Put the RSE backing store at a fixed address. This change is triggered 2003-10-20 05:34:10 +00:00