The NetBSD Project

CVS log for src/sys/arch/x86/x86/syscall.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / x86 / x86

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 17 22:22:49 2022 UTC (10 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.20: +2 -9 lines
Diff to previous 1.20 (colored)

x86: Revert previous syscall biglock slippage attribution.

The attribution in userret is good enough as is, because the stack
trace on panic shows the syscall number in the trap frame, so no need
to put extra cost in the syscall entry logic even under DIAGNOSTIC.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Mar 12 15:50:53 2022 UTC (10 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.19: +9 -2 lines
Diff to previous 1.19 (colored)

x86: Provide better attribution for syscall biglock slippage.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Oct 7 12:52:27 2021 UTC (15 months, 4 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

KNF. No functional change.

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:54 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.16: +3 -6 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Sat Apr 6 11:54:21 2019 UTC (3 years, 10 months ago) by kamil
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.17: +3 -17 lines
Diff to previous 1.17 (colored)

Centralized shared part of child_return() into MI part

Add a new function md_child_return() for MD specific bits only.

New child_return() is now part of MI and central code that handles
uniformly tracing code (KTR and ptrace(2)).

Synchronize value passed to ktrsysret() among ports to SYS_fork. This is
a traditional value and accessing p_lflag to check for PL_PPWAIT shall
use locking against proc_lock. Returning SYS_fork vs SYS_vfork still isn't
correct enough as there are more entry points to forking code. Instead of
making it too good, just settle with plain SYS_fork for all ports.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 3 08:08:00 2019 UTC (3 years, 10 months ago) by kamil
Branch: MAIN
Changes since 1.16: +14 -3 lines
Diff to previous 1.16 (colored)

Rework the fork(2)/vfork(2) event signalling under ptrace(2)

Remove the constraint of SIGTRAP event being maskable by a tracee.

Now all SIGTRAP TRAP_CHLD events are delivered to debugger.

This code touches MD specific logic and the child_return routine.
It's an intermediate step with a room for refactoring in future and
right now the least invasive approach. This allows to assert expected
behavior in already existing ATF tests and make the code prettier
in future keeping the same semantics. Probably there is a need for a MI
wrapper of child_return for shared functionality between ports.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:51 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.11.2.1: +10 -42 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

update from HEAD

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:56 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.13.2.1: +2 -41 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Sync with HEAD

Revision 1.16 / (download) - annotate - [select for diffs], Sat Aug 12 07:21:57 2017 UTC (5 years, 5 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, nick-nhusb-base-20170825
Branch point for: phil-wifi
Changes since 1.15: +2 -29 lines
Diff to previous 1.15 (colored)

Remove vm86.

Pass 3.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:09 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.14: +2 -14 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Sync with HEAD

Revision 1.14.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:39 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.14: +2 -14 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Fri Mar 31 08:47:04 2017 UTC (5 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Changes since 1.14: +2 -14 lines
Diff to previous 1.14 (colored)

PR kern/52117: move stop code for debuged children after fork into MI code.
XXX we might want to revisit this when handling the same event for vfork
better.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Sat Jul 9 20:24:59 2016 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:40 2016 UTC (6 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 26 15:38:28 2014 UTC (8 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.12: +17 -10 lines
Diff to previous 1.12 (colored)

dtrace expects a globally accessible syscall symbol.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:29 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.11: +3 -14 lines
Diff to previous 1.11 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:14 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.5.2.2: +3 -14 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 26 17:18:52 2013 UTC (9 years, 7 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.11: +3 -14 lines
Diff to previous 1.11 (colored)

Use sy_invoke

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:35 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.5.2.1: +9 -12 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

sync with head

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 10 21:18:07 2012 UTC (10 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.10: +9 -12 lines
Diff to previous 1.10 (colored)

Revert the rest of rev 1.6

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:06 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.5: +22 -26 lines
Diff to previous 1.5 (colored)

sync with head

Revision 1.5.6.2 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:37 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.5.6.1: +2 -19 lines
Diff to previous 1.5.6.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

sync to -current.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:35 2012 UTC (10 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base10
Changes since 1.9: +2 -19 lines
Diff to previous 1.9 (colored)

Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

Revision 1.5.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:33:37 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.5: +22 -9 lines
Diff to previous 1.5 (colored)

merge to -current.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Feb 11 23:16:16 2012 UTC (10 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base2
Changes since 1.8: +12 -2 lines
Diff to previous 1.8 (colored)

Add a posix_spawn syscall, as discussed on tech-kern.
Based on the summer of code project by Charles Zhang, heavily reworked
later by me - all bugs are likely mine.
Ok: core, releng.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jan 5 17:26:57 2012 UTC (11 years, 1 month ago) by reinoud
Branch: MAIN
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored)

Remove unused variable i accidently left standing

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 5 17:18:02 2012 UTC (11 years, 1 month ago) by reinoud
Branch: MAIN
Changes since 1.6: +2 -28 lines
Diff to previous 1.6 (colored)

Oops, forgot to revert this patch too... thanks Greg for finding it :-/

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 20 15:41:50 2011 UTC (11 years, 1 month ago) by reinoud
Branch: MAIN
Changes since 1.5: +39 -9 lines
Diff to previous 1.5 (colored)

Part 2 - x86 implementation of MAP_NOSYSCALLS

Currently the MAP_NOSYSCALLS is only implemented for x86 but other
architectures are easy to adapt; see the sys/arch/x86/x86/syscall.c patch.
Port maintainers are encouraged to add them for their processor ports too.
When this feature is not yet implemented for an architecture the
MAP_NOSYSCALLS is simply ignored with virtually no cpu cost..

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 4 21:14:49 2011 UTC (11 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.4: +2 -5 lines
Diff to previous 1.4 (colored)

Remove code that was used to avoid register spills. setcontext(2) can change
the registers, so re-fetching will produce the wrong result for trace_exit().

Revision 1.4 / (download) - annotate - [select for diffs], Fri Sep 2 20:01:20 2011 UTC (11 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.3: +14 -2 lines
Diff to previous 1.3 (colored)

If the process is traced, resulting from a PTRACE_FORK inherited setting,
stop it right now.

XXX[1]: Cannot make this MI, because I cannot wrap child_return because there
is MD code that checks fun == child_return. I think it is better to have an
mi child_return() and add a cpu_child_return()?
XXX[2]: Why do we need to stop so early? Perhaps stopping just after exec
is better?

Revision 1.1.6.4 / (download) - annotate - [select for diffs], Sun Oct 24 22:48:20 2010 UTC (12 years, 3 months ago) by jym
Branch: jym-xensuspend
Changes since 1.1.6.3: +2 -3 lines
Diff to previous 1.1.6.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:09 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.1.4.2: +2 -4 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head

Revision 1.3 / (download) - annotate - [select for diffs], Sat Nov 21 03:11:02 2009 UTC (13 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (colored)

Use lwp_getpcb() on x86 MD code, clean from struct user usage.

Revision 1.1.6.3 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:18 2009 UTC (13 years, 3 months ago) by jym
Branch: jym-xensuspend
Changes since 1.1.6.2: +2 -3 lines
Diff to previous 1.1.6.2 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:04 2009 UTC (13 years, 3 months ago) by rmind
Branch: MAIN
Changes since 1.1: +2 -3 lines
Diff to previous 1.1 (colored)

Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Wed May 13 17:18:45 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.1.6.1: +220 -0 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:11 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.1.4.1: +220 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:34:57 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.1.2.1: +220 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.1.6.1, Thu Apr 16 15:34:23 2009 UTC (13 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.1: +0 -220 lines
FILE REMOVED

file syscall.c was added on branch jym-xensuspend on 2009-05-13 17:18:45 +0000

Revision 1.1.4.1, Thu Apr 16 15:34:23 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.1: +0 -220 lines
FILE REMOVED

file syscall.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:11 +0000

Revision 1.1.2.1, Thu Apr 16 15:34:23 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.1: +0 -220 lines
FILE REMOVED

file syscall.c was added on branch nick-hppapmap on 2009-04-28 07:34:57 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Thu Apr 16 15:34:23 2009 UTC (13 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend

- Add macros to handle (some) trapframe registers for common x86 code.
- Merge i386 and amd64 syscall.c into x86.  No functional changes intended.

Proposed on (port-i386 & port-amd64).  Unfortunately, I cannot merge these
lists into the single port-x86. :(

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>