The NetBSD Project

CVS log for src/sys/arch/sparc64/sparc64/trap.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.177 / (download) - annotate - [select for diffs], Wed Aug 1 09:07:35 2012 UTC (9 months, 2 weeks ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, khorben-n900, agc-symver-base, agc-symver, HEAD
Changes since 1.176: +5 -3 lines
Diff to previous 1.176 (colored)

Do not spam the console when sending a sigill due to a T_ILLINST trap,
new openssl probes for the cpu sub family/features by trying some new
instructions and catching sigill.
In all other cases, move the printf inside a #ifdef DEBUG.

Revision 1.176 / (download) - annotate - [select for diffs], Wed Apr 25 19:58:07 2012 UTC (12 months, 3 weeks ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.175: +3 -3 lines
Diff to previous 1.175 (colored)

Fix 32bit build

Revision 1.175 / (download) - annotate - [select for diffs], Mon Apr 23 15:09:13 2012 UTC (12 months, 3 weeks ago) by martin
Branch: MAIN
Changes since 1.174: +5 -5 lines
Diff to previous 1.174 (colored)

Report faulting data address with SIGBUS (instead of the faulting instruction)

Revision 1.174 / (download) - annotate - [select for diffs], Sun Mar 25 15:40:32 2012 UTC (13 months, 3 weeks ago) by nakayama
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base8
Changes since 1.173: +3 -3 lines
Diff to previous 1.173 (colored)

Redo previous.  Print register as a hexadecimal.

Revision 1.173 / (download) - annotate - [select for diffs], Sun Mar 25 13:44:04 2012 UTC (13 months, 3 weeks ago) by martin
Branch: MAIN
Changes since 1.172: +3 -3 lines
Diff to previous 1.172 (colored)

Make 32bit kernels compilable

Revision 1.172 / (download) - annotate - [select for diffs], Sun Mar 25 01:41:03 2012 UTC (13 months, 3 weeks ago) by mrg
Branch: MAIN
Changes since 1.171: +4 -4 lines
Diff to previous 1.171 (colored)

print %i7 for data faults

Revision 1.171 / (download) - annotate - [select for diffs], Sat Mar 17 23:47:13 2012 UTC (14 months ago) by mrg
Branch: MAIN
Changes since 1.170: +7 -3 lines
Diff to previous 1.170 (colored)

count ECC corrected traps with evcnt(9).

Revision 1.170 / (download) - annotate - [select for diffs], Sat Mar 17 22:19:53 2012 UTC (14 months ago) by mrg
Branch: MAIN
Changes since 1.169: +56 -2 lines
Diff to previous 1.169 (colored)

port the corrected ECC error handling code from freebsd.  i noticed my U10
took one of these and then hang.  it shouldn't hang, there's a 'sir' here that
doesn't seem to reset properly.  oh well.

tested by simulated a trap via 'ta 0x10' and considering that the same, but
it hasn't been tested against a real ECC error yet.

Revision 1.169 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:31 2012 UTC (14 months, 3 weeks ago) by rmind
Branch: MAIN
CVS Tags: jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Changes since 1.168: +2 -15 lines
Diff to previous 1.168 (colored)

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

Revision 1.168 / (download) - annotate - [select for diffs], Sat Jul 30 19:29:12 2011 UTC (21 months, 2 weeks ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.167: +3 -3 lines
Diff to previous 1.167 (colored)

Get rid of #ifdef __sparc__ in uvm code - as noted by cgd back 1996,
now that we have __HAVE_CPU_VMSPACE_EXEC/cpu_vmspace_exec().

Revision 1.167 / (download) - annotate - [select for diffs], Tue Jul 12 07:51:34 2011 UTC (22 months, 1 week ago) by mrg
Branch: MAIN
Changes since 1.166: +3 -3 lines
Diff to previous 1.166 (colored)

rename sparc64 BLOCK_SIZE and BLOCK_ALIGN to have SPARC64_ prefixes.
for the assembler files, define the old names to the new names
since using the new names cause ugliness due to longer identifer
names, and reduces churn.

fixes build issues in dtv and vaguely makes <machine/psl.h> slightly
less name-space invasive.

Revision 1.166 / (download) - annotate - [select for diffs], Thu Jun 23 13:39:40 2011 UTC (22 months, 3 weeks ago) by nakayama
Branch: MAIN
Changes since 1.165: +4 -4 lines
Diff to previous 1.165 (colored)

No need to repeat checking want_resched then call preempt() in
T_AST case, so check it only once.

Revision 1.165 / (download) - annotate - [select for diffs], Fri Jan 14 02:06:32 2011 UTC (2 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base7, rmind-uvmplock-nbase, rmind-uvmplock-base, 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.164: +3 -2 lines
Diff to previous 1.164 (colored)

Retire struct user, remove sys/user.h inclusions.  Note sys/user.h header
as obsolete.  Remove USER_TO_UAREA/UAREA_TO_USER macros.

Various #include fixes and review by matt@.

Revision 1.164 / (download) - annotate - [select for diffs], Mon Dec 20 00:25:44 2010 UTC (2 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.163: +7 -7 lines
Diff to previous 1.163 (colored)

Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits.  Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.

Revision 1.163 / (download) - annotate - [select for diffs], Mon Dec 13 06:35:03 2010 UTC (2 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.162: +4 -3 lines
Diff to previous 1.162 (colored)

trap 0x70 is a "+fast ECC error".

Revision 1.162 / (download) - annotate - [select for diffs], Sun Aug 8 18:19:56 2010 UTC (2 years, 9 months ago) by chs
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.161: +2 -56 lines
Diff to previous 1.161 (colored)

remove some unreachable debug code.

Revision 1.161 / (download) - annotate - [select for diffs], Sat Mar 20 23:31:30 2010 UTC (3 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.160: +24 -88 lines
Diff to previous 1.160 (colored)

fix copy{in,out}{,str}() to return the error returned by uvm_fault().
fixes PR 41813.

Revision 1.160 / (download) - annotate - [select for diffs], Wed Dec 2 07:34:57 2009 UTC (3 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.159: +6 -4 lines
Diff to previous 1.159 (colored)

print pid, lid and p_comm in some diag messages that indicate killed processes.

Revision 1.159 / (download) - annotate - [select for diffs], Sat Nov 21 04:16:52 2009 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.158: +21 -15 lines
Diff to previous 1.158 (colored)

Use lwp_getpcb() on sparc{64} and sun2/3 MD code, clean from struct user usage.

Revision 1.158 / (download) - annotate - [select for diffs], Sat Oct 17 08:50:49 2009 UTC (3 years, 7 months ago) by nakayama
Branch: MAIN
Changes since 1.157: +8 -6 lines
Diff to previous 1.157 (colored)

Merge want_ast check in userret() into trap handler, and repeat
preempt() call while want_resched is true.  While there remove
unnecessary #if 1.

This should fix a performance degradation of disk I/O on heavy load.

Revision 1.157 / (download) - annotate - [select for diffs], Sat May 16 19:15:34 2009 UTC (4 years ago) by nakayama
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.156: +13 -22 lines
Diff to previous 1.156 (colored)

- move definition of tick() from ctlreg.h to psl.h and rename to gettick()
  for consistency with other functions for reading/writing ASRs.
- move definition of tl() from trap.c to psl.h as same as above.
- define settick() in psl.h and use it in clock.c.
- cosmetic chages in psl.h.

Revision 1.156 / (download) - annotate - [select for diffs], Tue Dec 16 22:35:27 2008 UTC (4 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, jym-xensuspend
Changes since 1.155: +15 -16 lines
Diff to previous 1.155 (colored)

replace bitmask_snprintf(9) with snprintb(3)

Revision 1.155 / (download) - annotate - [select for diffs], Wed Oct 15 06:51:19 2008 UTC (4 years, 7 months ago) by wrstuden
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5-0, netbsd-5, matt-nb5-mips64
Changes since 1.154: +17 -3 lines
Diff to previous 1.154 (colored)

Merge wrstuden-revivesa into HEAD.

Revision 1.154 / (download) - annotate - [select for diffs], Mon Oct 13 12:25:22 2008 UTC (4 years, 7 months ago) by nakayama
Branch: MAIN
Changes since 1.153: +2 -3 lines
Diff to previous 1.153 (colored)

Remove unnecessary includes.

Revision 1.153 / (download) - annotate - [select for diffs], Thu Jul 10 15:23:58 2008 UTC (4 years, 10 months ago) by nakayama
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.152: +4 -5 lines
Diff to previous 1.152 (colored)

sparc64_ipi_save_fpstate:
- use primary MMU context for consistency with other trap/interrupt handlers.

sparc64_ipi_save_fpstate, savefpstate:
- avoid storing fp registers as we can.

sparc64_ipi_save_fpstate, savefpstate, loadfpstate:
- remove unaligned case since buffers allocated with pool_cache are ensured
  64-byte aligned.

Ok by martin@.

Revision 1.152 / (download) - annotate - [select for diffs], Thu Jul 10 15:04:42 2008 UTC (4 years, 10 months ago) by nakayama
Branch: MAIN
Changes since 1.151: +3 -4 lines
Diff to previous 1.151 (colored)

Switch fpstate buffer allocation from malloc to pool_cache.

Ok by martin@.

Revision 1.151 / (download) - annotate - [select for diffs], Mon Jun 30 14:16:13 2008 UTC (4 years, 10 months ago) by nakayama
Branch: MAIN
Branch point for: haad-dm
Changes since 1.150: +3 -3 lines
Diff to previous 1.150 (colored)

Fix commented sparc derived code.

Revision 1.150 / (download) - annotate - [select for diffs], Sun Jun 29 07:49:10 2008 UTC (4 years, 10 months ago) by nakayama
Branch: MAIN
Changes since 1.149: +4 -2 lines
Diff to previous 1.149 (colored)

Wrap trapstats counters with #ifdef TRAPSTATS.

Revision 1.149 / (download) - annotate - [select for diffs], Sun Jun 29 07:41:53 2008 UTC (4 years, 10 months ago) by nakayama
Branch: MAIN
Changes since 1.148: +5 -5 lines
Diff to previous 1.148 (colored)

Constify initfpstate, and omit initialization for .fs_qsize.

Revision 1.148 / (download) - annotate - [select for diffs], Thu Jun 26 15:17:06 2008 UTC (4 years, 10 months ago) by nakayama
Branch: MAIN
Changes since 1.147: +10 -24 lines
Diff to previous 1.147 (colored)

- remove unused old code.
- avoid use of "<< TSTATE_PSTATE_SHIFT".

Revision 1.147 / (download) - annotate - [select for diffs], Wed Apr 9 15:21:02 2008 UTC (5 years, 1 month ago) by nakayama
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl
Changes since 1.146: +2 -6 lines
Diff to previous 1.146 (colored)

Remove kernel locks around malloc introduced when I added SMP support.

Revision 1.146 / (download) - annotate - [select for diffs], Fri Mar 14 15:39:18 2008 UTC (5 years, 2 months ago) by nakayama
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.145: +26 -5 lines
Diff to previous 1.145 (colored)

Improve FPU state save/clear like x86, idea from OpenBSD.

Revision 1.145 / (download) - annotate - [select for diffs], Wed Oct 24 14:50:40 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-base, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.144: +3 -3 lines
Diff to previous 1.144 (colored)

Make ras_lookup() lockless.

Revision 1.144 / (download) - annotate - [select for diffs], Wed Oct 17 19:57:32 2007 UTC (5 years, 7 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Changes since 1.143: +2 -2 lines
Diff to previous 1.143 (colored)

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.143 / (download) - annotate - [select for diffs], Thu May 17 14:51:32 2007 UTC (6 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.142: +9 -6 lines
Diff to previous 1.142 (colored)

merge yamt-idlelwp branch.  asked by core@.  some ports still needs work.

from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.

Revision 1.142 / (download) - annotate - [select for diffs], Sun Mar 4 06:00:51 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, ppcoea-renovation, mjf-ufs-trans
Changes since 1.141: +10 -10 lines
Diff to previous 1.141 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.141 / (download) - annotate - [select for diffs], Sat Feb 10 18:16:18 2007 UTC (6 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.140: +5 -5 lines
Diff to previous 1.140 (colored)

newlock2: curproc->p_sigctx.ps_sigmask -> curlwp->l_sigmask.

Ok: Andrew Doran <ad@netbsd.org>

Revision 1.140 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:13 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.139: +7 -19 lines
Diff to previous 1.139 (colored)

Merge newlock2 to head.

Revision 1.139 / (download) - annotate - [select for diffs], Fri Oct 20 18:26:26 2006 UTC (6 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.138: +6 -3 lines
Diff to previous 1.138 (colored)

A few -Wextra nits

Revision 1.138 / (download) - annotate - [select for diffs], Mon Oct 16 20:27:40 2006 UTC (6 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.137: +3 -2 lines
Diff to previous 1.137 (colored)

Missing initializer

Revision 1.137 / (download) - annotate - [select for diffs], Mon Sep 25 05:52:34 2006 UTC (6 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.136: +12 -11 lines
Diff to previous 1.136 (colored)

print the cpu number in a bunch of fault handler debug messages.

Revision 1.136 / (download) - annotate - [select for diffs], Mon Sep 18 08:18:47 2006 UTC (6 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: yamt-splraiseipl-base
Branch point for: yamt-splraiseipl
Changes since 1.135: +8 -3 lines
Diff to previous 1.135 (colored)

Lazy FPU handling for the MULTIPROCESSOR case

Revision 1.135 / (download) - annotate - [select for diffs], Thu Sep 14 22:44:18 2006 UTC (6 years, 8 months ago) by he
Branch: MAIN
Changes since 1.134: +4 -4 lines
Diff to previous 1.134 (colored)

Replace CPU_UPAID with cpu_number(), says martin.

Revision 1.134 / (download) - annotate - [select for diffs], Wed Sep 13 11:35:53 2006 UTC (6 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pdpolicy-base9
Changes since 1.133: +8 -9 lines
Diff to previous 1.133 (colored)

SMP cleanup.  provide support for multiple CPUs in DDB.  (SMP itself
is still not working.)

cpu.h:
- add a pointer for DDB regs in SMP environment to struct cpu_info
- remove the #defines for mp_pause_cpus() and mp_resume_cpus()
cpuset.h:
- remove CPUSET_ALL() and rename CPUSET_ALL_BUT() to CPUSET_EXCEPT()
  from petrov.
db_machdep.h:
- rename the members of db_regs_t to be the same as sparc
- change "db_regs_t ddb_regs" to "db_regs_t *ddb_regp" and change
  all references to suit
- redo DDB_REGS to no longer be a pointer to a fixed data structure
  but to one allocated per-cpu when ddb is entered
- move a bunch of prototypes in here
intr.h:
- remove SPARC64_IPI_* macros, no longer used
db_interface.c:
- change "db_regs_t ddb_regs" to "db_regs_t *ddb_regp" and change
  all references to suit
- make "nil" a 64 bit entity
- change the ddb register access methods to work in multiprocessor
  environment, it is now very much like sparc does it
- in kdb_trap() avoid accessing ddb_regp when it is NULL
- update several messages to include the cpu number
- unpause other cpus much later when resuming from ddb
- rename db_lock() to db_lock_cmd(), as the sparc-like code has
  db_lock as a simple lock
- remove "mach cpus" command, and replace it with "mach cpu" (which
  does the same) and also implement "mach cpu N" to switch to
  another cpus saved trapframe
db_trace.c:
- update for the ddb_regs -> ddb_regp change
genassym.cf:
- add TF_KSTACK as offsetof(struct trapframe64, tf_kstack)
ipifuncs.c:
- overhaul extensively
- remove all normal interrupt handlers as IPI's, we now handle
  them all specially in locore.s:interrupt_vector
- add a simplelock around all ipi functions - it's not safe for
  multiple cpus to be sending IPI's to each other right now
- rename sparc64_ipi_pause() to sparc64_ipi_pause_thiscpu() and,
  if DDB is configured, enable it to save the passed-in trapframe
  to a db_regs_t for this cpu's saved DDB registers.
- remove the "ipimask" system (SPARC64_IPI_* macros) and instead
  pass functions directly
- in sparc64_send_ipi() always set the interrupt arguments to 0,
  the address and argument of the to be called function.  (the
  argument right now is the address of ipi_tlb_args variable, and
  part of the reason why only one CPU can send IPI's at a time.)
  don't wait forever for an IPI to complete.  some of this is
  from petrov.
- rename sparc64_ipi_{halt,pause,resume}_cpus() to
  mp_{halt,pause,resume}_cpus()
- new function mp_cpu_is_paused() used to avoid access missing
  saved DDB registers
- actually broadcast the flush in smp_tlb_flush_pte(),
  smp_tlb_flush_ctx() and smp_tlb_flush_all().  the other end may
  not do anything yet in the pte/ctx cases yet...
kgdb_machdep.c:
- rework for changed member names in db_regs_t.
locore.s:
- shave an instruction from syscall_setup() (set + ld -> sethi + ld)
- remove some old dead debug code
- add new sparc64_ipi_halt IPI entry point, it just calls the C
  vector to shutdown.
- add new sparc64_ipi_pause IPI entry point, which just traps into
  the debugger using the normal breakpoint trap.  these cpus usually
  lose the race in db_interface.c:db_suspend_others() and end up
  calling the C vector sparc64_ipi_pause_thiscpu().
- add #if 0'ed code to sparc64_ipi_flush_{pte,ctx}() IPI entry
  points to call the sp_ version of these functions.
- in rft_kernel (return from trap, kernel), check to see if the
  %tpc is at the sparc64_ipi_pause_trap_point and if so, call
  "done" not "retry"
- rework cpu_switch slightly:  save the passed-in lwp instead of
  using the one in curlwp
- in cpu_loadproc(), save the new lwp not the old lwp, to curlwp
- in cpu_initialize(), set %tl to zero as well.  from petrov.
- in cpu_exit(), fix a load register confusion.  from petrov.
- change some "set" in delay branch to "mov".
machdep.c:
- deal with function renames
pmap.c:
- remove a spurious space
trap.c:
- remove unused "trapstats" variable
- add cpu number to a couple of messages

Revision 1.133 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:07 2006 UTC (6 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Changes since 1.132: +4 -4 lines
Diff to previous 1.132 (colored)

Use the LWP cached credentials where sane.

Revision 1.132 / (download) - annotate - [select for diffs], Wed Jul 19 21:11:46 2006 UTC (6 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.131: +7 -2 lines
Diff to previous 1.131 (colored)

- Hold a reference to the process credentials in each struct lwp.
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.

Revision 1.131 / (download) - annotate - [select for diffs], Sun May 14 21:57:13 2006 UTC (7 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.130: +5 -4 lines
Diff to previous 1.130 (colored)

integrate kauth.

Revision 1.130 / (download) - annotate - [select for diffs], Wed Mar 15 18:12:03 2006 UTC (7 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, peter-altq-base, elad-kernelauth-base
Branch point for: peter-altq
Changes since 1.129: +11 -11 lines
Diff to previous 1.129 (colored)

adapt to uvm_fault() interface cleanup: kill the useless 3rd argument

Revision 1.129 / (download) - annotate - [select for diffs], Tue Mar 7 07:21:51 2006 UTC (7 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2
Branch point for: elad-kernelauth
Changes since 1.128: +2 -3 lines
Diff to previous 1.128 (colored)

Syscall debug tracing is handled by trace_enter() / trace_exit().  Change
trace_is_enabled() to return TRUE if SYSCALL_DEBUG is defined, and g/c
all of the SYSCALL_DEBUG handling from individual system call dispatch
routines.

Revision 1.128 / (download) - annotate - [select for diffs], Tue Mar 7 03:32:05 2006 UTC (7 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.127: +2 -4 lines
Diff to previous 1.127 (colored)

Clean up fallout proc_is_traced_p() change:
- proc_is_traced_p() -> trace_is_enabled(), to match trace_enter() and
  trace_exit().
- trace_is_enabled() becomes a real function.
- Remove unnecessary include files from various files that used to care
  about KTRACE and SYSTRACE, but do no more.

Revision 1.127 / (download) - annotate - [select for diffs], Mon Feb 20 19:00:27 2006 UTC (7 years, 2 months ago) by cdi
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy
Changes since 1.126: +4 -6 lines
Diff to previous 1.126 (colored)

Use ANSI-style function definitions and declarations.

Revision 1.126 / (download) - annotate - [select for diffs], Mon Feb 13 21:47:12 2006 UTC (7 years, 3 months ago) by cdi
Branch: MAIN
Changes since 1.125: +6 -6 lines
Diff to previous 1.125 (colored)

ANSIfy: u_intN_t -> uintN_t, remove __P(), fix function definitions.

Revision 1.125 / (download) - annotate - [select for diffs], Sat Feb 11 17:57:32 2006 UTC (7 years, 3 months ago) by cdi
Branch: MAIN
Changes since 1.124: +23 -46 lines
Diff to previous 1.124 (colored)

ANSIfication: u_intN_t -> uintN_t, use ANSI function declarations/definitions
instead of K&R ones.

Revision 1.124 / (download) - annotate - [select for diffs], Sat Dec 24 20:07:37 2005 UTC (7 years, 4 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.123 / (download) - annotate - [select for diffs], Sun Dec 11 12:19:15 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

merge ktrace-lwp.

Revision 1.122 / (download) - annotate - [select for diffs], Thu Oct 27 20:43:30 2005 UTC (7 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.121: +4 -4 lines
Diff to previous 1.121 (colored)

Follow the lead of the sparc port:
 - move md_flags back to mdproc, because we only have per-proc flags
   currently
 - implement cpu_proc_fork() to init p_md.md_flags on fork

Revision 1.121 / (download) - annotate - [select for diffs], Sun Jul 10 00:50:16 2005 UTC (7 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.120: +3 -470 lines
Diff to previous 1.120 (colored)

Re-factor syscall, and make it use syscall_{plain,fancy}.

Revision 1.120 / (download) - annotate - [select for diffs], Tue May 31 00:53:02 2005 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.119: +5 -5 lines
Diff to previous 1.119 (colored)

- sprinkle const
- avoid shadowed variables

Revision 1.119 / (download) - annotate - [select for diffs], Sat Feb 12 09:38:28 2005 UTC (8 years, 3 months ago) by nakayama
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, matt-timespec, kent-audio2-base
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

Make 32-bit kernels with DIAGNOSTIC compile again.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Jan 29 22:42:19 2005 UTC (8 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.117: +15 -2 lines
Diff to previous 1.117 (colored)

If we get a kernel data access fault without curlwp, we would panic later
in uvmfault with a meaningless messages - instead, panic right away with
a helpfull message. Or course, neither of this should ever happen.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Aug 28 17:53:02 2004 UTC (8 years, 8 months ago) by jdolecek
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.116: +10 -17 lines
Diff to previous 1.116 (colored)

use uvm_grow() to update stack segment size on stack page fault instead
of MD code

Revision 1.116 / (download) - annotate - [select for diffs], Sun Mar 14 01:08:48 2004 UTC (9 years, 2 months ago) by cl
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.115: +3 -4 lines
Diff to previous 1.115 (colored)

add kernel part of concurrency support for SA on MP systems
- move per VP data into struct sadata_vp referenced from l->l_savp
  * VP id
  * lock on VP data
  * LWP on VP
  * recently blocked LWP on VP
  * queue of LWPs woken which ran on this VP before sleep
  * faultaddr
  * LWP cache for upcalls
  * upcall queue
- add current concurrency and requested concurrency variables
- make process exit run LWP on all VPs
- make signal delivery consider all VPs
- make timer events consider all VPs
- add sa_newsavp to allocate new sadata_vp structure
- add sa_increaseconcurrency to prepare new VP
- make sys_sa_setconcurrency request new VP or wakeup idle VP
- make sa_yield lower current concurrency
- set sa_cpu = VP id in upcalls
- maintain cached LWPs per VP

Revision 1.115 / (download) - annotate - [select for diffs], Fri Mar 12 13:27:03 2004 UTC (9 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.114: +3 -4 lines
Diff to previous 1.114 (colored)

report SIGSEGV/SEGV_ACCERR if code execution on stack is attempted,
tested by Martin Husemann

Revision 1.114 / (download) - annotate - [select for diffs], Sun Jan 18 19:41:07 2004 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.113: +3 -7 lines
Diff to previous 1.113 (colored)

Support RAS for 32bit kernels too.

Revision 1.113 / (download) - annotate - [select for diffs], Sun Jan 18 17:14:46 2004 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.112: +4 -29 lines
Diff to previous 1.112 (colored)

Use mi_userret() to do most of our userret() work.

Revision 1.112 / (download) - annotate - [select for diffs], Fri Jan 16 09:10:10 2004 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored)

Minor comment fix.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Jan 16 05:03:02 2004 UTC (9 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.110: +4 -4 lines
Diff to previous 1.110 (colored)

clean up a little:
- delete ktrsyscall32()
- add a check #ifdef _LP64 to do the conversion if P_32 is set to the
standard ktrsyscall()
- add a couple of similar _LP64/P_32 checks to the systrace code.

this should get systrace working for 32 bit apps as well as complete
ktrace support for "trace_enter/trace_exit" using platforms such as amd64.

XXX: systrace isn't supported on sparc64 currently... (it doesn't use
trace_enter/trace_exit, or have it's own calls to systrace_xxx()...)

Revision 1.110 / (download) - annotate - [select for diffs], Thu Jan 15 14:57:20 2004 UTC (9 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.109: +14 -5 lines
Diff to previous 1.109 (colored)

call ktrsyscall32() for 64 bit kernels and 32 bit syscalls.

Revision 1.109 / (download) - annotate - [select for diffs], Sun Jan 11 15:56:28 2004 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.108: +6 -2 lines
Diff to previous 1.108 (colored)

Avoid ras_lookup call if compiling 32bit kernel (which does not have
__HAVE_RAS). Avoids a compile failure pointed out by Juergen Hannken-Illjes.

Revision 1.108 / (download) - annotate - [select for diffs], Tue Jan 6 21:35:19 2004 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.107: +11 -7 lines
Diff to previous 1.107 (colored)

Implement restartable atomic sequences (RAS) for sparc64.

Revision 1.107 / (download) - annotate - [select for diffs], Fri Jan 2 20:49:18 2004 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.106: +2 -4 lines
Diff to previous 1.106 (colored)

Don't set ksi_errno - other archs don't bother, so avoid being different.
OK'd by Christos. This makes sparc64 pass the siginfo regression tests.

Revision 1.106 / (download) - annotate - [select for diffs], Wed Dec 10 20:09:05 2003 UTC (9 years, 5 months ago) by petrov
Branch: MAIN
Changes since 1.105: +6 -5 lines
Diff to previous 1.105 (colored)

Fix strict-aliasing compiler warning.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Dec 5 21:49:00 2003 UTC (9 years, 5 months ago) by petrov
Branch: MAIN
Changes since 1.104: +4 -15 lines
Diff to previous 1.104 (colored)

Don't convert syscall args for tracing 32bit binaries on 64bit
kernel. Found and suggested by David Light. Fixes port-sparc64/23473.

Revision 1.104 / (download) - annotate - [select for diffs], Wed Dec 3 20:23:41 2003 UTC (9 years, 5 months ago) by petrov
Branch: MAIN
Changes since 1.103: +18 -96 lines
Diff to previous 1.103 (colored)

syscall clean up from ifdeffed out code.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Nov 25 05:14:58 2003 UTC (9 years, 5 months ago) by cdi
Branch: MAIN
Changes since 1.102: +16 -20 lines
Diff to previous 1.102 (colored)

Use per-cpu pcb, curlwp and fplwp rather than global ones. This brings
GENERIC.MP configuration to a usable state.

Approved by petrov@.

Revision 1.102 / (download) - annotate - [select for diffs], Mon Nov 24 20:41:16 2003 UTC (9 years, 5 months ago) by cdi
Branch: MAIN
Changes since 1.101: +12 -2 lines
Diff to previous 1.101 (colored)

Call 'proc_trampoline_mp' from 'proc_trampoline' in a multiprocessor
configuration. Fix process locking. Approved by petrov@.

Revision 1.101 / (download) - annotate - [select for diffs], Sun Nov 9 16:41:53 2003 UTC (9 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored)

bzero/bcopy -> memset/memcpy

Revision 1.100 / (download) - annotate - [select for diffs], Tue Nov 4 14:24:25 2003 UTC (9 years, 6 months ago) by pk
Branch: MAIN
Changes since 1.99: +6 -4 lines
Diff to previous 1.99 (colored)

* Set ksi_code to SI_NOINFO where we used to return zero.
* Fill in ksi_errno if we have an error code to report.

Revision 1.99 / (download) - annotate - [select for diffs], Tue Nov 4 14:14:28 2003 UTC (9 years, 6 months ago) by pk
Branch: MAIN
Changes since 1.98: +2 -26 lines
Diff to previous 1.98 (colored)

Remove !__HAVE_SIGINFO transitional code.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Nov 1 01:38:46 2003 UTC (9 years, 6 months ago) by cl
Branch: MAIN
Changes since 1.97: +6 -2 lines
Diff to previous 1.97 (colored)

Avoid sneaking past signal delivery in sa_upcall_userret():
generate unblocked upcalls in sa_unblock_userret(), before signal
delivery/p_userret handling in userret().

Also defer getting state for preempted upcalls because on some ports
preemption can happen between sa_unblock_userret() and sa_upcall_userret().

Revision 1.97 / (download) - annotate - [select for diffs], Mon Oct 27 00:15:24 2003 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.96: +4 -4 lines
Diff to previous 1.96 (colored)

Provide the correct trap address to userland.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Oct 26 19:17:41 2003 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.95: +3 -6 lines
Diff to previous 1.95 (colored)

use curproc, instead of homebrew test.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Oct 12 19:48:52 2003 UTC (9 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.94: +13 -9 lines
Diff to previous 1.94 (colored)

Simplify fpu_cleanup() by having it return a code to indicate that a SIGFPE
is to be posted; let trap() deal with constructing the siginfo structure.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Oct 12 19:08:17 2003 UTC (9 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.93: +136 -26 lines
Diff to previous 1.93 (colored)

Prepare for move to SIGINFO framework.

Revision 1.93 / (download) - annotate - [select for diffs], Tue Sep 16 14:00:27 2003 UTC (9 years, 8 months ago) by cl
Branch: MAIN
Changes since 1.92: +10 -3 lines
Diff to previous 1.92 (colored)

add MD part of SA/pthread pagefault handling on sparc64

Revision 1.92 / (download) - annotate - [select for diffs], Tue Jul 15 03:36:10 2003 UTC (9 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.91: +4 -1 lines
Diff to previous 1.91 (colored)

__KERNEL_RCSID()

Revision 1.91 / (download) - annotate - [select for diffs], Sun Jun 29 22:29:02 2003 UTC (9 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.90: +5 -5 lines
Diff to previous 1.90 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:09 2003 UTC (9 years, 10 months ago) by darrenr
Branch: MAIN
Changes since 1.89: +6 -6 lines
Diff to previous 1.89 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.89 / (download) - annotate - [select for diffs], Thu May 15 12:56:17 2003 UTC (10 years ago) by dsl
Branch: MAIN
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

ktrace rval[1] - in order to get both fd numbers for pipe()

Revision 1.88 / (download) - annotate - [select for diffs], Tue Jan 21 20:42:03 2003 UTC (10 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.87: +2 -1 lines
Diff to previous 1.87 (colored)

Rename the DIV0 traps to avoid confusion with the usage on the sparc
port: T_IDIV0 is the hardware trap generated on integer division by
zero, T_DIV0 is the software trap used to signal the same event.

This makes 32 bit kernels able to run sparc code with the v7 multiply/
divide library, as well as with the v8 one.

Revision 1.87 / (download) - annotate - [select for diffs], Sat Jan 18 06:55:26 2003 UTC (10 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.86: +223 -129 lines
Diff to previous 1.86 (colored)

Merge the nathanw_sa branch.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Dec 23 16:26:13 2002 UTC (10 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.85: +4 -4 lines
Diff to previous 1.85 (colored)

update for added ktrsyscall() argument

XXX this should probably be converted to use trace_enter()/trace_exit(),
XXX the current code doesn't support systrace

Revision 1.85 / (download) - annotate - [select for diffs], Sat Nov 16 07:40:40 2002 UTC (10 years, 6 months ago) by uebayasi
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Branch point for: gmcgarry_ucred
Changes since 1.84: +4 -4 lines
Diff to previous 1.84 (colored)

Fix compilation errors introduced by recent trace_enter()/ktrsyscall() changes.

Provided by FUKAUMI Naoki <naoki at fukaumi dot org> in kern/19070.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Sep 29 04:12:03 2002 UTC (10 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.83: +2 -17 lines
Diff to previous 1.83 (colored)

remove some vestigial FPU and cache code that's not need on ultrasparcs.
misc tidiness.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Sep 22 07:19:52 2002 UTC (10 years, 7 months ago) by chs
Branch: MAIN
Changes since 1.82: +190 -176 lines
Diff to previous 1.82 (colored)

many improvements:
 - use struct vm_page_md for attaching pv entries to struct vm_page
 - change pseg_set()'s return value to indicate whether the spare page
   was used as an L2 or L3 PTP.
 - use a pool for pv entries instead of malloc().
 - put PTPs on a list attached to the pmap so we can free them
   more efficiently (by just walking the list) in pmap_destroy().
 - use the new pmap_remove_all() interface to avoid flushing the cache and TLB
   for each pmap_remove() that's done as we are tearing down an address space.
 - in pmap_enter(), handle replacing an existing mapping more efficiently
   than just calling pmap_remove() on it.  also, skip flushing the
   TSB and TLB if there was no previous mapping, since there can't be
   anything we need to flush.  also, preload the TSB if we're pre-setting
   the mod/ref bits.
 - allocate hardware contexts like the MIPS pmap:
   allocate them all sequentially without reuse, then once we run out
   just invalidate all user TLB entries and flush the entire L1 dcache.
 - fix pmap_extract() for the case where the va is not page-aligned and
   nothing is mapped there.
 - fix calculation of TSB size.  it was comparing physmem (which is
   in units of pages) to constants that only make sense if they are
   in units of bytes.
 - avoid sleeping in pmap_enter(), instead let the caller do it.
 - use pmap_kenter_pa() instead of pmap_enter() where appropriate.
 - remove code to handle impossible cases in various functions.
 - tweak asm code to pipeline a little better.
 - remove many unnecessary spls and membars.
 - lots of code cleanup.
 - no doubt other stuff that I've forgotten.

the result of all this is that a fork+exit microbenchmark is 34% faster
and a fork+exec+exit microbenchmark is 28% faster.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Sep 11 20:19:45 2002 UTC (10 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.81: +4 -1 lines
Diff to previous 1.81 (colored)

Make kernels without KTRACE work.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Jun 25 17:37:03 2002 UTC (10 years, 10 months ago) by eeh
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.80: +2 -3 lines
Diff to previous 1.80 (colored)

Fix ktrace call for 32-bit kernels.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Jun 19 23:32:01 2002 UTC (10 years, 11 months ago) by eeh
Branch: MAIN
Changes since 1.79: +23 -27 lines
Diff to previous 1.79 (colored)

Get ktrace working once more.

Revision 1.79 / (download) - annotate - [select for diffs], Wed Jun 19 04:58:32 2002 UTC (10 years, 11 months ago) by grant
Branch: MAIN
Changes since 1.78: +1 -2 lines
Diff to previous 1.78 (colored)

remove extraneous #endif from last commit, make this compile again.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Jun 17 16:33:18 2002 UTC (10 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.77: +15 -18 lines
Diff to previous 1.77 (colored)

MD systrace gluons.

Revision 1.77 / (download) - annotate - [select for diffs], Tue May 14 02:34:14 2002 UTC (11 years ago) by eeh
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.76: +6 -4 lines
Diff to previous 1.76 (colored)

Trapframes only have locals or ins if the kernel is compiled DEBUG.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Feb 14 07:08:16 2002 UTC (11 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Changes since 1.75: +2 -3 lines
Diff to previous 1.75 (colored)

allow writing to write-only mappings.  fixes PR 3493.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Dec 12 19:14:47 2001 UTC (11 years, 5 months ago) by petrov
Branch: MAIN
Changes since 1.74: +7 -1 lines
Diff to previous 1.74 (colored)

initialize all fpu registers and don't panic on user 'privileged action'

Revision 1.74 / (download) - annotate - [select for diffs], Sat Sep 22 00:59:30 2001 UTC (11 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: nathanw_sa
Changes since 1.73: +1 -3 lines
Diff to previous 1.73 (colored)

don't print the alignment fault twice.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Aug 9 01:03:01 2001 UTC (11 years, 9 months ago) by eeh
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.72: +20 -14 lines
Diff to previous 1.72 (colored)

Clean up some debug printfs.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Aug 8 18:30:46 2001 UTC (11 years, 9 months ago) by eeh
Branch: MAIN
Changes since 1.71: +159 -217 lines
Diff to previous 1.71 (colored)

Clean up the trap code to handle the changes cause by supporting non-faulting
accesses.  Also change the parameter order so trap frames are easy to find.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jul 23 17:19:57 2001 UTC (11 years, 9 months ago) by eeh
Branch: MAIN
Changes since 1.70: +1 -35 lines
Diff to previous 1.70 (colored)

Get rid of some debug code that really isn't all that useful any more.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Jul 19 23:33:09 2001 UTC (11 years, 10 months ago) by eeh
Branch: MAIN
Changes since 1.69: +3 -1 lines
Diff to previous 1.69 (colored)

Print out PID and command name for alignment faults.

Revision 1.69 / (download) - annotate - [select for diffs], Thu Jul 5 06:34:56 2001 UTC (11 years, 10 months ago) by eeh
Branch: MAIN
Branch point for: kqueue
Changes since 1.68: +20 -13 lines
Diff to previous 1.68 (colored)

New fpu handling code.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Jun 21 00:10:49 2001 UTC (11 years, 11 months ago) by eeh
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

Allow probes to kernel addresses that generate access errors not panic the machine.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Jun 7 15:31:16 2001 UTC (11 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

print p_pid & p_comm for alignment errors.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Jun 6 21:06:52 2001 UTC (11 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.65: +8 -3 lines
Diff to previous 1.65 (colored)

make a NETBSD32 stack check LKM friendly.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Jun 3 03:15:57 2001 UTC (11 years, 11 months ago) by chs
Branch: MAIN
Changes since 1.64: +4 -1 lines
Diff to previous 1.64 (colored)

clear and restore pcb_onfault around calling uvm_fault(),
so that bugs in the fault-handling code will panic sooner.

Revision 1.64 / (download) - annotate - [select for diffs], Fri May 18 21:50:45 2001 UTC (12 years ago) by mrg
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

cross compile friendly.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Mar 15 06:10:50 2001 UTC (12 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.62: +21 -20 lines
Diff to previous 1.62 (colored)

eliminate the KERN_* error codes in favor of the traditional E* codes.
the mapping is:

KERN_SUCCESS			0
KERN_INVALID_ADDRESS		EFAULT
KERN_PROTECTION_FAILURE		EACCES
KERN_NO_SPACE			ENOMEM
KERN_INVALID_ARGUMENT		EINVAL
KERN_FAILURE			various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE		ENOMEM
KERN_NOT_RECEIVER		<unused>
KERN_NO_ACCESS			<unused>
KERN_PAGES_LOCKED		<unused>

Revision 1.62 / (download) - annotate - [select for diffs], Sun Feb 11 00:39:38 2001 UTC (12 years, 3 months ago) by eeh
Branch: MAIN
Changes since 1.61: +18 -8 lines
Diff to previous 1.61 (colored)

Add support for COMPAT_SVR4_32.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Feb 5 12:45:38 2001 UTC (12 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.60: +6 -5 lines
Diff to previous 1.60 (colored)

make sure 32 bit addresses are truncated properly.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Dec 29 17:07:12 2000 UTC (12 years, 4 months ago) by eeh
Branch: MAIN
Changes since 1.59: +10 -7 lines
Diff to previous 1.59 (colored)

Update for new signal structures in struct proc.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Dec 10 19:52:17 2000 UTC (12 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.58: +16 -34 lines
Diff to previous 1.58 (colored)

Cleanup types in DEBUG printf()s.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Dec 7 01:05:55 2000 UTC (12 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.57: +15 -8 lines
Diff to previous 1.57 (colored)

Fix a bug in rwindow_save() that always wrote out window 0 in 64-bit
code and caused problems with ksh.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Dec 6 01:47:51 2000 UTC (12 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.56: +102 -80 lines
Diff to previous 1.56 (colored)

fix warnings in DEBUG & DIAGNSTIC code.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Dec 4 16:01:20 2000 UTC (12 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.55: +24 -17 lines
Diff to previous 1.55 (colored)

Warning police. Mostly useless format warnings. Switch Makefile for
kernel compiles to the warning flags that other ports also use.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Dec 2 03:57:26 2000 UTC (12 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.54: +5 -5 lines
Diff to previous 1.54 (colored)

const poison to avoid a warning.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Sep 28 19:56:13 2000 UTC (12 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.53: +9 -8 lines
Diff to previous 1.53 (colored)

Separate user and kernel address spaces and move the kernel down to
0x0000000001000000 -- 0x00000000f0000000, below the PROM where the
PROM thinks we should be.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Aug 8 19:59:41 2000 UTC (12 years, 9 months ago) by tv
Branch: MAIN
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored)

sizeof(fmtstring) + 8 wasn't enough for the string; that won't cope with the
printed version.  Make a little more room for the bitmask_snprintf() call.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Aug 7 18:46:30 2000 UTC (12 years, 9 months ago) by tv
Branch: MAIN
Changes since 1.51: +26 -13 lines
Diff to previous 1.51 (colored)

%b -> bitmask_snprintf()

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jul 20 23:29:50 2000 UTC (12 years, 10 months ago) by eeh
Branch: MAIN
Changes since 1.50: +15 -35 lines
Diff to previous 1.50 (colored)

Now we're running 64-bit userland don't panic the system if a process steps
into the address space hole.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jul 13 16:44:03 2000 UTC (12 years, 10 months ago) by pk
Branch: MAIN
CVS Tags: mrg-merge-1-5-top
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

printf() format for 64-bit integers `tf_pc' and `tf_npc'.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jul 13 06:30:16 2000 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.48: +1 -2 lines
Diff to previous 1.48 (colored)

remove memreg.h.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jul 2 12:39:01 2000 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

whoops; turn off trapdebug again.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Jun 29 07:38:01 2000 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.46: +1 -3 lines
Diff to previous 1.46 (colored)

remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jun 26 14:21:01 2000 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.45: +8 -8 lines
Diff to previous 1.45 (colored)

remove/move more mach vm header files:

	<vm/pglist.h> -> <uvm/uvm_pglist.h>
	<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
	<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
	<vm/vm_object.h> -> nothing
	<vm/vm_pager.h> -> into <uvm/uvm_pager.h>

also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Jun 24 04:24:10 2000 UTC (12 years, 10 months ago) by eeh
Branch: MAIN
Changes since 1.44: +1 -6 lines
Diff to previous 1.44 (colored)

masterpaddr is gone.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Jun 19 23:30:36 2000 UTC (12 years, 11 months ago) by eeh
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.43: +5 -4 lines
Diff to previous 1.43 (colored)

Have separate data and text segments, make text read-only.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Jun 18 08:13:45 2000 UTC (12 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

catch up with fpu changes.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Jun 6 18:52:45 2000 UTC (12 years, 11 months ago) by soren
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

defopt SYSCALL_DEBUG.

Revision 1.41 / (download) - annotate - [select for diffs], Sat May 27 00:40:41 2000 UTC (12 years, 11 months ago) by sommerfeld
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.40: +6 -6 lines
Diff to previous 1.40 (colored)

Reduce use of curproc in several places:

 - Change ktrace interface to pass in the current process, rather than
p->p_tracep, since the various ktr* function need curproc anyway.

 - Add curproc as a parameter to mi_switch() since all callers had it
handy anyway.

 - Add a second proc argument for inferior() since callers all had
curproc handy.

Also, miscellaneous cleanups in ktrace:

 - ktrace now always uses file-based, rather than vnode-based I/O
(simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD.
Do non-blocking I/O, and yield a finite number of times when receiving
EWOULDBLOCK before giving up.

 - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.

 - simplify interface to ktrwrite()

Revision 1.40 / (download) - annotate - [select for diffs], Fri May 26 21:20:22 2000 UTC (12 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

First sweep at scheduler state cleanup.  Collect MI scheduler
state into global and per-CPU scheduler state:

	- Global state: sched_qs (run queues), sched_whichqs (bitmap
	  of non-empty run queues), sched_slpque (sleep queues).
	  NOTE: These may collectively move into a struct schedstate
	  at some point in the future.

	- Per-CPU state, struct schedstate_percpu: spc_runtime
	  (time process on this CPU started running), spc_flags
	  (replaces struct proc's p_schedflags), and
	  spc_curpriority (usrpri of processes on this CPU).

	- Every platform must now supply a struct cpu_info and
	  a curcpu() macro.  Simplify existing cpu_info declarations
	  where appropriate.

	- All references to per-CPU scheduler state now made through
	  curcpu().  NOTE: this will likely be adjusted in the future
	  after further changes to struct proc are made.

Tested on i386 and Alpha.  Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.

Revision 1.39 / (download) - annotate - [select for diffs], Wed May 24 16:48:43 2000 UTC (12 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.38: +3 -12 lines
Diff to previous 1.38 (colored)

Use preempt(), not an open-coded equivalent (which won't be
equivalent for long).

Revision 1.38 / (download) - annotate - [select for diffs], Tue Apr 18 02:07:57 2000 UTC (13 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.37: +47 -11 lines
Diff to previous 1.37 (colored)

Turn off traptrace before printing a panic message so we don't flush the useful
traces out with the printf guts, and wrap some lines at 80 columns.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Apr 10 13:34:20 2000 UTC (13 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

Get a kernel without DDB to build.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Apr 6 13:32:49 2000 UTC (13 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)

avoid some more compiler warnings, and fix a couple of errors.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jan 10 03:53:22 2000 UTC (13 years, 4 months ago) by eeh
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.34: +6 -3 lines
Diff to previous 1.34 (colored)

Add debugger single-stepping and fix interrupt dispatch bugs.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Dec 30 16:57:27 1999 UTC (13 years, 4 months ago) by eeh
Branch: MAIN
Changes since 1.33: +90 -49 lines
Diff to previous 1.33 (colored)

Revamp 32-bit syscall entry points.
Change in-kernel FPU usage conventions.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Dec 5 11:56:36 1999 UTC (13 years, 5 months ago) by ragge
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

clrnd()/clbase() discarding.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Nov 20 18:12:00 1999 UTC (13 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.31: +7 -1 lines
Diff to previous 1.31 (colored)

Add handler for T_FLUSHWIN trap in case old code makes use of it.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Nov 6 20:24:51 1999 UTC (13 years, 6 months ago) by eeh
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.30: +33 -41 lines
Diff to previous 1.30 (colored)

Expliticly use 64-bit and 32-bit types.  And get rid of ftype.  Aparently all
the other ports have.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Sep 17 20:07:17 1999 UTC (13 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.29: +1 -3 lines
Diff to previous 1.29 (colored)

Centralize the declaration and clearing of `cold'.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 30 02:12:37 1999 UTC (14 years, 1 month ago) by eeh
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

include compat_sparc32.h->compat_netbsd32.h

Revision 1.28 / (download) - annotate - [select for diffs], Sun Mar 28 19:01:03 1999 UTC (14 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.27: +20 -22 lines
Diff to previous 1.27 (colored)

Fix fault handling code to correctly report access_type and fault_type
and get rid of pmap_enter_phys().

Revision 1.27 / (download) - annotate - [select for diffs], Sun Mar 28 16:01:19 1999 UTC (14 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.26: +4 -1 lines
Diff to previous 1.26 (colored)

Fix ref counting.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:14 1999 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.25: +19 -49 lines
Diff to previous 1.25 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Mar 18 04:56:03 1999 UTC (14 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.24: +10 -2 lines
Diff to previous 1.24 (colored)

if uvm_fault() fails with KERN_RESOURCE_SHORTAGE, send a SIGKILL
and print a message about it.  this will be used to recover from
out-of-swap conditions.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Mar 18 03:25:55 1999 UTC (14 years, 2 months ago) by eeh
Branch: MAIN
Changes since 1.23: +5 -2 lines
Diff to previous 1.23 (colored)

Fix problem w/FPU use in the kernel.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Feb 28 00:26:46 1999 UTC (14 years, 2 months ago) by eeh
Branch: MAIN
Changes since 1.22: +19 -20 lines
Diff to previous 1.22 (colored)

Use block load/store in pmap_zero_page()/pmap_copy_page().

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jan 31 09:21:19 1999 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

retire _LP64; use compiler provided __arch64__, but still defined _LP64 where we used to anyway.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 14 16:18:47 1998 UTC (14 years, 5 months ago) by kleink
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Also need to initialize the queue length of a newly allocated fpstate.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Nov 24 12:55:56 1998 UTC (14 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

remove fixalign prototype, it is now elsewhere

Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 11 06:43:51 1998 UTC (14 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +4 -3 lines
Diff to previous 1.18 (colored)

Changes to support fork_kthread():
- cpu_set_kpc() now takes void *arg third argument, passed to the
  entry point.
- cpu_fork() allows parent to be non-curproc iff parent is proc0.
  When forking non-curproc, assume its state has already been saved.
- Adjust various pieces of machine-dependent code to account of all of this.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Oct 8 02:31:41 1998 UTC (14 years, 7 months ago) by eeh
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.17: +6 -8 lines
Diff to previous 1.17 (colored)

Fix more syscall32 and signal breakage.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Sep 22 02:48:45 1998 UTC (14 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.16: +87 -337 lines
Diff to previous 1.16 (colored)

More fixup in the signal area.

64-bit syscall cleanup.

Add emulation for some new FPU insns: conversion to 64-bit long int and
conditional moves.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Sep 13 16:02:49 1998 UTC (14 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.15: +17 -16 lines
Diff to previous 1.15 (colored)

Fixup signal changes (hopefully).  However SUN_COMPAT is likely broken by
this and I don't know how to fix it.

We can now exec a 64-bit init through a really ugly hack (don't ask.)

Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 11 00:17:00 1998 UTC (14 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.14: +10 -24 lines
Diff to previous 1.14 (colored)

Add labels for the compat_sparc32 signal trampoline and break -- er -- fix
suword and fuword.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Sep 7 23:49:21 1998 UTC (14 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.13: +69 -19 lines
Diff to previous 1.13 (colored)

Fixup for 32-bit and 64-bit syscalls.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 7 18:23:54 1998 UTC (14 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.12: +46 -16 lines
Diff to previous 1.12 (colored)

Fix problems copying in extended syscall arguments.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Sep 6 21:53:43 1998 UTC (14 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

32-bit fixup.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Sep 5 23:57:29 1998 UTC (14 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.10: +31 -32 lines
Diff to previous 1.10 (colored)

It slices.  It dices.  It does everything except exec a sparc32_compat init.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Sep 2 05:51:40 1998 UTC (14 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.9: +18 -18 lines
Diff to previous 1.9 (colored)

Periodic update: now starts probing devices.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 30 15:32:19 1998 UTC (14 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.8: +117 -61 lines
Diff to previous 1.8 (colored)

Some more 64-bit cleanup.  Now everything compiles.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 27 06:23:32 1998 UTC (14 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Add 64-bit pmap support:

Moved from a two level 512/1024 entry setup mapping 32 (9/10/13) bits
respectively to a three level 1024/1024/1024 entry setup mapping 43
(10/10/10/13) bits.  In 32-bit mode we waste about 1/12 pages mapping the high
11 bits.  We also only manage 43 of the possible 44 bits of virtual address
space, wasting half of it.  Oh well, maybe we'll do better next revision.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Aug 26 12:41:48 1998 UTC (14 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: PMAP32
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

deal with no DDB

Revision 1.6 / (download) - annotate - [select for diffs], Thu Aug 13 02:10:48 1998 UTC (14 years, 9 months ago) by eeh
Branch: MAIN
Changes since 1.5: +29 -28 lines
Diff to previous 1.5 (colored)

Merge paddr_t changes into the main branch.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 7 03:05:05 1998 UTC (14 years, 10 months ago) by eeh
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.4: +47 -1 lines
Diff to previous 1.4 (colored)

General update:

	Added genassym.cf
	Removed lderr which should never have gotten in
	Removed lots of dead code from locore.s
	Added some softint stuff to intr.c
	Added support for halt -p
	esp and le both use bus_dmamap_*() functions now
		instead of kdvma_mapin()
	groundwork for PCI (but we still have no drivers for
		any sun4u PCI devices)

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 4 22:18:42 1998 UTC (14 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

defopt DDB.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 26 00:08:42 1998 UTC (14 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

defopt COMPAT_SVR4

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jun 25 21:19:19 1998 UTC (14 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

defopt KTRACE

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jun 20 04:58:52 1998 UTC (14 years, 11 months ago) by eeh
Branch: MAIN

Initial revision

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>