freebsd-skq/sys/sparc64/sparc64
Marius Strobl 29b6820f87 Merge r202882 from amd64/i386:
For PT_TO_SCE stop that stops the ptraced process upon syscall entry,
syscall arguments are collected before ptracestop() is called. As a
consequence, debugger cannot modify syscall or its arguments.

In syscall(), reread syscall number and arguments after ptracestop(),
if debugger modified anything in the process environment. Since procfs
stopevent requires number of syscall arguments in p_xstat, this cannot
be solved by moving stop/trace point before argument fetching.

Move the code to read arguments into separate function
fetch_syscall_args() to avoid code duplication. Note that ktrace point
for modified syscall is intentionally recorded twice, once with original
arguments, and second time with the arguments set by debugger.

PT_TO_SCX stop is executed after cpu_syscall_set_retval() already.

Reviewed by:	kib
2010-01-23 22:11:18 +00:00
..
ata_machdep.c
autoconf.c Bypass isa_probe_children(9) and directly call bus_generic_attach(9) 2008-09-02 21:06:28 +00:00
bus_machdep.c Remove #if 0'ed code referencing no longer existent ecache_flush(). 2008-05-08 21:02:07 +00:00
cache.c - USIII-based machines can consist of CPUs having different cache 2008-09-02 21:13:54 +00:00
cheetah.c For cheetah-class CPUs ensure that the dt512_0 is set to hold 8k pages 2008-09-08 21:24:25 +00:00
clock.c - USIII-based machines can consist of CPUs running at different 2008-09-03 17:39:19 +00:00
counter.c - Use the name returned by device_get_nameunit(9) for the name of the 2008-05-07 21:22:15 +00:00
db_disasm.c Add missing const. 2009-03-18 23:52:20 +00:00
db_hwwatch.c
db_interface.c
db_trace.c - In GCC 4.2 __builtin_frame_address() was fixed to include the 2008-10-27 21:31:14 +00:00
dump_machdep.c Place hostnames and similar information fully under the prison system. 2009-05-29 21:27:12 +00:00
eeprom.c Fix botches in r201005: 2010-01-01 22:47:53 +00:00
elf_machdep.c Make sure that the primary native brandinfo always gets added 2009-10-03 11:57:21 +00:00
exception.S USIII and beyond CPUs have stricter requirements when it comes 2008-09-08 20:38:48 +00:00
gdb_machdep.c
genassym.c - Newer firmware versions no longer provide SUNW,stop-self so just 2008-09-18 13:56:30 +00:00
identcpu.c Calculate the average CPU clock frequency and export that through 2009-12-23 06:52:12 +00:00
in_cksum.c - Merge macros depending on the flags being preserved between calls 2008-07-05 15:44:56 +00:00
interrupt.S Don't use an out register to hold the vector number across the call 2009-12-23 20:23:04 +00:00
intr_machdep.c Merge from amd64/i386: 2009-12-24 15:43:37 +00:00
iommu.c - Add support for the IOMMUs of Fire JBus to PCIe and Oberon Uranus 2009-12-23 22:02:34 +00:00
jbusppm.c Factor out the duplicated macro for the device type used in the 2009-09-13 14:47:31 +00:00
locore.S - USIII-based machines can consist of CPUs running at different 2008-09-03 17:39:19 +00:00
machdep.c - Demapping unused kernel TLB slots has proven to work reliably so move 2010-01-02 15:44:16 +00:00
mem.c Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
mp_exception.S USIII and beyond CPUs have stricter requirements when it comes 2008-09-08 20:38:48 +00:00
mp_locore.S Work around Cheetah+ erratum 34 (USIII+ erratum #10) by relocating 2008-09-10 20:07:08 +00:00
mp_machdep.c Implement a facility for dynamic per-cpu variables. 2009-06-23 22:42:39 +00:00
nexus.c Merge from amd64/i386: 2009-12-24 15:43:37 +00:00
ofw_machdep.c - By re-arranging the code in OF_decode_addr() somewhat and accepting 2009-12-23 22:25:23 +00:00
pmap.c o Introduce vm_sync_icache() for making the I-cache coherent with 2009-10-21 18:38:02 +00:00
prof_machdep.c cosmetic changes and style fixes 2008-08-13 20:30:28 +00:00
rtc.c Style changes 2009-12-25 22:53:46 +00:00
rwindow.c
sc_machdep.c Take advantage of KOBJMETHOD_END. 2009-03-19 20:36:46 +00:00
schppm.c Take advantage of KOBJMETHOD_END. 2009-03-19 20:38:45 +00:00
spitfire.c - USIII-based machines can consist of CPUs having different cache 2008-09-02 21:13:54 +00:00
stack_machdep.c Add additional checks of the kernel stack addresses in order to 2009-12-08 20:18:54 +00:00
support.S Modularize the Open Firmware client interface to allow run-time switching 2008-12-20 00:33:10 +00:00
swtch.S For cheetah-class CPUs ensure that the dt512_0 is set to hold 8k pages 2008-09-08 21:24:25 +00:00
sys_machdep.c
tick.c Use the STICK timers only when absolutely necessary, i.e. if a machine 2008-09-20 11:26:13 +00:00
tlb.c USIII and beyond CPUs have stricter requirements when it comes 2008-09-08 20:38:48 +00:00
trap.c Merge r202882 from amd64/i386: 2010-01-23 22:11:18 +00:00
tsb.c
uio_machdep.c
upa.c Enroll these drivers in multipass probing. The motivation behind this 2009-12-22 21:02:46 +00:00
vm_machdep.c Extract the code that records syscall results in the frame into MD 2009-11-10 11:43:07 +00:00