The NetBSD Project

CVS log for src/sys/arch/sparc64/sparc64/locore.s

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.434 / (download) - annotate - [select for diffs], Sat Feb 17 19:36:07 2024 UTC (11 days, 18 hours ago) by palle
Branch: MAIN
CVS Tags: HEAD
Changes since 1.433: +2 -2 lines
Diff to previous 1.433 (colored)

Ensure that the size of the stack is properly specified (2*USPACE) so it matches the allocation of stack pages done in pmap_bootstrap(). If this is not properly in sync, then the stack pointer may end up in the redzone right before the stack causing mmu faults. This issue has been observed on a T2000 (sun4v) system while probing the devices (pci/ebus/com) during bootstrap

Revision 1.411.2.1 / (download) - annotate - [select for diffs], Mon Jul 31 13:56:15 2023 UTC (7 months ago) by martin
Branch: netbsd-8
Changes since 1.411: +24 -1 lines
Diff to previous 1.411 (colored) next main 1.412 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1859):

	sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
	sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
	sys/arch/aarch64/aarch64/locore.S: revision 1.91
	sys/arch/mips/include/asm.h: revision 1.74
	sys/arch/hppa/include/cpu.h: revision 1.13
	sys/arch/arm/arm/armv6_start.S: revision 1.38
	 (applied also to sys/arch/arm/cortex/a9_mpsubr.S,
	 sys/arch/arm/cortex/a9_mpsubr.S,
	 sys/arch/arm/cortex/cortex_init.S)
	sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
	sys/arch/mips/mips/locore.S: revision 1.229
	sys/arch/alpha/include/asm.h: revision 1.45
	 (applied to sys/arch/alpha/alpha/multiproc.s)
	sys/arch/sparc64/sparc64/locore.s: revision 1.432
	sys/arch/vax/vax/subr.S: revision 1.42
	sys/arch/mips/mips/locore_mips3.S: revision 1.116
	sys/arch/ia64/ia64/machdep.c: revision 1.44
	sys/arch/arm/arm32/cpuswitch.S: revision 1.106
	sys/arch/sparc/sparc/locore.s: revision 1.284
	(all via patch)

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.

Revision 1.421.2.1 / (download) - annotate - [select for diffs], Mon Jul 31 13:44:16 2023 UTC (7 months ago) by martin
Branch: netbsd-9
Changes since 1.421: +24 -1 lines
Diff to previous 1.421 (colored) next main 1.422 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1676):

	sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
	sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
	sys/arch/aarch64/aarch64/locore.S: revision 1.91
	sys/arch/mips/include/asm.h: revision 1.74
	sys/arch/hppa/include/cpu.h: revision 1.13
	sys/arch/arm/arm/armv6_start.S: revision 1.38
	sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
	sys/arch/mips/mips/locore.S: revision 1.229
	sys/arch/aarch64/aarch64/cpuswitch.S: revision 1.40
	sys/arch/alpha/include/asm.h: revision 1.45
	sys/arch/sparc64/sparc64/locore.s: revision 1.432
	sys/arch/vax/vax/subr.S: revision 1.42
	sys/arch/mips/mips/locore_mips3.S: revision 1.116
	sys/arch/ia64/ia64/machdep.c: revision 1.44
	sys/arch/arm/arm32/cpuswitch.S: revision 1.106
	sys/arch/sparc/sparc/locore.s: revision 1.284
	(all via patch)

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.

Revision 1.431.4.1 / (download) - annotate - [select for diffs], Mon Jul 31 13:36:31 2023 UTC (7 months ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.431: +24 -1 lines
Diff to previous 1.431 (colored) next main 1.432 (colored)

Pull up following revision(s) (requested by riastradh in ticket #264):

	sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
	sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
	sys/arch/aarch64/aarch64/locore.S: revision 1.91
	sys/arch/mips/include/asm.h: revision 1.74
	sys/arch/hppa/include/cpu.h: revision 1.13
	sys/arch/arm/arm/armv6_start.S: revision 1.38
	sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
	sys/arch/mips/mips/locore.S: revision 1.229
	sys/arch/aarch64/aarch64/cpuswitch.S: revision 1.40
	sys/arch/alpha/include/asm.h: revision 1.45
	sys/arch/sparc64/sparc64/locore.s: revision 1.432
	sys/arch/vax/vax/subr.S: revision 1.42
	sys/arch/mips/mips/locore_mips3.S: revision 1.116
	sys/arch/riscv/riscv/cpu_switch.S: revision 1.3
	sys/arch/ia64/ia64/machdep.c: revision 1.44
	sys/arch/arm/arm32/cpuswitch.S: revision 1.106
	sys/arch/sparc/sparc/locore.s: revision 1.284

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

riscv: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.

Revision 1.433 / (download) - annotate - [select for diffs], Wed Mar 1 08:18:39 2023 UTC (12 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.432: +8 -2 lines
Diff to previous 1.432 (colored)

sparc64: Optimization: Omit needless membar when triggering softint.

When we are triggering a softint, it can't already hold any mutexes.
So any path to mutex_exit(mtx) must go via mutex_enter(mtx), which is
always done with atomic r/m/w, and we need not issue any explicit
barrier between ci->ci_curlwp = softlwp and a potential load of
mtx->mtx_owner in mutex_exit.

PR kern/57240

XXX pullup-8
XXX pullup-9
XXX pullup-10

Revision 1.432 / (download) - annotate - [select for diffs], Thu Feb 23 14:56:56 2023 UTC (12 months ago) by riastradh
Branch: MAIN
Changes since 1.431: +24 -1 lines
Diff to previous 1.431 (colored)

sparc64: Add missing barriers in cpu_switchto.

Details in comments.

PR kern/57240

XXX pullup-8
XXX pullup-9
XXX pullup-10

Revision 1.431 / (download) - annotate - [select for diffs], Tue Jul 5 20:15:40 2022 UTC (19 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.430: +2 -2 lines
Diff to previous 1.430 (colored)

fix various typos in comments.

Revision 1.430 / (download) - annotate - [select for diffs], Mon Jun 27 22:41:28 2022 UTC (20 months ago) by andvar
Branch: MAIN
Changes since 1.429: +9 -9 lines
Diff to previous 1.429 (colored)

fix various typos in comments.

Revision 1.429 / (download) - annotate - [select for diffs], Sun May 22 11:27:34 2022 UTC (21 months, 1 week ago) by andvar
Branch: MAIN
Changes since 1.428: +2 -2 lines
Diff to previous 1.428 (colored)

fix various small typos, mainly in comments.

Revision 1.428 / (download) - annotate - [select for diffs], Mon May 16 21:28:05 2022 UTC (21 months, 2 weeks ago) by mrg
Branch: MAIN
Changes since 1.427: +44 -2 lines
Diff to previous 1.427 (colored)

try to handle ultrasparc III* "fast ecc error" traps.

i had a sunblade 2500 reset with this trap recently, and the
manual says it should have been recoverable.  in particular,
the US IIIv2 manual says in section 12.4.4.2 that the i-cache
won't see this data ever (so nothing needed there), and that
the d-cache needs to be disabled, and all the entries flushed,
and then re-enabled.

tested with a "trap 0x70" from kernel space, that trap.c
converted the "0x170" back to "0x70" (with an ADVANCE).  this
code not commited.

Revision 1.423.6.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:39 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.423.6.1: +136 -5 lines
Diff to previous 1.423.6.1 (colored) to branchpoint 1.423 (colored) next main 1.424 (colored)

Sync with HEAD.

Revision 1.425.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 21:44:49 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.425: +83 -4 lines
Diff to previous 1.425 (colored) next main 1.426 (colored)

Sync with HEAD.

Revision 1.427 / (download) - annotate - [select for diffs], Sat Apr 3 17:01:24 2021 UTC (2 years, 10 months ago) by palle
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-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.426: +11 -3 lines
Diff to previous 1.426 (colored)

Improve cpu_idle() by allowing a platform specific implementaion (same logic as the sparc implementation) - currently only used by sun4v

Revision 1.426 / (download) - annotate - [select for diffs], Tue Mar 30 20:03:14 2021 UTC (2 years, 11 months ago) by palle
Branch: MAIN
Changes since 1.425: +73 -2 lines
Diff to previous 1.425 (colored)

sun4v: handle spill trap properly when trap level is 1 and otherwin is non-zero - ensure that all windows are spilled to the pcb like the sun4u winfixsave code path

Revision 1.425 / (download) - annotate - [select for diffs], Mon Feb 22 09:56:42 2021 UTC (3 years ago) by palle
Branch: MAIN
Branch point for: thorpej-cfargs
Changes since 1.424: +54 -2 lines
Diff to previous 1.424 (colored)

sun4v: handle spill normal user traps properly when current trap level is 1 - registers are spilled to the PA of the stack to avoid further mmu-related traps, since sun4v only has 2 trap levels

Revision 1.423.6.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:34:56 2021 UTC (3 years, 1 month ago) by thorpej
Branch: thorpej-futex
Changes since 1.423: +3 -1 lines
Diff to previous 1.423 (colored)

Sync w/ HEAD.

Revision 1.424 / (download) - annotate - [select for diffs], Sun Dec 20 11:58:58 2020 UTC (3 years, 2 months ago) by palle
Branch: MAIN
Changes since 1.423: +3 -1 lines
Diff to previous 1.423 (colored)

sun4v: add comment in sun4v_tl1_ptbl_miss code path - no functional change

Revision 1.414.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:08 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.414.2.2: +6 -6 lines
Diff to previous 1.414.2.2 (colored) to branchpoint 1.414 (colored) next main 1.415 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.414.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:54 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.414.2.1: +2 -5 lines
Diff to previous 1.414.2.1 (colored) to branchpoint 1.414 (colored)

Merge changes from current as of 20200406

Revision 1.421.4.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:27 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.421: +2 -5 lines
Diff to previous 1.421 (colored) next main 1.422 (colored)

Sync with head.

Revision 1.423 / (download) - annotate - [select for diffs], Wed Jan 8 20:59:20 2020 UTC (4 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Branch point for: thorpej-futex
Changes since 1.422: +2 -4 lines
Diff to previous 1.422 (colored)

oldlwp is always non-NULL in cpu_switchto so remove the test for NULL.

Revision 1.422 / (download) - annotate - [select for diffs], Wed Jan 8 17:38:42 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.421: +1 -2 lines
Diff to previous 1.421 (colored)

Hopefully fix some problems seen with MP support on non-x86, in particular
where curcpu() is defined as curlwp->l_cpu:

- mi_switch(): undo the ~2007ish optimisation to unlock curlwp before
  calling cpu_switchto().  It's not safe to let other actors mess with the
  LWP (in particular l->l_cpu) while it's still context switching.  This
  removes l->l_ctxswtch.

- Move the LP_RUNNING flag into l->l_flag and rename to LW_RUNNING since
  it's now covered by the LWP's lock.

- Ditch lwp_exit_switchaway() and just call mi_switch() instead.  Everything
  is in cache anyway so it wasn't buying much by trying to avoid saving old
  state.  This means cpu_switchto() will never be called with prevlwp ==
  NULL.

- Remove some KERNEL_LOCK handling which hasn't been needed for years.

Revision 1.421 / (download) - annotate - [select for diffs], Thu Jul 18 18:21:45 2019 UTC (4 years, 7 months ago) by palle
Branch: MAIN
CVS Tags: phil-wifi-20191119, 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, ad-namecache-base
Branch point for: netbsd-9, ad-namecache
Changes since 1.420: +7 -7 lines
Diff to previous 1.420 (colored)

sun4v: added some missing comments to the code in pcbspill

Revision 1.414.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:48 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.414: +44 -12 lines
Diff to previous 1.414 (colored)

Sync with HEAD

Revision 1.420 / (download) - annotate - [select for diffs], Sun Apr 7 19:31:38 2019 UTC (4 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.419: +5 -3 lines
Diff to previous 1.419 (colored)

make trap 0x70 a TRAP() not UTRAP().  we should be able to handle
fast ECC error as a normal trap, and i saw this once a few years
ago but it never repeated so i haven't been able to test this.

Revision 1.419 / (download) - annotate - [select for diffs], Fri Feb 8 20:34:23 2019 UTC (5 years ago) by palle
Branch: MAIN
Changes since 1.418: +4 -1 lines
Diff to previous 1.418 (colored)

sun4v: Improve comment for next_stick_init() - no functional changes

Revision 1.418 / (download) - annotate - [select for diffs], Fri Feb 8 20:14:51 2019 UTC (5 years ago) by palle
Branch: MAIN
Changes since 1.417: +16 -1 lines
Diff to previous 1.417 (colored)

sun4v: initialize %stickcmpr properly when establishing interrupt - fixes issue seen on newer sun4v/SPARC-T5 system where the interrupt never fires.

Revision 1.417 / (download) - annotate - [select for diffs], Fri Feb 8 19:45:24 2019 UTC (5 years ago) by palle
Branch: MAIN
Changes since 1.416: +19 -7 lines
Diff to previous 1.416 (colored)

sun4v: introduce macros for handling spill traps from userlevevel @ traplevel 1 (from OpenBSD) - spill traps at level 1 from userspace now works better

Revision 1.416 / (download) - annotate - [select for diffs], Fri Feb 8 19:26:25 2019 UTC (5 years ago) by palle
Branch: MAIN
Changes since 1.415: +3 -3 lines
Diff to previous 1.415 (colored)

sun4v: add comment documenting the contents of the %g2 register - no functional changes

Revision 1.412.2.3 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:27 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.412.2.2: +2 -2 lines
Diff to previous 1.412.2.2 (colored) to branchpoint 1.412 (colored) next main 1.413 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.415 / (download) - annotate - [select for diffs], Sun Nov 4 20:02:07 2018 UTC (5 years, 3 months ago) by palle
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.414: +2 -2 lines
Diff to previous 1.414 (colored)

Ensure that the 64-bit condition codes are used instead of the 32-bit condition codes. ok martin@

Revision 1.412.2.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:45 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.412.2.1: +2 -2 lines
Diff to previous 1.412.2.1 (colored) to branchpoint 1.412 (colored)

Sync with HEAD

Revision 1.414 / (download) - annotate - [select for diffs], Sat May 26 19:20:21 2018 UTC (5 years, 9 months ago) by palle
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.413: +2 -2 lines
Diff to previous 1.413 (colored)

next_stick() - fix typy in comment: tick->stick

Revision 1.412.2.1 / (download) - annotate - [select for diffs], Mon Apr 16 01:59:56 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.412: +80 -4 lines
Diff to previous 1.412 (colored)

Sync with HEAD, resolve some conflicts

Revision 1.413 / (download) - annotate - [select for diffs], Wed Apr 11 19:41:18 2018 UTC (5 years, 10 months ago) by palle
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415
Changes since 1.412: +80 -4 lines
Diff to previous 1.412 (colored)

sun4v: handle MMU-related traps properly when they occur at trap level 1. This fixes issues when user-level LWPs access the user-level stack

Revision 1.341.2.5 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:45 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.341.2.4: +1083 -187 lines
Diff to previous 1.341.2.4 (colored) to branchpoint 1.341 (colored) next main 1.342 (colored)

update from HEAD

Revision 1.377.2.8 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:53 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.377.2.7: +292 -12 lines
Diff to previous 1.377.2.7 (colored) to branchpoint 1.377 (colored) next main 1.378 (colored)

Sync with HEAD

Revision 1.412 / (download) - annotate - [select for diffs], Sat Aug 26 20:25:00 2017 UTC (6 years, 6 months ago) by palle
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.411: +1 -4 lines
Diff to previous 1.411 (colored)

sun4v: Avoid touching the %tick_cmpr register which is not present on never systems (Oracle SPARC Architecture 2011 and beyond). Based on code from OpenBSD locore.s revision 1.177. Tested on both sun4u (qemu and USIII) and sun4v (qemu and T5-2). ok martin@

Revision 1.410.2.1 / (download) - annotate - [select for diffs], Thu May 11 02:58:35 2017 UTC (6 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.410: +2 -3 lines
Diff to previous 1.410 (colored) next main 1.411 (colored)

Sync with HEAD

Revision 1.411 / (download) - annotate - [select for diffs], Sat May 6 21:46:31 2017 UTC (6 years, 9 months ago) by palle
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, 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, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.410: +2 -3 lines
Diff to previous 1.410 (colored)

sun4v: The %ver register is not available on sun4v - use GET_MAXCWP introduced in rev. 1.361. Verified using qemu (sun4u and sun4v) and on real sun4v hw (t2000)

Revision 1.398.2.5 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:08 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.398.2.4: +256 -7 lines
Diff to previous 1.398.2.4 (colored) to branchpoint 1.398 (colored) next main 1.399 (colored)

Sync with HEAD

Revision 1.405.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:37 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.405: +447 -16 lines
Diff to previous 1.405 (colored) next main 1.406 (colored)

Sync with HEAD

Revision 1.410 / (download) - annotate - [select for diffs], Tue Apr 18 20:02:50 2017 UTC (6 years, 10 months ago) by palle
Branch: MAIN
CVS Tags: prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.409: +256 -7 lines
Diff to previous 1.409 (colored)

sun4v: Add handling of trap 0x06c @ trap level 1 - based on code from OpenBSD, but slightly adapted to NetBSD. verified using qemu

Revision 1.398.2.4 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:21 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.398.2.3: +206 -11 lines
Diff to previous 1.398.2.3 (colored) to branchpoint 1.398 (colored)

Sync with HEAD

Revision 1.409 / (download) - annotate - [select for diffs], Sun Feb 19 18:25:45 2017 UTC (7 years ago) by palle
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq
Changes since 1.408: +32 -2 lines
Diff to previous 1.408 (colored)

sun4v: rft_user needs special handling (a manual fill) since the restore instruction may cause the number of trap levels to exceed the maximum for sun4v - inspired by code from the the openbsd rft_user code path - verified using qemu for both sun4u and sun4v

Revision 1.408 / (download) - annotate - [select for diffs], Fri Feb 10 23:26:23 2017 UTC (7 years ago) by palle
Branch: MAIN
Changes since 1.407: +6 -4 lines
Diff to previous 1.407 (colored)

sun4v: Added handling of trap type 0x034 (address alignment error) + fixed typo mmfsa -> mmufsa. Verified for both sun4u and sun4v using qemu.

Revision 1.377.2.7 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:21 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.377.2.6: +176 -13 lines
Diff to previous 1.377.2.6 (colored) to branchpoint 1.377 (colored)

Sync with HEAD

Revision 1.407 / (download) - annotate - [select for diffs], Mon Jan 30 21:24:33 2017 UTC (7 years, 1 month ago) by palle
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.406: +17 -3 lines
Diff to previous 1.406 (colored)

sun4v: Hook up syscall handling to the trap table. Verified using qemu for both sun4u and sun4v.

Revision 1.406 / (download) - annotate - [select for diffs], Fri Jan 27 21:35:38 2017 UTC (7 years, 1 month ago) by palle
Branch: MAIN
Changes since 1.405: +141 -5 lines
Diff to previous 1.405 (colored)

sun4v: implement missing handling of itsb traps 0x008 and 0x009. Based on code from OpenBSD. Tested using qemu.

Revision 1.369.2.3.2.1 / (download) - annotate - [select for diffs], Wed Jan 18 08:46:26 2017 UTC (7 years, 1 month ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.369.2.3: +5 -5 lines
Diff to previous 1.369.2.3 (colored) next main 1.369.2.4 (colored)

Sync with netbsd-5

Revision 1.405 / (download) - annotate - [select for diffs], Sat Jan 7 20:19:09 2017 UTC (7 years, 1 month ago) by palle
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.404: +15 -2 lines
Diff to previous 1.404 (colored)

sun4v: slowtrap() now selects normal globals properly on both sun4u and sun4v platforms. Verified using qemu for both sun4u and sun4v systems

Revision 1.398.2.3 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:26 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.398.2.2: +6 -6 lines
Diff to previous 1.398.2.2 (colored) to branchpoint 1.398 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.404 / (download) - annotate - [select for diffs], Thu Jan 5 20:37:06 2017 UTC (7 years, 1 month ago) by palle
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107
Changes since 1.403: +3 -3 lines
Diff to previous 1.403 (colored)

sun4v: TRAP_SETUP() updated to set mmu context id properly for both sun4v and sun4u platforms. Verified using qemu for both sun4u and sun4v systems

Revision 1.403 / (download) - annotate - [select for diffs], Wed Jan 4 20:19:29 2017 UTC (7 years, 1 month ago) by palle
Branch: MAIN
Changes since 1.402: +3 -3 lines
Diff to previous 1.402 (colored)

sun4v: make debugging kernel bringup a bit easier by using the slowtrap code path for currently unhandled trap level 1 trap entries 0x00-0x23 and 0x28-0x30

Revision 1.402 / (download) - annotate - [select for diffs], Thu Dec 29 20:59:31 2016 UTC (7 years, 2 months ago) by palle
Branch: MAIN
Changes since 1.401: +2 -2 lines
Diff to previous 1.401 (colored)

sun4v: make debugging kernel bringup a bit easier by using the slowtrap code path for currently unhandled trap level 1 trap entries 0x32-0x7f

Revision 1.398.2.2 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:05 2016 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.398.2.1: +5 -5 lines
Diff to previous 1.398.2.1 (colored) to branchpoint 1.398 (colored)

Sync with HEAD

Revision 1.377.2.6 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:36 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.377.2.5: +124 -138 lines
Diff to previous 1.377.2.5 (colored) to branchpoint 1.377 (colored)

Sync with HEAD

Revision 1.369.2.2.2.2 / (download) - annotate - [select for diffs], Sun Sep 25 12:13:54 2016 UTC (7 years, 5 months ago) by bouyer
Branch: netbsd-7-0
CVS Tags: netbsd-7-0-2-RELEASE
Changes since 1.369.2.2.2.1: +5 -5 lines
Diff to previous 1.369.2.2.2.1 (colored) to branchpoint 1.369.2.2 (colored) next main 1.369.2.3 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1257):
	sys/arch/sparc64/sparc64/locore.s: revision 1.401
Fix RAS for 32-bit kernels.  trapframe is always 64-bit.

Revision 1.369.2.4 / (download) - annotate - [select for diffs], Sun Sep 25 12:13:39 2016 UTC (7 years, 5 months ago) by bouyer
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, 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
Changes since 1.369.2.3: +5 -5 lines
Diff to previous 1.369.2.3 (colored) to branchpoint 1.369 (colored) next main 1.370 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1257):
	sys/arch/sparc64/sparc64/locore.s: revision 1.401
Fix RAS for 32-bit kernels.  trapframe is always 64-bit.

Revision 1.338.8.2.4.3 / (download) - annotate - [select for diffs], Sat Sep 24 13:19:09 2016 UTC (7 years, 5 months ago) by bouyer
Branch: netbsd-6-0
Changes since 1.338.8.2.4.2: +4 -4 lines
Diff to previous 1.338.8.2.4.2 (colored) to branchpoint 1.338.8.2 (colored) next main 1.338.8.3 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1408):
	sys/arch/sparc64/sparc64/locore.s: revision 1.401
Fix RAS for 32-bit kernels.  trapframe is always 64-bit.

Revision 1.338.8.4.2.3 / (download) - annotate - [select for diffs], Sat Sep 24 13:19:08 2016 UTC (7 years, 5 months ago) by bouyer
Branch: netbsd-6-1
Changes since 1.338.8.4.2.2: +4 -4 lines
Diff to previous 1.338.8.4.2.2 (colored) to branchpoint 1.338.8.4 (colored) next main 1.338.8.5 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1408):
	sys/arch/sparc64/sparc64/locore.s: revision 1.401
Fix RAS for 32-bit kernels.  trapframe is always 64-bit.

Revision 1.338.8.8 / (download) - annotate - [select for diffs], Sat Sep 24 13:18:43 2016 UTC (7 years, 5 months ago) by bouyer
Branch: netbsd-6
Changes since 1.338.8.7: +5 -5 lines
Diff to previous 1.338.8.7 (colored) to branchpoint 1.338 (colored) next main 1.339 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1408):
	sys/arch/sparc64/sparc64/locore.s: revision 1.401
Fix RAS for 32-bit kernels.  trapframe is always 64-bit.

Revision 1.401 / (download) - annotate - [select for diffs], Tue Sep 20 08:56:34 2016 UTC (7 years, 5 months ago) by nakayama
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004
Changes since 1.400: +5 -5 lines
Diff to previous 1.400 (colored)

Fix RAS for 32-bit kernels.  trapframe is always 64-bit.

Revision 1.400 / (download) - annotate - [select for diffs], Tue Aug 23 19:57:01 2016 UTC (7 years, 6 months ago) by palle
Branch: MAIN
CVS Tags: localcount-20160914
Changes since 1.399: +2 -14 lines
Diff to previous 1.399 (colored)

sun4v: rework sun4v_datatrap so it works properly when running on a T2-based system like T5120 - for some reason %tl is 0 when entering sun4v_datatrap causing a crash (sir instruction), so ignore the %tl value for now upon entry to sun4v_datatrap - with this fix both T1 and T2 based systems reach the same point - hangs in rft_user after the init process is started

Revision 1.398.2.1 / (download) - annotate - [select for diffs], Tue Jul 26 03:24:19 2016 UTC (7 years, 7 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.398: +5 -7 lines
Diff to previous 1.398 (colored)

Sync with HEAD

Revision 1.399 / (download) - annotate - [select for diffs], Mon Jul 18 19:51:06 2016 UTC (7 years, 7 months ago) by palle
Branch: MAIN
CVS Tags: pgoyette-localcount-20160806, pgoyette-localcount-20160726
Changes since 1.398: +5 -7 lines
Diff to previous 1.398 (colored)

sun4v: handle device interrupts properly - both legacy (sysino) and cookies

Revision 1.377.2.5 / (download) - annotate - [select for diffs], Sat Jul 9 20:24:57 2016 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.377.2.4: +34 -4 lines
Diff to previous 1.377.2.4 (colored) to branchpoint 1.377 (colored)

Sync with HEAD

Revision 1.398 / (download) - annotate - [select for diffs], Sat Jun 4 21:24:41 2016 UTC (7 years, 8 months ago) by palle
Branch: MAIN
CVS Tags: pgoyette-localcount-base, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.397: +34 -4 lines
Diff to previous 1.397 (colored)

sun4v: rtf_user now uses macros GET_MMU_CONTEXTID and SET_MMU_CONTEXTID. Tested on sun4u (QEMU) and sun4v (T2000). Parts from OpenBSD.

Revision 1.377.2.4 / (download) - annotate - [select for diffs], Sun May 29 08:44:19 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.377.2.3: +223 -18 lines
Diff to previous 1.377.2.3 (colored) to branchpoint 1.377 (colored)

Sync with HEAD

Revision 1.397 / (download) - annotate - [select for diffs], Wed May 18 15:14:08 2016 UTC (7 years, 9 months ago) by nakayama
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.396: +5 -3 lines
Diff to previous 1.396 (colored)

Decrement %tl in trap handler not to make it zero unconditionally
for the nested trap, and remove useless mov.

Revision 1.396 / (download) - annotate - [select for diffs], Tue May 17 19:43:28 2016 UTC (7 years, 9 months ago) by palle
Branch: MAIN
Changes since 1.395: +103 -3 lines
Diff to previous 1.395 (colored)

sun4v: Implement missng MMU protection trap handling - mostly from OpenBSD

Revision 1.395 / (download) - annotate - [select for diffs], Mon May 16 20:03:07 2016 UTC (7 years, 9 months ago) by palle
Branch: MAIN
Changes since 1.394: +6 -7 lines
Diff to previous 1.394 (colored)

Avoid assembler-specific defines by using the export keyword in genassym.cf instead

Revision 1.394 / (download) - annotate - [select for diffs], Sun May 15 23:54:58 2016 UTC (7 years, 9 months ago) by nakayama
Branch: MAIN
Changes since 1.393: +3 -3 lines
Diff to previous 1.393 (colored)

%g1 is not preserved across function call, so load it before
return_from_trap.

Revision 1.393 / (download) - annotate - [select for diffs], Fri May 13 21:48:15 2016 UTC (7 years, 9 months ago) by palle
Branch: MAIN
Changes since 1.392: +60 -3 lines
Diff to previous 1.392 (colored)

sun4v: add missing implementation of sun4v_datatrap_tl0 so data_access_fault() is called - mostly from OpenBSD

Revision 1.392 / (download) - annotate - [select for diffs], Fri May 13 21:21:25 2016 UTC (7 years, 9 months ago) by nakayama
Branch: MAIN
Changes since 1.391: +6 -6 lines
Diff to previous 1.391 (colored)

- ci_paddr is always 64-bit.
- intrlev is array of pointer.
- ih_ack is pointer.

Revision 1.391 / (download) - annotate - [select for diffs], Tue May 10 19:24:00 2016 UTC (7 years, 9 months ago) by palle
Branch: MAIN
Changes since 1.390: +50 -3 lines
Diff to previous 1.390 (colored)

sun4v: make device interrupts work. Introduce a new intrhand_alloc() function for allocation of interrupt handlers and adapt to this. Parts from OpenBSD. ok martin@

Revision 1.377.2.3 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:05 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.377.2.2: +53 -4 lines
Diff to previous 1.377.2.2 (colored) to branchpoint 1.377 (colored)

Sync with HEAD

Revision 1.390 / (download) - annotate - [select for diffs], Wed Mar 9 12:20:20 2016 UTC (7 years, 11 months ago) by nakayama
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.389: +5 -1 lines
Diff to previous 1.389 (colored)

32-bit kernels use 32-bit stack.

Revision 1.389 / (download) - annotate - [select for diffs], Thu Mar 3 20:45:45 2016 UTC (7 years, 11 months ago) by palle
Branch: MAIN
Changes since 1.388: +45 -2 lines
Diff to previous 1.388 (colored)

sun4v: rft_kernel should pay attention to the number of register windows that can be restored. We cannot rely on fill traps to occur, since sun4v only has two trap levels available in privileged mode. Based on code from OpenBSD. ok martin@

Revision 1.388 / (download) - annotate - [select for diffs], Sun Feb 14 21:13:33 2016 UTC (8 years ago) by palle
Branch: MAIN
Changes since 1.387: +4 -2 lines
Diff to previous 1.387 (colored)

sun4v: add breakpoint trap entry to the sun4v trap table

Revision 1.387 / (download) - annotate - [select for diffs], Wed Feb 3 20:33:52 2016 UTC (8 years ago) by palle
Branch: MAIN
Changes since 1.386: +2 -2 lines
Diff to previous 1.386 (colored)

sun4v: extend dmmu_set_secondary_context() to handle both sun4u and sun4v. ok martin@

Revision 1.377.2.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:44 2015 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.377.2.1: +10 -15 lines
Diff to previous 1.377.2.1 (colored) to branchpoint 1.377 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.369.2.2.2.1 / (download) - annotate - [select for diffs], Mon Nov 16 13:39:47 2015 UTC (8 years, 3 months ago) by msaitoh
Branch: netbsd-7-0
CVS Tags: netbsd-7-0-1-RELEASE
Changes since 1.369.2.2: +1 -7 lines
Diff to previous 1.369.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #1028):
	sys/arch/sparc64/sparc64/locore.s: revision 1.386
	sys/arch/sparc64/sparc64/vm_machdep.c: revision 1.101
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.105
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.106
- Basically revert r1.246 of locore.s and r1.73 of vm_machdep.c:
	Remove special case handling for userland lwps from cpu_lwp_fork,
	instead do it in lwp_trampoline when we first return to userland.
  which was a stupid idea - since we did now set all fork child's %tstate
  (and thus %pstate when back in userland) to the current kernel's userland
  default. This meant we lost the address mask bit for 32bit processes and
  all memory model details for 64bit ones.
  Move it back to cpu_lwp_fork and fix the condition to only do it once when
  forking init.
- Fix kmem_free() size mismatch
- Convert siginfo to 32bit version before copying it out to 32bit userland.

Revision 1.369.2.3 / (download) - annotate - [select for diffs], Mon Nov 16 13:33:40 2015 UTC (8 years, 3 months ago) by msaitoh
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base
Branch point for: netbsd-7-nhusb
Changes since 1.369.2.2: +1 -7 lines
Diff to previous 1.369.2.2 (colored) to branchpoint 1.369 (colored)

Pull up following revision(s) (requested by martin in ticket #1028):
	sys/arch/sparc64/sparc64/locore.s: revision 1.386
	sys/arch/sparc64/sparc64/vm_machdep.c: revision 1.101
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.105
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.106
- Basically revert r1.246 of locore.s and r1.73 of vm_machdep.c:
	Remove special case handling for userland lwps from cpu_lwp_fork,
	instead do it in lwp_trampoline when we first return to userland.
  which was a stupid idea - since we did now set all fork child's %tstate
  (and thus %pstate when back in userland) to the current kernel's userland
  default. This meant we lost the address mask bit for 32bit processes and
  all memory model details for 64bit ones.
  Move it back to cpu_lwp_fork and fix the condition to only do it once when
  forking init.
- Fix kmem_free() size mismatch
- Convert siginfo to 32bit version before copying it out to 32bit userland.

Revision 1.338.8.4.2.2 / (download) - annotate - [select for diffs], Sun Nov 15 21:02:22 2015 UTC (8 years, 3 months ago) by bouyer
Branch: netbsd-6-1
Changes since 1.338.8.4.2.1: +0 -6 lines
Diff to previous 1.338.8.4.2.1 (colored) to branchpoint 1.338.8.4 (colored)

Pull up following revision(s) (requested by martin in ticket #1343):
	sys/arch/sparc64/sparc64/locore.s: revision 1.386
	sys/arch/sparc64/sparc64/vm_machdep.c: revision 1.101
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.105
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.106
Basically revert r1.246 of locore.s and r1.73 of vm_machdep.c:
	Remove special case handling for userland lwps from cpu_lwp_fork,
	instead do it in lwp_trampoline when we first return to userland.
which was a stupid idea - since we did now set all fork child's %tstate
(and thus %pstate when back in userland) to the current kernel's userland
default. This meant we lost the address mask bit for 32bit processes and
all memory model details for 64bit ones.
Move it back to cpu_lwp_fork and fix the condition to only do it once when
forking init.
Fix kmem_free() size mismatch
Convert siginfo to 32bit version before copying it out to 32bit userland.

Revision 1.338.8.7 / (download) - annotate - [select for diffs], Sun Nov 15 21:02:13 2015 UTC (8 years, 3 months ago) by bouyer
Branch: netbsd-6
Changes since 1.338.8.6: +1 -7 lines
Diff to previous 1.338.8.6 (colored) to branchpoint 1.338 (colored)

Pull up following revision(s) (requested by martin in ticket #1343):
	sys/arch/sparc64/sparc64/locore.s: revision 1.386
	sys/arch/sparc64/sparc64/vm_machdep.c: revision 1.101
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.105
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.106
Basically revert r1.246 of locore.s and r1.73 of vm_machdep.c:
	Remove special case handling for userland lwps from cpu_lwp_fork,
	instead do it in lwp_trampoline when we first return to userland.
which was a stupid idea - since we did now set all fork child's %tstate
(and thus %pstate when back in userland) to the current kernel's userland
default. This meant we lost the address mask bit for 32bit processes and
all memory model details for 64bit ones.
Move it back to cpu_lwp_fork and fix the condition to only do it once when
forking init.
Fix kmem_free() size mismatch
Convert siginfo to 32bit version before copying it out to 32bit userland.

Revision 1.338.8.2.4.2 / (download) - annotate - [select for diffs], Sun Nov 15 21:01:52 2015 UTC (8 years, 3 months ago) by bouyer
Branch: netbsd-6-0
Changes since 1.338.8.2.4.1: +0 -6 lines
Diff to previous 1.338.8.2.4.1 (colored) to branchpoint 1.338.8.2 (colored)

Pull up following revision(s) (requested by martin in ticket #1343):
	sys/arch/sparc64/sparc64/locore.s: revision 1.386
	sys/arch/sparc64/sparc64/vm_machdep.c: revision 1.101
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.105
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.106
Basically revert r1.246 of locore.s and r1.73 of vm_machdep.c:
	Remove special case handling for userland lwps from cpu_lwp_fork,
	instead do it in lwp_trampoline when we first return to userland.
which was a stupid idea - since we did now set all fork child's %tstate
(and thus %pstate when back in userland) to the current kernel's userland
default. This meant we lost the address mask bit for 32bit processes and
all memory model details for 64bit ones.
Move it back to cpu_lwp_fork and fix the condition to only do it once when
forking init.
Fix kmem_free() size mismatch
Convert siginfo to 32bit version before copying it out to 32bit userland.

Revision 1.386 / (download) - annotate - [select for diffs], Fri Nov 6 15:30:59 2015 UTC (8 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226
Changes since 1.385: +1 -7 lines
Diff to previous 1.385 (colored)

Basically revert r1.246 of locore.s and r1.73 of vm_machdep.c:

	Remove special case handling for userland lwps from cpu_lwp_fork,
	instead do it in lwp_trampoline when we first return to userland.

which was a stupid idea - since we did now set all fork child's %tstate
(and thus %pstate when back in userland) to the current kernel's userland
default. This meant we lost the address mask bit for 32bit processes and
all memory model details for 64bit ones.

Move it back to cpu_lwp_fork and fix the condition to only do it once when
forking init.

Revision 1.385 / (download) - annotate - [select for diffs], Thu Nov 5 10:11:51 2015 UTC (8 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.384: +10 -9 lines
Diff to previous 1.384 (colored)

Most of the time return_from_trap already got called with tf->tf_tstate
loaded in register %g1 - make it so for two more callers and remove
the reload of that value.

Revision 1.377.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:03 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.377: +63 -21 lines
Diff to previous 1.377 (colored)

Sync with HEAD

Revision 1.384 / (download) - annotate - [select for diffs], Sun Apr 5 20:34:00 2015 UTC (8 years, 10 months ago) by palle
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.383: +2 -2 lines
Diff to previous 1.383 (colored)

sun4v: Ensure that the TTEs CP and CV bits are the same (both set) for the primary cpu and secondary cpus INTSTACK mappings

Revision 1.383 / (download) - annotate - [select for diffs], Wed Apr 1 18:38:30 2015 UTC (8 years, 11 months ago) by palle
Branch: MAIN
Changes since 1.382: +30 -2 lines
Diff to previous 1.382 (colored)

sun4v: Implement handling of cpu_mondo trap - from OpenBSD - tested using the Legion simulator

Revision 1.338.8.6 / (download) - annotate - [select for diffs], Tue Mar 24 08:51:14 2015 UTC (8 years, 11 months ago) by snj
Branch: netbsd-6
Changes since 1.338.8.5: +3 -7 lines
Diff to previous 1.338.8.5 (colored) to branchpoint 1.338 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1265):
	sys/arch/sparc64/sparc64/locore.s: revision 1.380
PANICSTACK is a pointer itself, not a pointer to pointer.

Revision 1.369.2.2 / (download) - annotate - [select for diffs], Mon Mar 9 07:54:12 2015 UTC (8 years, 11 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1
Branch point for: netbsd-7-0
Changes since 1.369.2.1: +5 -8 lines
Diff to previous 1.369.2.1 (colored) to branchpoint 1.369 (colored)

Pull up following revision(s) (requested by nakayama in ticket #568):
	sys/arch/sparc64/sparc64/locore.s: revision 1.379, 1.380
Use panic stack temporarily for calling prom_printf in a trap
handler.
It seems that openfirmware cannot handle over 4GB pointers, and
stack pointers may point to over 4GB since VA layout was rearranged
by rev 1.33 of vmparam.h.  Therefore, use panic stack to avoid
panicking in OF_write used by prom_printf.
--
PANICSTACK is a pointer itself, not a pointer to pointer.

Revision 1.382 / (download) - annotate - [select for diffs], Wed Mar 4 11:32:31 2015 UTC (8 years, 11 months ago) by palle
Branch: MAIN
Changes since 1.381: +4 -6 lines
Diff to previous 1.381 (colored)

sun4v: revert some of the logic introduced in revision 1.378 - flushw is not necessary on sun4v (OpenBSD patches the flushw instruction to a nop instruction) - with these changes the kernel reaches cpu_boot_secondary_processors() when running in the Legion simulator (crashes due to missing handling of cpu_mondo_trap)

Revision 1.381 / (download) - annotate - [select for diffs], Mon Mar 2 14:17:06 2015 UTC (9 years ago) by nakayama
Branch: MAIN
Changes since 1.380: +11 -11 lines
Diff to previous 1.380 (colored)

prom_printf converts "\n" to "\r\n" internally, so omit "\r".

Revision 1.380 / (download) - annotate - [select for diffs], Mon Mar 2 13:58:55 2015 UTC (9 years ago) by nakayama
Branch: MAIN
Changes since 1.379: +3 -7 lines
Diff to previous 1.379 (colored)

PANICSTACK is a pointer itself, not a pointer to pointer.

Revision 1.379 / (download) - annotate - [select for diffs], Mon Mar 2 13:48:00 2015 UTC (9 years ago) by nakayama
Branch: MAIN
Changes since 1.378: +3 -2 lines
Diff to previous 1.378 (colored)

Use panic stack temporarily for calling prom_printf in a trap
handler.

It seems that openfirmware cannot handle over 4GB pointers, and
stack pointers may point to over 4GB since VA layout was rearranged
by rev 1.33 of vmparam.h.  Therefore, use panic stack to avoid
panicking in OF_write used by prom_printf.

Revision 1.378 / (download) - annotate - [select for diffs], Mon Feb 23 12:36:58 2015 UTC (9 years ago) by palle
Branch: MAIN
Changes since 1.377: +22 -3 lines
Diff to previous 1.377 (colored)

sun4v: sparc_interupt - ensure that the trap level and globals level are the same when the flushw instruction is issued - othwise warnings occur when using the sun4v Legion simulator.

Revision 1.377 / (download) - annotate - [select for diffs], Sun Oct 26 21:03:45 2014 UTC (9 years, 4 months ago) by palle
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.376: +79 -65 lines
Diff to previous 1.376 (colored)

sun4v: Create CLEANWIN0 and CLEANWIN1 macros for handling clean window traps on both sun4u and sun4u (based on the original code inlined in the sun4u trap table). Update trap tables accordingly for both sun4u and sun4v. Ok martin@

Revision 1.376 / (download) - annotate - [select for diffs], Fri Oct 24 15:51:16 2014 UTC (9 years, 4 months ago) by nakayama
Branch: MAIN
Changes since 1.375: +2 -2 lines
Diff to previous 1.375 (colored)

Fix typo in comment.

Revision 1.375 / (download) - annotate - [select for diffs], Sat Oct 18 08:33:27 2014 UTC (9 years, 4 months ago) by snj
Branch: MAIN
Changes since 1.374: +2 -2 lines
Diff to previous 1.374 (colored)

src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.374 / (download) - annotate - [select for diffs], Wed Oct 15 21:18:32 2014 UTC (9 years, 4 months ago) by palle
Branch: MAIN
Changes since 1.373: +6 -6 lines
Diff to previous 1.373 (colored)

sun4v: fixed bug causing the real address to be incorrectly calculated as zero

Revision 1.373 / (download) - annotate - [select for diffs], Wed Sep 24 18:32:10 2014 UTC (9 years, 5 months ago) by palle
Branch: MAIN
Changes since 1.372: +110 -11 lines
Diff to previous 1.372 (colored)

sun4v: add code to enable startup of secondary cpus on both sun4u and sun4v systems - ok martin@

Revision 1.372 / (download) - annotate - [select for diffs], Thu Sep 4 18:48:29 2014 UTC (9 years, 5 months ago) by palle
Branch: MAIN
Changes since 1.371: +2 -1 lines
Diff to previous 1.371 (colored)

sun4v: All cpus must be setup with a TSB descriptor, so pmap_setup_tsb_sun4v() must take a pointer to the TSB descriptor

Revision 1.371 / (download) - annotate - [select for diffs], Sun Aug 31 18:49:42 2014 UTC (9 years, 6 months ago) by palle
Branch: MAIN
Changes since 1.370: +60 -26 lines
Diff to previous 1.370 (colored)

sun4v: Split the NORMAL_GLOBALS and ALTERNATE_GLOBALS macros to _SUN4U and _SUN4V variants. Rework the return_from_trap logic to use the new variants so it is possible to use a global register as scratch register.

Revision 1.341.2.4 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:25 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.341.2.3: +456 -55 lines
Diff to previous 1.341.2.3 (colored) to branchpoint 1.341 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.369.2.1 / (download) - annotate - [select for diffs], Thu Aug 14 06:50:37 2014 UTC (9 years, 6 months ago) by martin
Branch: netbsd-7
Changes since 1.369: +2 -1 lines
Diff to previous 1.369 (colored)

Pull up following revision(s) (requested by nakayama in ticket #14):
	sys/arch/sparc64/sparc64/locore.s: revision 1.370
Add missing delay slot in DEBUG kernel.

Revision 1.370 / (download) - annotate - [select for diffs], Thu Aug 14 04:14:33 2014 UTC (9 years, 6 months ago) by nakayama
Branch: MAIN
Changes since 1.369: +2 -1 lines
Diff to previous 1.369 (colored)

Add missing delay slot in DEBUG kernel.

Revision 1.356.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:09 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.356: +202 -55 lines
Diff to previous 1.356 (colored) next main 1.357 (colored)

Rebase.

Revision 1.369 / (download) - annotate - [select for diffs], Wed Jul 30 13:50:33 2014 UTC (9 years, 7 months ago) by palle
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.368: +4 -19 lines
Diff to previous 1.368 (colored)

Fix ALTERNATE_GLOBALS so it at least works on sun4u - using a scratch register is not a good idea...

Revision 1.368 / (download) - annotate - [select for diffs], Sun Jul 27 16:37:47 2014 UTC (9 years, 7 months ago) by palle
Branch: MAIN
Changes since 1.367: +37 -4 lines
Diff to previous 1.367 (colored)

sun4v: Introduce a new macro ALTERNATE_GLOBALS (matching NORMAL_GLOBALS). Two new helper macros ENABLE_INTERRUPTS and DISABLE_INTERRUPTS are also created. With these changes the GENERIC.UP kernel will reach rootmount on sun4v systems - ok martin@

Revision 1.367 / (download) - annotate - [select for diffs], Sat Jul 26 17:16:41 2014 UTC (9 years, 7 months ago) by palle
Branch: MAIN
Changes since 1.366: +4 -2 lines
Diff to previous 1.366 (colored)

Improved the NORMAL_GLOBALS macro in the sun4u case, so only the relevant bit (AG) in %pstate is affected - ok martin@

Revision 1.366 / (download) - annotate - [select for diffs], Thu Jul 24 18:23:28 2014 UTC (9 years, 7 months ago) by palle
Branch: MAIN
Changes since 1.365: +83 -50 lines
Diff to previous 1.365 (colored)

sun4v: add missing spill/fill handling for trap level 1 + cosmetic changes to comments for trap level 0 entries

Revision 1.365 / (download) - annotate - [select for diffs], Sat Jul 19 20:58:12 2014 UTC (9 years, 7 months ago) by palle
Branch: MAIN
Changes since 1.364: +20 -2 lines
Diff to previous 1.364 (colored)

sun4v: Introduce a NORMAL_GLOBALS macro - first used in sparc_interrupt - other relevant uses will be handled as the sun4v work is progressesing - ok martin@

Revision 1.364 / (download) - annotate - [select for diffs], Wed Jul 16 19:53:18 2014 UTC (9 years, 7 months ago) by palle
Branch: MAIN
Changes since 1.363: +27 -7 lines
Diff to previous 1.363 (colored)

sun4v: Introduce SET_MMU_CONTEXTID macro for setting the mmu context id on both sun4u and sun4v

Revision 1.363 / (download) - annotate - [select for diffs], Sun Jul 13 22:32:49 2014 UTC (9 years, 7 months ago) by palle
Branch: MAIN
Changes since 1.362: +21 -2 lines
Diff to previous 1.362 (colored)

sun4v: add interrupt handling to sun4v trap table

Revision 1.362 / (download) - annotate - [select for diffs], Sun Jul 13 22:09:01 2014 UTC (9 years, 7 months ago) by palle
Branch: MAIN
Changes since 1.361: +2 -1 lines
Diff to previous 1.361 (colored)

Bugfix: add missing cmp instruction to GET_MAXCWP macro

Revision 1.361 / (download) - annotate - [select for diffs], Mon Jun 30 12:59:48 2014 UTC (9 years, 8 months ago) by palle
Branch: MAIN
Changes since 1.360: +28 -4 lines
Diff to previous 1.360 (colored)

sun4v: The maximum number of register windows is a constant and thus not available via the %ver register (sun4u only). Introduce a macro GET_MAXCWP that handles this, so cpu_switchto() works properly on sun4v. Other relevant reference to %ver can be adapted to use GET_MAXCWP as the sun4v port progresses. OK martin@

Revision 1.360 / (download) - annotate - [select for diffs], Sat May 31 18:22:29 2014 UTC (9 years, 9 months ago) by palle
Branch: MAIN
Changes since 1.359: +23 -11 lines
Diff to previous 1.359 (colored)

sun4v: added missing dtsb miss handling for trap level 1 - with this update the kernel now reaches configure() on sun4v systems

Revision 1.359 / (download) - annotate - [select for diffs], Fri May 30 21:55:32 2014 UTC (9 years, 9 months ago) by palle
Branch: MAIN
Changes since 1.358: +7 -7 lines
Diff to previous 1.358 (colored)

Remove debugging code introduced by accident in locore.s revision 1.357

Revision 1.338.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:10 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.338.2.2: +383 -63 lines
Diff to previous 1.338.2.2 (colored) to branchpoint 1.338 (colored) next main 1.339 (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.349.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:26 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.349: +305 -51 lines
Diff to previous 1.349 (colored) next main 1.350 (colored)

sync with head

Revision 1.358 / (download) - annotate - [select for diffs], Mon May 5 19:04:47 2014 UTC (9 years, 9 months ago) by palle
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.357: +3 -3 lines
Diff to previous 1.357 (colored)

sun4v: the trap base address should be assigned to %l1 so %tba is properly setup later in the code - now the kernel gets as far as printing the copyright disclaimer, kernel version and total and available memory before crashing

Revision 1.357 / (download) - annotate - [select for diffs], Mon Apr 21 17:34:38 2014 UTC (9 years, 10 months ago) by palle
Branch: MAIN
Changes since 1.356: +10 -10 lines
Diff to previous 1.356 (colored)

sun4v: Update comment: modified -> access

Revision 1.356 / (download) - annotate - [select for diffs], Fri Feb 21 18:00:09 2014 UTC (10 years ago) by palle
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.355: +41 -19 lines
Diff to previous 1.355 (colored)

sun4v: Rename TLB_ defines to SUN4U_TLB_ so entries created using TSB_DATA() are properly setup for sun4u and sun4v. Relocate the cputyp variable from autoconf.c to locore.s and make it const in param.h so optimized code can be generated. Parts from OpenBSD. Optimization suggested by nakayama@. OK martin@, mrg@, nakayama@

Revision 1.355 / (download) - annotate - [select for diffs], Fri Jan 31 18:56:24 2014 UTC (10 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.354: +2 -2 lines
Diff to previous 1.354 (colored)

defined(LKM) -> defined(MODULAR)

Revision 1.354 / (download) - annotate - [select for diffs], Sun Jan 26 20:12:32 2014 UTC (10 years, 1 month ago) by palle
Branch: MAIN
Changes since 1.353: +171 -8 lines
Diff to previous 1.353 (colored)

sun4v: Add handling of spill/fill and dtsb miss traps (with a XXX to be handled later)

Revision 1.353 / (download) - annotate - [select for diffs], Tue Jan 7 20:11:35 2014 UTC (10 years, 1 month ago) by palle
Branch: MAIN
Changes since 1.352: +41 -3 lines
Diff to previous 1.352 (colored)

sun4v: trap table setup - currently populated with dummy entries which will be properly implemented later - parts from OpenBSD - OK martin@

Revision 1.352 / (download) - annotate - [select for diffs], Sun Dec 29 12:36:30 2013 UTC (10 years, 2 months ago) by nakayama
Branch: MAIN
Changes since 1.351: +23 -20 lines
Diff to previous 1.351 (colored)

Make buildable w/o options SUN4V.

Revision 1.351 / (download) - annotate - [select for diffs], Fri Dec 27 21:11:19 2013 UTC (10 years, 2 months ago) by palle
Branch: MAIN
Changes since 1.350: +39 -10 lines
Diff to previous 1.350 (colored)

a) make the hunt through the cpus list more generic b) sun4v: ensure that the interrupt stack is mapped permanently and the TSB is setup properly - parts from OpenBSD. OK martin@

Revision 1.338.8.4.2.1 / (download) - annotate - [select for diffs], Sat Dec 14 19:33:54 2013 UTC (10 years, 2 months ago) by bouyer
Branch: netbsd-6-1
CVS Tags: netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE
Changes since 1.338.8.4: +16 -17 lines
Diff to previous 1.338.8.4 (colored)

Pull up following revision(s) (requested by nakayama in ticket #994):
	sys/arch/sparc64/sparc64/locore.s: revision 1.350
Increase an interrupt depth only in the case of hardware interrupts,
and remove the ci_idepth trick in softint_fastintr.
Fixes the following diagnostic panic reported in port-sparc64.
  panic: kernel diagnostic assertion "!cpu_intr_p()" failed: file
  "../../../../kern/subr_xcall.c", line 351

Revision 1.338.8.2.4.1 / (download) - annotate - [select for diffs], Sat Dec 14 19:33:45 2013 UTC (10 years, 2 months ago) by bouyer
Branch: netbsd-6-0
CVS Tags: netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE
Changes since 1.338.8.2: +16 -17 lines
Diff to previous 1.338.8.2 (colored)

Pull up following revision(s) (requested by nakayama in ticket #994):
	sys/arch/sparc64/sparc64/locore.s: revision 1.350
Increase an interrupt depth only in the case of hardware interrupts,
and remove the ci_idepth trick in softint_fastintr.
Fixes the following diagnostic panic reported in port-sparc64.
  panic: kernel diagnostic assertion "!cpu_intr_p()" failed: file
  "../../../../kern/subr_xcall.c", line 351

Revision 1.338.8.5 / (download) - annotate - [select for diffs], Sat Dec 14 19:33:28 2013 UTC (10 years, 2 months ago) by bouyer
Branch: netbsd-6
Changes since 1.338.8.4: +16 -17 lines
Diff to previous 1.338.8.4 (colored) to branchpoint 1.338 (colored)

Pull up following revision(s) (requested by nakayama in ticket #994):
	sys/arch/sparc64/sparc64/locore.s: revision 1.350
Increase an interrupt depth only in the case of hardware interrupts,
and remove the ci_idepth trick in softint_fastintr.
Fixes the following diagnostic panic reported in port-sparc64.
  panic: kernel diagnostic assertion "!cpu_intr_p()" failed: file
  "../../../../kern/subr_xcall.c", line 351

Revision 1.350 / (download) - annotate - [select for diffs], Fri Dec 6 21:11:06 2013 UTC (10 years, 2 months ago) by nakayama
Branch: MAIN
Changes since 1.349: +17 -18 lines
Diff to previous 1.349 (colored)

Increase an interrupt depth only in the case of hardware interrupts,
and remove the ci_idepth trick in softint_fastintr.

Fixes the following diagnostic panic reported in port-sparc64.

  panic: kernel diagnostic assertion "!cpu_intr_p()" failed: file
  "../../../../kern/subr_xcall.c", line 351

Revision 1.341.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:12 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.341.2.2: +5 -5 lines
Diff to previous 1.341.2.2 (colored) to branchpoint 1.341 (colored)

resync from head

Revision 1.349 / (download) - annotate - [select for diffs], Fri May 24 23:02:27 2013 UTC (10 years, 9 months ago) by nakayama
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.348: +2 -2 lines
Diff to previous 1.348 (colored)

Disable interrupts after calling data_access_error as with
data_access_fault.

Revision 1.348 / (download) - annotate - [select for diffs], Sun Apr 28 23:42:23 2013 UTC (10 years, 10 months ago) by nakayama
Branch: MAIN
CVS Tags: khorben-n900
Changes since 1.347: +4 -4 lines
Diff to previous 1.347 (colored)

Use macros in machine/asm.h instead of locally defined, and
introduce CASPTRA for casxa/casa.

Revision 1.341.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:59 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.341.2.1: +75 -9 lines
Diff to previous 1.341.2.1 (colored) to branchpoint 1.341 (colored)

resync with head

Revision 1.338.8.4 / (download) - annotate - [select for diffs], Fri Feb 8 20:58:17 2013 UTC (11 years ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE
Branch point for: netbsd-6-1
Changes since 1.338.8.3: +61 -0 lines
Diff to previous 1.338.8.3 (colored) to branchpoint 1.338 (colored)

Pull up following revision(s) (requested by martin in ticket #797):
	sys/arch/sparc64/sparc64/locore.s: revision 1.347
	sys/arch/sparc64/sparc64/mp_subr.S: revision 1.4
Fix sparc64_ipi_ccall by adding proper trap setup.
Fixes xcall(9) problems, as exposed by pserialize(9). Noticed by
J. Hannken-Illjes, cause pointed out by Takeshi Nakayama.

Revision 1.347 / (download) - annotate - [select for diffs], Wed Jan 23 21:03:25 2013 UTC (11 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.346: +62 -1 lines
Diff to previous 1.346 (colored)

Fix sparc64_ipi_ccall by adding proper trap setup.
Fixes xcall(9) problems, as exposed by pserialize(9). Noticed by
J. Hannken-Illjes, cause pointed out by Takeshi Nakayama.

Revision 1.346 / (download) - annotate - [select for diffs], Wed Jan 23 12:19:02 2013 UTC (11 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.345: +14 -9 lines
Diff to previous 1.345 (colored)

Sligthly clean up the (by default unused) #ifdef TRAPS_USE_IG

Revision 1.338.2.2 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:06 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.338.2.1: +66 -6 lines
Diff to previous 1.338.2.1 (colored) to branchpoint 1.338 (colored)

sync with (a bit old) head

Revision 1.338.8.3 / (download) - annotate - [select for diffs], Fri Nov 23 16:12:36 2012 UTC (11 years, 3 months ago) by riz
Branch: netbsd-6
Changes since 1.338.8.2: +77 -3 lines
Diff to previous 1.338.8.2 (colored) to branchpoint 1.338 (colored)

Pull up following revision(s) (requested by macallan in ticket #695):
	sys/arch/sparc64/include/cpu.h: revision 1.99
	sys/arch/sparc64/sparc64/cpu.c: revision 1.103
	sys/arch/sparc64/include/psl.h: revision 1.50
	sys/arch/sparc64/sparc64/clock.c: revision 1.107
	sys/arch/sparc64/include/ctlreg.h: revision 1.57
	sys/arch/sparc64/sparc64/locore.s: revision 1.342
use system tick timer instead of %tick on UltraSPARC-III-ish CPUs
review & fixes by Takeshi Nakayama

Revision 1.341.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:01:46 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.341: +66 -6 lines
Diff to previous 1.341 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.345 / (download) - annotate - [select for diffs], Sat Nov 10 01:47:25 2012 UTC (11 years, 3 months ago) by nakayama
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7
Changes since 1.344: +3 -3 lines
Diff to previous 1.344 (colored)

Revise comment.

Revision 1.344 / (download) - annotate - [select for diffs], Sat Nov 10 01:35:14 2012 UTC (11 years, 3 months ago) by nakayama
Branch: MAIN
Changes since 1.343: +2 -2 lines
Diff to previous 1.343 (colored)

Use macro instead of magic number.

Revision 1.343 / (download) - annotate - [select for diffs], Fri Nov 9 10:06:00 2012 UTC (11 years, 3 months ago) by nakayama
Branch: MAIN
Changes since 1.342: +1 -15 lines
Diff to previous 1.342 (colored)

Make setstick() and getstick() to inline functions.

Revision 1.342 / (download) - annotate - [select for diffs], Thu Nov 8 00:34:38 2012 UTC (11 years, 3 months ago) by macallan
Branch: MAIN
Changes since 1.341: +78 -4 lines
Diff to previous 1.341 (colored)

use system tick timer instead of %tick on UltraSPARC-III-ish CPUs
review & fixes by Takeshi Nakayama

Revision 1.338.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:56 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.338: +6 -13 lines
Diff to previous 1.338 (colored)

sync with head

Revision 1.338.6.5 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:20 2012 UTC (11 years, 10 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.338.6.4: +3 -3 lines
Diff to previous 1.338.6.4 (colored) to branchpoint 1.338 (colored) next main 1.339 (colored)

sync to latest -current.

Revision 1.338.8.2 / (download) - annotate - [select for diffs], Wed Mar 21 16:10:21 2012 UTC (11 years, 11 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6-0
Changes since 1.338.8.1: +3 -3 lines
Diff to previous 1.338.8.1 (colored) to branchpoint 1.338 (colored)

Pull up following revision(s) (requested by mrg in ticket #131):
	sys/arch/sparc64/sparc64/trap.c: revision 1.170
	sys/arch/sparc64/sparc64/trap.c: revision 1.171
	sys/arch/sparc64/sparc64/locore.s: revision 1.341
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.
count ECC corrected traps with evcnt(9).

Revision 1.341 / (download) - annotate - [select for diffs], Sat Mar 17 22:19:53 2012 UTC (11 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.340: +3 -3 lines
Diff to previous 1.340 (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.232.2.6 / (download) - annotate - [select for diffs], Sat Mar 17 19:40:41 2012 UTC (11 years, 11 months ago) by bouyer
Branch: netbsd-4
Changes since 1.232.2.5: +4 -1 lines
Diff to previous 1.232.2.5 (colored) to branchpoint 1.232 (colored) next main 1.233 (colored)

Pull up following revision(s) via patch (requested by nakayama in ticket #1443):
	sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71
	doc/HACKS: revision 1.123
	sys/arch/sparc64/conf/files.sparc64: revision 1.138
	sys/arch/sparc64/sparc64/locore.s: revision 1.340
Fix the root cause of the hack "disable optimizations for uvm_bio.c
on 32 bit kernels".
gcc converts a division in the calculation of UBC_UMAP_ADDR macro
to multiplication (smul or combination of add/sll), and the
register of its result contains a garbage in upper 32 bits (the
upper 32 bits of smul/add/sll's result isn't zero cleared).
Then it passes to pseg_get{,_real} through pmap_extract without the
zero clear of upper 32 bits in the optimization case.  So the
result of pseg_get and pmap_extact sometimes gets screwed up.
The hack has been resolved in the revision 1.340 of
sys/arch/sparc64/sparc64/locore.s.

Revision 1.232.2.2.4.2 / (download) - annotate - [select for diffs], Sat Mar 17 19:39:34 2012 UTC (11 years, 11 months ago) by bouyer
Branch: netbsd-4-0
Changes since 1.232.2.2.4.1: +4 -1 lines
Diff to previous 1.232.2.2.4.1 (colored) to branchpoint 1.232.2.2 (colored) next main 1.232.2.3 (colored)

Pull up following revision(s) via patch (requested by nakayama in ticket #1443):
	sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71
	doc/HACKS: revision 1.123
	sys/arch/sparc64/conf/files.sparc64: revision 1.138
	sys/arch/sparc64/sparc64/locore.s: revision 1.340
Fix the root cause of the hack "disable optimizations for uvm_bio.c
on 32 bit kernels".
gcc converts a division in the calculation of UBC_UMAP_ADDR macro
to multiplication (smul or combination of add/sll), and the
register of its result contains a garbage in upper 32 bits (the
upper 32 bits of smul/add/sll's result isn't zero cleared).
Then it passes to pseg_get{,_real} through pmap_extract without the
zero clear of upper 32 bits in the optimization case.  So the
result of pseg_get and pmap_extact sometimes gets screwed up.
The hack has been resolved in the revision 1.340 of
sys/arch/sparc64/sparc64/locore.s.

Revision 1.286.2.2.2.1 / (download) - annotate - [select for diffs], Sat Mar 17 18:46:29 2012 UTC (11 years, 11 months ago) by bouyer
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE
Changes since 1.286.2.2: +4 -1 lines
Diff to previous 1.286.2.2 (colored) next main 1.286.2.3 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1736):
	sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71
	doc/HACKS: revision 1.123
	sys/arch/sparc64/conf/files.sparc64: revision 1.138
	sys/arch/sparc64/sparc64/locore.s: revision 1.340
Fix the root cause of the hack "disable optimizations for uvm_bio.c
on 32 bit kernels".
gcc converts a division in the calculation of UBC_UMAP_ADDR macro
to multiplication (smul or combination of add/sll), and the
register of its result contains a garbage in upper 32 bits (the
upper 32 bits of smul/add/sll's result isn't zero cleared).
Then it passes to pseg_get{,_real} through pmap_extract without the
zero clear of upper 32 bits in the optimization case.  So the
result of pseg_get and pmap_extact sometimes gets screwed up.
The hack has been resolved in the revision 1.340 of
sys/arch/sparc64/sparc64/locore.s.

Revision 1.286.6.2 / (download) - annotate - [select for diffs], Sat Mar 17 18:45:10 2012 UTC (11 years, 11 months ago) by bouyer
Branch: netbsd-5-0
Changes since 1.286.6.1: +4 -1 lines
Diff to previous 1.286.6.1 (colored) to branchpoint 1.286 (colored) next main 1.287 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1736):
	sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71
	doc/HACKS: revision 1.123
	sys/arch/sparc64/conf/files.sparc64: revision 1.138
	sys/arch/sparc64/sparc64/locore.s: revision 1.340
Fix the root cause of the hack "disable optimizations for uvm_bio.c
on 32 bit kernels".
gcc converts a division in the calculation of UBC_UMAP_ADDR macro
to multiplication (smul or combination of add/sll), and the
register of its result contains a garbage in upper 32 bits (the
upper 32 bits of smul/add/sll's result isn't zero cleared).
Then it passes to pseg_get{,_real} through pmap_extract without the
zero clear of upper 32 bits in the optimization case.  So the
result of pseg_get and pmap_extact sometimes gets screwed up.
The hack has been resolved in the revision 1.340 of
sys/arch/sparc64/sparc64/locore.s.

Revision 1.286.2.3 / (download) - annotate - [select for diffs], Sat Mar 17 18:44:07 2012 UTC (11 years, 11 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.286.2.2: +4 -1 lines
Diff to previous 1.286.2.2 (colored) to branchpoint 1.286 (colored) next main 1.287 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1736):
	sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71
	doc/HACKS: revision 1.123
	sys/arch/sparc64/conf/files.sparc64: revision 1.138
	sys/arch/sparc64/sparc64/locore.s: revision 1.340
Fix the root cause of the hack "disable optimizations for uvm_bio.c
on 32 bit kernels".
gcc converts a division in the calculation of UBC_UMAP_ADDR macro
to multiplication (smul or combination of add/sll), and the
register of its result contains a garbage in upper 32 bits (the
upper 32 bits of smul/add/sll's result isn't zero cleared).
Then it passes to pseg_get{,_real} through pmap_extract without the
zero clear of upper 32 bits in the optimization case.  So the
result of pseg_get and pmap_extact sometimes gets screwed up.
The hack has been resolved in the revision 1.340 of
sys/arch/sparc64/sparc64/locore.s.

Revision 1.338.6.4 / (download) - annotate - [select for diffs], Tue Mar 6 18:26:38 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.338.6.3: +4 -1 lines
Diff to previous 1.338.6.3 (colored) to branchpoint 1.338 (colored)

sync to -current

Revision 1.338.6.3 / (download) - annotate - [select for diffs], Tue Mar 6 09:56:09 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.338.6.2: +1 -4 lines
Diff to previous 1.338.6.2 (colored) to branchpoint 1.338 (colored)

sync to -current

Revision 1.338.8.1 / (download) - annotate - [select for diffs], Mon Mar 5 20:59:25 2012 UTC (11 years, 11 months ago) by sborrill
Branch: netbsd-6
Changes since 1.338: +4 -1 lines
Diff to previous 1.338 (colored)

Pull up the following revisions(s) (requested by nakayama in ticket #85):
	sys/arch/sparc64/sparc64/locore.s:	revision 1.340
	doc/HACKS:				revision 1.123
	sys/arch/sparc64/conf/Makefile.sparc64:	revision 1.71
	sys/arch/sparc64/conf/files.sparc64:	revision 1.138

Fix the root cause of the hack "disable optimizations for uvm_bio.c
on 32 bit kernels".

Revision 1.338.6.2 / (download) - annotate - [select for diffs], Sun Mar 4 00:46:13 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.338.6.1: +4 -1 lines
Diff to previous 1.338.6.1 (colored) to branchpoint 1.338 (colored)

sync to latest -current.

Revision 1.340 / (download) - annotate - [select for diffs], Sat Mar 3 03:17:32 2012 UTC (12 years ago) by nakayama
Branch: MAIN
CVS Tags: jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base4
Changes since 1.339: +4 -1 lines
Diff to previous 1.339 (colored)

Fix the root cause of the hack "disable optimizations for uvm_bio.c
on 32 bit kernels".

gcc converts a division in the calculation of UBC_UMAP_ADDR macro
to multiplication (smul or combination of add/sll), and the
register of its result contains a garbage in upper 32 bits (the
upper 32 bits of smul/add/sll's result isn't zero cleared).

Then it passes to pseg_get{,_real} through pmap_extract without the
zero clear of upper 32 bits in the optimization case.  So the
result of pseg_get and pmap_extact sometimes gets screwed up.

Revision 1.338.6.1 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:35 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.338: +1 -11 lines
Diff to previous 1.338 (colored)

sync to -current.

Revision 1.339 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:30 2012 UTC (12 years ago) by rmind
Branch: MAIN
CVS Tags: jmcneill-usbmp-base5, jmcneill-usbmp-base3
Changes since 1.338: +1 -11 lines
Diff to previous 1.338 (colored)

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

Revision 1.338 / (download) - annotate - [select for diffs], Sun Sep 4 12:17:13 2011 UTC (12 years, 5 months ago) by nakayama
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.337: +2 -2 lines
Diff to previous 1.337 (colored)

ih_pil is an interrupt level, not an interrupt mask.

Revision 1.337 / (download) - annotate - [select for diffs], Wed Jul 27 20:07:49 2011 UTC (12 years, 7 months ago) by nakayama
Branch: MAIN
Changes since 1.336: +7 -7 lines
Diff to previous 1.336 (colored)

ivec is assigned to hardware, so count its event counter up in
interrupt_vector, not in softint, and do some optimization.

Revision 1.336 / (download) - annotate - [select for diffs], Wed Jul 20 12:06:00 2011 UTC (12 years, 7 months ago) by macallan
Branch: MAIN
Changes since 1.335: +6 -1 lines
Diff to previous 1.335 (colored)

add per ivec event counters

Revision 1.335 / (download) - annotate - [select for diffs], Tue Jul 12 07:51:34 2011 UTC (12 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.334: +4 -1 lines
Diff to previous 1.334 (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.333.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:43 2011 UTC (12 years, 8 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.333: +141 -6 lines
Diff to previous 1.333 (colored) next main 1.334 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.334 / (download) - annotate - [select for diffs], Sat Jun 18 18:51:18 2011 UTC (12 years, 8 months ago) by nakayama
Branch: MAIN
Changes since 1.333: +141 -6 lines
Diff to previous 1.333 (colored)

Add fast softint(9) support for sparc64.

Reviewed on port-sparc64.

Revision 1.332.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:06:53 2011 UTC (12 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.332: +5 -6 lines
Diff to previous 1.332 (colored) next main 1.333 (colored)

Sync with HEAD.

Revision 1.327.2.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:19 2011 UTC (12 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.327.2.2: +4 -5 lines
Diff to previous 1.327.2.2 (colored) to branchpoint 1.327 (colored) next main 1.328 (colored)

sync with head

Revision 1.333 / (download) - annotate - [select for diffs], Thu May 12 05:43:54 2011 UTC (12 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.332: +5 -6 lines
Diff to previous 1.332 (colored)

first steps towards fujitsu SPARC64 support:

- SPARC64 systems have interrupts with upto 14 bits set, but we only look
  at the first 11 bits.  trim non IPI interrupts to 11 bits

Revision 1.327.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:52:08 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.327.2.1: +8 -12 lines
Diff to previous 1.327.2.1 (colored) to branchpoint 1.327 (colored)

sync with head

Revision 1.332 / (download) - annotate - [select for diffs], Mon Dec 20 00:25:44 2010 UTC (13 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: uebayasi-xip-base7, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.331: +5 -5 lines
Diff to previous 1.331 (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.311.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:45:20 2010 UTC (13 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.311.2.1: +63 -1647 lines
Diff to previous 1.311.2.1 (colored) to branchpoint 1.311 (colored) next main 1.312 (colored)

Sync with HEAD.

Revision 1.278.4.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:52:48 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.278.4.3: +79 -1680 lines
Diff to previous 1.278.4.3 (colored) to branchpoint 1.278 (colored) next main 1.279 (colored)

sync with head.

Revision 1.331 / (download) - annotate - [select for diffs], Sat Jul 10 10:10:36 2010 UTC (13 years, 7 months ago) by nakayama
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.330: +4 -8 lines
Diff to previous 1.330 (colored)

Clear the upper word explicitly before combining two 32-bit values to 64-bit
on 32-bit kernels.

Revision 1.327.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:09 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.327: +76 -1673 lines
Diff to previous 1.327 (colored)

sync with head

Revision 1.330 / (download) - annotate - [select for diffs], Sun May 23 18:49:14 2010 UTC (13 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.329: +72 -1650 lines
Diff to previous 1.329 (colored)

Split copy related functions out of locore.s into copy.S, move functions
only needed on multiprocessors into mp_subr.S.

Revision 1.329 / (download) - annotate - [select for diffs], Mon May 17 11:51:10 2010 UTC (13 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.328: +11 -13 lines
Diff to previous 1.328 (colored)

Simplify primary CPU startup slightly by using the fact that our cpuinfo's
curpcb pointer points to the uarea/pcb of lwp0 and by remembering the pointer
to this cpuinfo, thus avoiding a few CPUINFO_VA references.

Revision 1.311.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:39:52 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.311: +261 -2372 lines
Diff to previous 1.311 (colored)

Sync with HEAD.

Revision 1.286.6.1.2.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:33:49 2010 UTC (13 years, 10 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.286.6.1: +84 -16 lines
Diff to previous 1.286.6.1 (colored) next main 1.286.6.2 (colored)

sync to netbsd-5

Revision 1.328 / (download) - annotate - [select for diffs], Sat Mar 20 23:31:30 2010 UTC (13 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.327: +6 -23 lines
Diff to previous 1.327 (colored)

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

Revision 1.286.2.2 / (download) - annotate - [select for diffs], Wed Mar 17 03:10:39 2010 UTC (13 years, 11 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, matt-nb5-pq3-base, matt-nb5-pq3
Branch point for: netbsd-5-1
Changes since 1.286.2.1: +84 -16 lines
Diff to previous 1.286.2.1 (colored) to branchpoint 1.286 (colored)

Apply patch (requested by mrg in ticket #1343):
- flush the dcache around pmap_{zero,copy}_page()
- convert all blast_dcache() / dcache_flush_page() calls to
  properly handle flushes in all cpus as necessary

Revision 1.278.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:01 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.278.4.2: +403 -2835 lines
Diff to previous 1.278.4.2 (colored) to branchpoint 1.278 (colored)

sync with head

Revision 1.327 / (download) - annotate - [select for diffs], Wed Mar 10 06:57:22 2010 UTC (13 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.326: +9 -8 lines
Diff to previous 1.326 (colored)

XXX: workaround we'd like to remove when pmap / uvm locking is cleaned up:

- rename pseg_get() and pseg_set() to pseg_get_real() and pseg_set_real().
- if USE_LOCKSAFE_PSEG_GETSET is defined, which it current is by default,
  define pseg_[gs]et() in terms of functions that take a new pseg_lock
  mutex at IPL_VM while calling into the real functions.

this seems to avoid the pseg_set() crashes we've seen:
  1 - spare needed, when pseg_get() just worked for this pmap
  2 - the 2rd ldxa via ASI_PHYS_CACHED in pseg_set() loads garbage
      into %o4, and causes the 3rd ldxa to fault

Revision 1.326 / (download) - annotate - [select for diffs], Mon Mar 8 08:59:06 2010 UTC (13 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.325: +35 -13 lines
Diff to previous 1.325 (colored)

blast_dcache() SMP friendly:

- blast_dcache() becomes sp_blast_dcache(dcache_size, dcache_line_size)
- new smp_blast_dcache(sparc64_cpuset_t) that blasts the D$ on this cpuset
- sparc64_ipi_blast_dcache() to support the above
- in pmap_remove_all(), when freeing mmu contexts for this pmap, mark
  the set of cpus to blast the d$ on as well and convert the
  blast_dcache() call into smp_blast_dcache() on the cpus who ran this
  pmap, or, sp_blast_dcache(dcache_size, dcache_line_size)
- convert the remaining blast_dcache() in machdep.c to sp_blast_dcache()
- in pmap_destroy()/pmap_remove_all() take the pmap_lock() always since
  we assert it is held always.

with these changes, NFS builds on the U60 seem to be stable now, and
the USIII machines also can often complete a single build.sh run now,
diskful or diskless.


reviewed by mlelstv and partially by martin, tested by martin and myself,
with some ideas from chuq as well.

Revision 1.325 / (download) - annotate - [select for diffs], Sun Mar 7 01:52:44 2010 UTC (13 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.324: +1 -5 lines
Diff to previous 1.324 (colored)

need _ALIGN in locore.h as well, for DEBUG kernels.

Revision 1.324 / (download) - annotate - [select for diffs], Sun Mar 7 00:42:58 2010 UTC (13 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.323: +11 -11 lines
Diff to previous 1.323 (colored)

gas has supported SPARC ".empty" for a long while; get rid of an
ancient workaround.

Revision 1.323 / (download) - annotate - [select for diffs], Sat Mar 6 23:26:10 2010 UTC (13 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.322: +2 -1937 lines
Diff to previous 1.322 (colored)

move the memcpy/memset implementations out into their own file, with the
block copy versions as well.  move some of the definitions in locore.s
into a new locore.h.

locore.s is almost 2000 lines shorter with this change.

Revision 1.322 / (download) - annotate - [select for diffs], Thu Mar 4 08:01:35 2010 UTC (14 years ago) by mrg
Branch: MAIN
Changes since 1.321: +19 -17 lines
Diff to previous 1.321 (colored)

- in _bus_dmamap_unload(), pmap_page_protect() and pmap_clear_reference()
  switch the dcache_flush_page() into a dcache_flush_page_all()
- in both pmap_kremove()/pmap_remove(), remove the blast_dcache() call
  and replace it with dcache_flush_page_all()
- in pmap_get_page() [used to allocate PTP's], always call pmap_zero_page(pa)
- flush the dcache of the dst page in pmap_{copy,zero}_page() by redirecting
  throught a C function that calls the (renamed) asm.  the old asm code had a
  comment about needing to do this...
- add a couple of membar #Sync's that the USIII manual recommends


based on discussions with chuq@, skrll@ and martin@.


these help my SB2000 / SB2500 with both disk / nfs builds and other tasks,
sometimes lasting for several hours before failing or asserting.

Revision 1.321 / (download) - annotate - [select for diffs], Wed Feb 24 09:49:36 2010 UTC (14 years ago) by mrg
Branch: MAIN
Changes since 1.320: +60 -1 lines
Diff to previous 1.320 (colored)

when handing back page table pages to UVM, flush them from the dcache
on all CPUs.

idea from skrll@, and makes my disk-based SB2000 stable.

tested on U60, SB2000 and SB2500.

Revision 1.320 / (download) - annotate - [select for diffs], Wed Feb 24 01:58:53 2010 UTC (14 years ago) by mrg
Branch: MAIN
Changes since 1.319: +3 -2 lines
Diff to previous 1.319 (colored)

- re-introduce sp_tlb_flush_pte() and sp_tlb_flush_all() that call
  the right USI/USIII version.
- define tlb_flush_pte() in terms of sp_tlb_flush_pte() for the
  !MULTIPROCESSOR case

this centralises some CPU_IS_USIII_UP() tests.

Revision 1.319 / (download) - annotate - [select for diffs], Mon Feb 22 22:28:57 2010 UTC (14 years ago) by mrg
Branch: MAIN
Changes since 1.318: +1 -216 lines
Diff to previous 1.318 (colored)

move {dump,print}_[id]tlb() into a separate file.

Revision 1.318 / (download) - annotate - [select for diffs], Mon Feb 22 00:16:31 2010 UTC (14 years ago) by mrg
Branch: MAIN
Changes since 1.317: +111 -49 lines
Diff to previous 1.317 (colored)

- store the maximum [id]cache size / line size for each cpu

- remove patch_kernel() since it isn't necessary and has been patching
  the wrong thing in general.

- implement USIII versions of blast_icache(), dcache_flush_page() and
  cache_flush_phys().  use the newly recorded cache size/line sizes.

- in winfixsave, flush the D$ with the right size index and ops.  this
  kills one of the wrong tag->inval patches.

- for blast_dcache(), use the newly recorded dcache_size/line_size.

- for blast_icache(), use the newly recorded cache size/line sizes.
  for the USIII verison, disable the I$ while writing to ASI_ICACHE_TAG.


these changes removed several hard coded cache sizes values, some very
wrong kernel patching, and seem to make the current failure modes for
USIII less common, but not gone.

Revision 1.317 / (download) - annotate - [select for diffs], Mon Feb 15 12:46:24 2010 UTC (14 years ago) by mrg
Branch: MAIN
Changes since 1.316: +10 -22 lines
Diff to previous 1.316 (colored)

- don't flush 32-bit entries for 64-bit code, it does not seem to be
  necessary.  #define TLB_FLUSH_LOWVA to turn it back on.
- remove the #if 0'd code in sparc64_ipi_flush_pte_usiii(), i have
  verified that it is not required.
- add a missing membar #Sync to sp_tlb_flush_pte_usiii().

Revision 1.316 / (download) - annotate - [select for diffs], Mon Feb 15 11:46:54 2010 UTC (14 years ago) by nakayama
Branch: MAIN
Changes since 1.315: +8 -8 lines
Diff to previous 1.315 (colored)

Fix linker error of GENERIC32 kernel.

Revision 1.315 / (download) - annotate - [select for diffs], Mon Feb 15 09:56:33 2010 UTC (14 years ago) by mrg
Branch: MAIN
Changes since 1.314: +9 -9 lines
Diff to previous 1.314 (colored)

use TLB_SIZE_SPITFIRE in a couple of places, and note that the
{print,dump}_[id]tlb() versions are currently spitfire specific.

Revision 1.314 / (download) - annotate - [select for diffs], Mon Feb 15 07:56:51 2010 UTC (14 years ago) by mrg
Branch: MAIN
Changes since 1.313: +33 -16 lines
Diff to previous 1.313 (colored)

introduce a new patch_kernel() and call it from the end of bootstrap().
use it to patch up TLB flush instructions that don't match for USI/II
and later.  we can also hopefully use this to make GENERIC.MP minimally
expensive on single CPU machines as well.

this is the last piece needed to get GENERIC/GENERIC.MP to boot on the
USIII* machines.

idea and some initial code from openbsd.

Revision 1.313 / (download) - annotate - [select for diffs], Sat Feb 13 22:29:55 2010 UTC (14 years ago) by mrg
Branch: MAIN
Changes since 1.312: +1 -93 lines
Diff to previous 1.312 (colored)

remove KTR support.  it's never been a working part of netbsd src tree.

Revision 1.312 / (download) - annotate - [select for diffs], Tue Feb 9 23:05:16 2010 UTC (14 years ago) by wiz
Branch: MAIN
Changes since 1.311: +3 -3 lines
Diff to previous 1.311 (colored)

Fix typo in comment.

Revision 1.311 / (download) - annotate - [select for diffs], Sat Feb 6 00:23:30 2010 UTC (14 years ago) by mrg
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.310: +3 -7 lines
Diff to previous 1.310 (colored)

- properly map the schizo interrupt registers, so we can use the normal
  virtual mappings to access them.
- with the above fxied, kill SCHIZO_BUS_SPACE_BROKEN, and introduce
  an options CHEETAH for now, that disables the SPITFIRE code in locore.
- merge schizo_init() into schizo_attach() and clean up the softc a bit.


with this we are only one more step away from GENERIC booting on USIII
machines.

Revision 1.310 / (download) - annotate - [select for diffs], Tue Feb 2 04:28:56 2010 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.309: +49 -14 lines
Diff to previous 1.309 (colored)

- split sp_tlb_flush_pte() and switchtoctx() into sp_tlb_flush_pte_us()/
  sp_tlb_flush_pte_usiii() and switchtoctx_us()/switchtoctx_usiii() and
  implement the latter while i'm here.  it works ... sometimes i think,
  but also sometimes panics/hangs.
- fix a comment in sparc64_ipi_flush_pte_usiii()

Revision 1.309 / (download) - annotate - [select for diffs], Tue Feb 2 03:07:06 2010 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.308: +20 -34 lines
Diff to previous 1.308 (colored)

for now, reduce a few #ifdef SPITFIRE cases by introducing a new
ASI_DCACHE_TAG_OR_INV that is either ASI_DCACHE_{TAG,_INVALIDATE}.

increase the common code in cache_flush_phys().

Revision 1.308 / (download) - annotate - [select for diffs], Mon Feb 1 07:01:40 2010 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.307: +40 -13 lines
Diff to previous 1.307 (colored)

- sp_tlb_flush_all() becomes sp_tlb_flush_all_us() and sp_tlb_flush_all_usiii()
- sparc64_ipi_flush_pte() becomes sparc64_ipi_flush_pte_us() and
  sparc64_ipi_flush_pte_usiii()
- add some commented out code to disable interrupts and raise the traplevel
  in sparc64_ipi_flush_pte_usiii()
- cache_flush_phys() was missing a little of code in the cheetah case

Revision 1.307 / (download) - annotate - [select for diffs], Mon Feb 1 06:26:15 2010 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.306: +9 -66 lines
Diff to previous 1.306 (colored)

for USIII, use the new "tlb demap all" operation in sp_tlb_flush_all()

Revision 1.306 / (download) - annotate - [select for diffs], Mon Feb 1 03:43:27 2010 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.305: +1 -45 lines
Diff to previous 1.305 (colored)

remove unused icache_flush_page() implementation.

Revision 1.305 / (download) - annotate - [select for diffs], Sat Jan 23 23:39:27 2010 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.304: +1 -19 lines
Diff to previous 1.304 (colored)

remove the final uses of DATA_START.

now we can remove the 16KB space reserved at the start of the data segment,
and i now understand why i wrote this now removed comment 3.5 years ago:
"this shouldn't be needed... but kernel usually hangs without it"

Revision 1.304 / (download) - annotate - [select for diffs], Sat Jan 23 23:06:27 2010 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.303: +1 -60 lines
Diff to previous 1.303 (colored)

remove most of the code that writes debugging info DATA_START + offset.

Revision 1.303 / (download) - annotate - [select for diffs], Sat Jan 23 22:55:04 2010 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.302: +1 -152 lines
Diff to previous 1.302 (colored)

remove CHKPT() macro and uses.  it's likely wrong in SMP land and probably should
be replaced with KTR-style uses if necessary.

Revision 1.302 / (download) - annotate - [select for diffs], Sat Jan 23 21:46:59 2010 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.301: +2 -2 lines
Diff to previous 1.301 (colored)

fix a comment.

Revision 1.301 / (download) - annotate - [select for diffs], Thu Dec 10 05:10:03 2009 UTC (14 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.300: +2 -2 lines
Diff to previous 1.300 (colored)

Rename L_ADDR to L_PCB and amend some comments accordingly.

Revision 1.300 / (download) - annotate - [select for diffs], Sat Dec 5 22:25:51 2009 UTC (14 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.299: +7 -11 lines
Diff to previous 1.299 (colored)

- adjust the PA mask to the 43 bits supported by USIII.
- rework the spitfire/cheetah cache_flush_phys() to avoid several #ifdefs
- add a membar #Sync after sparc64_ipi_drop_fpstate (probably unnecessary)

Revision 1.299 / (download) - annotate - [select for diffs], Mon Nov 30 05:22:55 2009 UTC (14 years, 3 months ago) by nakayama
Branch: MAIN
Changes since 1.298: +4 -6 lines
Diff to previous 1.298 (colored)

sp_tlb_flush_pte for cheetah:
- restore interrupts properly in case of %tl > 0.

Revision 1.298 / (download) - annotate - [select for diffs], Mon Nov 30 01:58:49 2009 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.297: +40 -8 lines
Diff to previous 1.297 (colored)

stablize UP USIII support by blocking interrupts around sp_tlb_flush_pte()
i was seeing stack corruption while taking an interrupt in this function.

get USIII SMP mostly working by implementing the cheetah version of
sparc64_ipi_flush_pte().


SMP support is still not entirely stable.  i can reproducably get a:

	panic: fpusave_lwp ipi didn't

while running build.sh, when an awk process is exiting.  other simple
heavy work loads do not crash for me right now.

Revision 1.297 / (download) - annotate - [select for diffs], Mon Nov 30 01:45:04 2009 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.296: +1 -180 lines
Diff to previous 1.296 (colored)

delete some no longer used code:
- smp_tlb_flush_ctx()
- smp_tlb_flush_all()
- sparc64_ipi_flush_ctx()
- sparc64_ipi_flush_all()
- sp_tlb_flush_ctx()

Revision 1.296 / (download) - annotate - [select for diffs], Sun Nov 29 03:31:33 2009 UTC (14 years, 3 months ago) by nakayama
Branch: MAIN
Changes since 1.295: +8 -4 lines
Diff to previous 1.295 (colored)

- calculate end PA correctly.
- wrap more spitfire specific (flushing I$) code.
- fix inverted #if condition for flushing I$ (and restore ASI_ICACHE_TAG).

Revision 1.295 / (download) - annotate - [select for diffs], Sat Nov 28 21:38:55 2009 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.294: +108 -8 lines
Diff to previous 1.294 (colored)

implement enough code to get SB2000/SB2500 booting to multiuser.  does
not last long if you use it, but an idle machine has stayed up 10 hours.

- for the !SPITFIRE case, use ASI_DCACHE_INVALIDATE instead of
  ASI_DCACHE_TAG when clearing tlb entries.  from openbsd.

- convert some comment "! Not yet" into "WRITEME", so that attempting
  to build a USIII MULTIPROCESSOR kernel fails to build until the code
  is written.

- add some more WRITEME's for the above.

- implement a !SPITFIRE version of sp_tlb_flush_all().  since there are
  no spare regs, for now just always increase %tl around this call.  (we
  could maybe store a token in %o3 along with the saved %pstate info.)

Revision 1.294 / (download) - annotate - [select for diffs], Thu Nov 26 00:19:22 2009 UTC (14 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.293: +1 -6 lines
Diff to previous 1.293 (colored)

Kill proc0paddr.  Use lwp0.l_addr instead.

Revision 1.293 / (download) - annotate - [select for diffs], Wed Nov 25 02:34:34 2009 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.292: +5 -5 lines
Diff to previous 1.292 (colored)

s/L_ADDR/L_PCB/, requested by rmind.

Revision 1.292 / (download) - annotate - [select for diffs], Sat Oct 17 20:03:06 2009 UTC (14 years, 4 months ago) by nakayama
Branch: MAIN
Changes since 1.291: +3 -2 lines
Diff to previous 1.291 (colored)

Wrap unused code with #if 0 which is called from #if 0'ed code.

Revision 1.278.4.2 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:11 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.278.4.1: +12 -59 lines
Diff to previous 1.278.4.1 (colored) to branchpoint 1.278 (colored)

sync with head

Revision 1.286.6.1 / (download) - annotate - [select for diffs], Fri Jun 5 18:29:46 2009 UTC (14 years, 8 months ago) by snj
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE, 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
Branch point for: matt-nb5-mips64
Changes since 1.286: +11 -1 lines
Diff to previous 1.286 (colored)

Pull up following revision(s) (requested by martin in ticket #786):
	sys/arch/sparc64/include/cpu.h: revision 1.86
	sys/arch/sparc64/sparc64/locore.s: revision 1.291
	sys/arch/sparc64/sparc64/vm_machdep.c: revision 1.89
cpu_setfunc() can not use lwp_trampoline, as that has additional lwp startup
semantics. Use a simpler setfunc_trampoline instead.

Revision 1.286.2.1 / (download) - annotate - [select for diffs], Fri Jun 5 18:28:34 2009 UTC (14 years, 8 months ago) by snj
Branch: netbsd-5
Changes since 1.286: +11 -1 lines
Diff to previous 1.286 (colored)

Pull up following revision(s) (requested by martin in ticket #786):
	sys/arch/sparc64/include/cpu.h: revision 1.86
	sys/arch/sparc64/sparc64/locore.s: revision 1.291
	sys/arch/sparc64/sparc64/vm_machdep.c: revision 1.89
cpu_setfunc() can not use lwp_trampoline, as that has additional lwp startup
semantics. Use a simpler setfunc_trampoline instead.

Revision 1.291 / (download) - annotate - [select for diffs], Sat May 30 16:52:32 2009 UTC (14 years, 9 months ago) by martin
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.290: +11 -1 lines
Diff to previous 1.290 (colored)

cpu_setfunc() can not use lwp_trampoline, as that has additional lwp startup
semantics. Use a simpler setfunc_trampoline instead.

Revision 1.290 / (download) - annotate - [select for diffs], Mon May 18 11:42:30 2009 UTC (14 years, 9 months ago) by nakayama
Branch: MAIN
Changes since 1.289: +1 -56 lines
Diff to previous 1.289 (colored)

Remove random() from locore.s since it is in libkern.

Revision 1.289 / (download) - annotate - [select for diffs], Sat May 16 19:19:04 2009 UTC (14 years, 9 months ago) by nakayama
Branch: MAIN
Changes since 1.288: +2 -4 lines
Diff to previous 1.288 (colored)

Remove clear %tick in locore.s since it is cleared at cpu_initclocks() in
clock.c.

Revision 1.278.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:11:58 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.278: +162 -311 lines
Diff to previous 1.278 (colored)

sync with head.

Revision 1.285.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:16:51 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.285: +63 -23 lines
Diff to previous 1.285 (colored) next main 1.286 (colored)

Sync with HEAD.

Revision 1.266.6.7 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:32 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.266.6.6: +62 -22 lines
Diff to previous 1.266.6.6 (colored) to branchpoint 1.266 (colored) next main 1.267 (colored)

Sync with HEAD.

Revision 1.288 / (download) - annotate - [select for diffs], Mon Dec 15 06:44:56 2008 UTC (15 years, 2 months ago) by mrg
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.287: +60 -3 lines
Diff to previous 1.287 (colored)

restore some old "intrdebug" code, but leave it under NOT_DEBUG.  most
of it works, but one that prints func/arg for each handler is not very
stable...

for now, while schizo bus space pointer accesses aren't working, add
a SCHIZO_BUS_SPACE_BROKEN option so you can build a kernel with schizo.

with this, and the prior schizo interrupt fix, you can now fail to run
/sbin/init!

Revision 1.282.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:13:29 2008 UTC (15 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.282.2.1: +4 -21 lines
Diff to previous 1.282.2.1 (colored) next main 1.283 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.287 / (download) - annotate - [select for diffs], Tue Dec 9 21:01:02 2008 UTC (15 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base
Changes since 1.286: +1 -19 lines
Diff to previous 1.286 (colored)

Get rid of get_maxctx() - it doesn't work on newer cpus and we will have
to find a better way for (some) sun4v machines - all sun4u use 13 bit
contexts anyway.

Revision 1.286 / (download) - annotate - [select for diffs], Thu Oct 30 12:29:45 2008 UTC (15 years, 4 months ago) by nakayama
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, ad-audiomp2-base, ad-audiomp2
Branch point for: netbsd-5-0, netbsd-5
Changes since 1.285: +4 -3 lines
Diff to previous 1.285 (colored)

Wrap more code specific to USE_BLOCK_STORE_LOAD.

Revision 1.282.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:01 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.282: +87 -209 lines
Diff to previous 1.282 (colored)

Sync with HEAD.

Revision 1.278.6.3 / (download) - annotate - [select for diffs], Fri Oct 10 22:29:45 2008 UTC (15 years, 4 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.278.6.2: +18 -17 lines
Diff to previous 1.278.6.2 (colored) to branchpoint 1.278 (colored) next main 1.279 (colored)

Sync with HEAD.

Revision 1.266.6.6 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:27 2008 UTC (15 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.266.6.5: +17 -16 lines
Diff to previous 1.266.6.5 (colored) to branchpoint 1.266 (colored)

Sync with HEAD.

Revision 1.285 / (download) - annotate - [select for diffs], Sun Oct 5 02:00:53 2008 UTC (15 years, 4 months ago) by nakayama
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap
Changes since 1.284: +18 -17 lines
Diff to previous 1.284 (colored)

- in flushing cache, use 32 as increment/decrement value to match the
  cache line size.
- remove useless restore of %asi.
- remove nop in delay slot if we can.

Revision 1.266.6.5 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:09 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.266.6.4: +69 -192 lines
Diff to previous 1.266.6.4 (colored) to branchpoint 1.266 (colored)

Sync with HEAD.

Revision 1.232.2.5 / (download) - annotate - [select for diffs], Thu Sep 25 19:40:12 2008 UTC (15 years, 5 months ago) by bouyer
Branch: netbsd-4
Changes since 1.232.2.4: +1 -3 lines
Diff to previous 1.232.2.4 (colored) to branchpoint 1.232 (colored)

Pull up following revision(s) (requested by martin in ticket #945):
	sys/arch/sparc64/sparc64/locore.s: revision 1.261
Remove an unused .globl declaration

Revision 1.278.6.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:33:34 2008 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.278.6.1: +81 -271 lines
Diff to previous 1.278.6.1 (colored) to branchpoint 1.278 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.232.2.4 / (download) - annotate - [select for diffs], Tue Sep 16 18:49:34 2008 UTC (15 years, 5 months ago) by bouyer
Branch: netbsd-4
Changes since 1.232.2.3: +2 -1 lines
Diff to previous 1.232.2.3 (colored) to branchpoint 1.232 (colored)

Sync with the following revisions (requested by skrll in ticket #1196):
	gnu/dist/gdb						removed
	gnu/usr.bin/gdb53					removed
	distrib/cats/instkernel/Makefile			1.14.6.1
	gnu/dist/gdb6/bfd/config.bfd				1.3.6.1
	gnu/dist/gdb6/bfd/elfxx-sparc.c				1.1.1.2.6.1
	gnu/dist/gdb6/bfd/elfxx-sparc.h				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/Makefile.in				1.2.2.1.2.2
	gnu/dist/gdb6/gdb/alpha-tdep.c				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/alpha-tdep.h				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/alphabsd-nat.c			1.1.1.2.6.2
	gnu/dist/gdb6/gdb/alphabsd-nat.h			1.1.2.1
	gnu/dist/gdb6/gdb/alphabsd-tdep.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/alphabsd-tdep.h			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/alphanbsd-nat.c			1.1.2.1
	gnu/dist/gdb6/gdb/alphanbsd-tdep.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/amd64-nat.c				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/amd64bsd-nat.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/amd64nbsd-nat.c			1.1.1.2.6.3
	gnu/dist/gdb6/gdb/amd64nbsd-tdep.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/arm-tdep.h				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/armbsd-tdep.c				1.1.2.1
	gnu/dist/gdb6/gdb/armnbsd-nat.c				1.1.1.2.6.2
	gnu/dist/gdb6/gdb/armnbsd-tdep.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/configure				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/configure.ac				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/i386bsd-nat.c				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/i386nbsd-tdep.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/m68kbsd-nat.c				1.1.1.2.6.2
	gnu/dist/gdb6/gdb/mipsnbsd-nat.c			1.1.1.2.6.2
	gnu/dist/gdb6/gdb/nbsd-thread.c				1.1.2.3
	gnu/dist/gdb6/gdb/ppcnbsd-nat.c				1.1.1.2.6.2
	gnu/dist/gdb6/gdb/ppcnbsd-tdep.c			1.3.6.1
	gnu/dist/gdb6/gdb/sh-tdep.c				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/shnbsd-nat.c				1.1.1.2.6.3
	gnu/dist/gdb6/gdb/shnbsd-tdep.c				1.1.1.2.6.4
	gnu/dist/gdb6/gdb/shnbsd-tdep.h				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/sparc-nat.c				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/sparc64nbsd-nat.c			1.1.1.2.6.2
	gnu/dist/gdb6/gdb/sparcnbsd-nat.c			1.1.1.2.6.2
	gnu/dist/gdb6/gdb/tramp-frame.h				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/vaxbsd-nat.c				1.1.1.2.6.2
	gnu/dist/gdb6/gdb/config/alpha/nbsd.mh			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/config/arm/nbsd.mt			1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/arm/nbsdelf.mh			1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/i386/nbsd64.mh			1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/m68k/nbsdelf.mh		1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/mips/nbsd.mh			1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/powerpc/nbsd.mh		1.1.1.2.6.1
	gnu/dist/gdb6/gdb/config/sh/nbsd.mh			1.1.1.1.6.2
	gnu/dist/gdb6/gdb/config/sh/tm-nbsd.h			1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/sparc/nbsd64.mh		1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/sparc/nbsdelf.mh		1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/vax/nbsdelf.mh			1.1.1.1.6.1
	gnu/dist/gdb6/opcodes/configure				1.1.1.2.6.1
	gnu/dist/gdb6/opcodes/configure.in			1.1.1.2.6.1
	gnu/usr.bin/Makefile					1.126.4.1
	gnu/usr.bin/gdb6/arch/alpha/config.h			1.3.4.1
	gnu/usr.bin/gdb6/arch/alpha/defs.mk			1.2.6.1
	gnu/usr.bin/gdb6/arch/alpha/init.c			1.2.6.1
	gnu/usr.bin/gdb6/arch/alpha/nm.h			1.2.6.1
	gnu/usr.bin/gdb6/arch/arm/defs.mk			1.2.6.2
	gnu/usr.bin/gdb6/arch/arm/init.c			1.1.6.1
	gnu/usr.bin/gdb6/arch/armeb/config.h			1.1.6.2
	gnu/usr.bin/gdb6/arch/armeb/defs.mk			1.1.6.3
	gnu/usr.bin/gdb6/arch/armeb/init.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/armeb/tm.h			1.1.6.2
	gnu/usr.bin/gdb6/arch/armeb/version.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/i386/defs.mk			1.4.4.1
	gnu/usr.bin/gdb6/arch/i386/init.c			1.3.6.1
	gnu/usr.bin/gdb6/arch/m68000/config.h			1.1.6.2
	gnu/usr.bin/gdb6/arch/m68000/defs.mk			1.1.6.2
	gnu/usr.bin/gdb6/arch/m68000/init.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/m68000/tm.h			1.1.6.2
	gnu/usr.bin/gdb6/arch/m68000/version.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/m68k/defs.mk			1.1.4.1
	gnu/usr.bin/gdb6/arch/m68k/init.c			1.1.4.1
	gnu/usr.bin/gdb6/arch/mipseb/config.h			1.3.4.1
	gnu/usr.bin/gdb6/arch/mipseb/defs.mk			1.2.6.2
	gnu/usr.bin/gdb6/arch/mipseb/init.c			1.2.6.2
	gnu/usr.bin/gdb6/arch/mipsel/config.h			1.2.6.3
	gnu/usr.bin/gdb6/arch/mipsel/defs.mk			1.2.6.3
	gnu/usr.bin/gdb6/arch/mipsel/init.c			1.2.6.3
	gnu/usr.bin/gdb6/arch/mipsel/tm.h			1.2.6.2
	gnu/usr.bin/gdb6/arch/mipsel/version.c			1.2.6.2
	gnu/usr.bin/gdb6/arch/powerpc/defs.mk			1.3.6.1
	gnu/usr.bin/gdb6/arch/powerpc/init.c			1.3.6.1
	gnu/usr.bin/gdb6/arch/sh3eb/config.h			1.2.2.2
	gnu/usr.bin/gdb6/arch/sh3eb/defs.mk			1.2.8.3
	gnu/usr.bin/gdb6/arch/sh3eb/init.c			1.1.8.3
	gnu/usr.bin/gdb6/arch/sh3eb/nm.h			1.1.8.2
	gnu/usr.bin/gdb6/arch/sh3eb/tm.h			1.1.8.2
	gnu/usr.bin/gdb6/arch/sh3eb/version.c			1.1.8.2
	gnu/usr.bin/gdb6/arch/sh3el/config.h			1.2.2.2
	gnu/usr.bin/gdb6/arch/sh3el/defs.mk			1.2.8.3
	gnu/usr.bin/gdb6/arch/sh3el/init.c			1.1.8.3
	gnu/usr.bin/gdb6/arch/sh3el/nm.h			1.1.8.2
	gnu/usr.bin/gdb6/arch/sh3el/tm.h			1.1.8.2
	gnu/usr.bin/gdb6/arch/sh3el/version.c			1.1.8.2
	gnu/usr.bin/gdb6/arch/sparc/defs.mk			1.2.6.1
	gnu/usr.bin/gdb6/arch/sparc/init.c			1.1.6.1
	gnu/usr.bin/gdb6/arch/sparc64/defs.mk			1.2.6.1
	gnu/usr.bin/gdb6/arch/sparc64/init.c			1.1.6.1
	gnu/usr.bin/gdb6/arch/vax/config.h			1.1.6.2
	gnu/usr.bin/gdb6/arch/vax/defs.mk			1.1.6.2
	gnu/usr.bin/gdb6/arch/vax/init.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/vax/tm.h				1.1.6.2
	gnu/usr.bin/gdb6/arch/vax/version.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/x86_64/defs.mk			1.2.6.1
	gnu/usr.bin/gdb6/arch/x86_64/init.c			1.1.6.1
	gnu/usr.bin/gdb6/bfd/arch/armeb/bfd.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/armeb/bfdver.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/armeb/config.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/armeb/defs.mk			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/m68000/bfd.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/m68000/bfdver.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/m68000/config.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/m68000/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/mipsel/bfd.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/mipsel/bfdver.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/mipsel/config.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/mipsel/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/sh3eb/bfd.h			1.1.8.3
	gnu/usr.bin/gdb6/bfd/arch/sh3eb/bfdver.h		1.1.8.2
	gnu/usr.bin/gdb6/bfd/arch/sh3eb/config.h		1.1.8.2
	gnu/usr.bin/gdb6/bfd/arch/sh3eb/defs.mk			1.1.8.3
	gnu/usr.bin/gdb6/bfd/arch/sh3el/bfd.h			1.1.8.3
	gnu/usr.bin/gdb6/bfd/arch/sh3el/bfdver.h		1.1.8.2
	gnu/usr.bin/gdb6/bfd/arch/sh3el/config.h		1.1.8.2
	gnu/usr.bin/gdb6/bfd/arch/sh3el/defs.mk			1.1.8.3
	gnu/usr.bin/gdb6/bfd/arch/vax/bfd.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/vax/bfdver.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/vax/config.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/vax/defs.mk			1.1.6.2
	gnu/usr.bin/gdb6/gdb/Makefile				1.5.2.1.2.2
	gnu/usr.bin/gdb6/gdbtui/Makefile			1.2.6.1
	gnu/usr.bin/gdb6/libiberty/arch/armeb/config.h		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/armeb/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/m68000/config.h		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/m68000/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/mipsel/config.h		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/mipsel/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/sh3eb/config.h		1.1.8.2
	gnu/usr.bin/gdb6/libiberty/arch/sh3eb/defs.mk		1.1.8.2
	gnu/usr.bin/gdb6/libiberty/arch/sh3el/config.h		1.1.8.2
	gnu/usr.bin/gdb6/libiberty/arch/sh3el/defs.mk		1.1.8.2
	gnu/usr.bin/gdb6/libiberty/arch/vax/config.h		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/vax/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/armeb/config.h		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/armeb/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/m68000/config.h		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/m68000/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/mipsel/config.h		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/mipsel/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/sh3eb/config.h		1.1.8.2
	gnu/usr.bin/gdb6/opcodes/arch/sh3eb/defs.mk		1.1.8.3
	gnu/usr.bin/gdb6/opcodes/arch/sh3el/config.h		1.1.8.2
	gnu/usr.bin/gdb6/opcodes/arch/sh3el/defs.mk		1.1.8.3
	gnu/usr.bin/gdb6/opcodes/arch/vax/config.h		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/vax/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/armeb/config.h		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/armeb/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/m68000/config.h		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/m68000/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/mipsel/config.h		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/mipsel/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/sh3eb/config.h		1.1.8.2
	gnu/usr.bin/gdb6/readline/arch/sh3eb/defs.mk		1.1.8.2
	gnu/usr.bin/gdb6/readline/arch/sh3el/config.h		1.1.8.2
	gnu/usr.bin/gdb6/readline/arch/sh3el/defs.mk		1.1.8.2
	gnu/usr.bin/gdb6/readline/arch/vax/config.h		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/vax/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/sim/arch/mipseb/cconfig.h		1.1.2.1
	gnu/usr.bin/gdb6/sim/arch/mipseb/config.h		1.1.2.1
	gnu/usr.bin/gdb6/sim/arch/mipseb/defs.mk		1.1.2.1
	gnu/usr.bin/gdb6/sim/arch/mipsel/cconfig.h		1.1.2.1
	gnu/usr.bin/gdb6/sim/arch/mipsel/config.h		1.1.2.1
	gnu/usr.bin/gdb6/sim/arch/mipsel/defs.mk		1.1.2.1
	lib/libkvm/kvm_sparc64.c				1.10.18.2
	lib/libpthread/pthread.c				1.48.6.4
	lib/libpthread/pthread_barrier.c			1.6.18.1
	lib/libpthread/pthread_cond.c				1.18.12.2
	lib/libpthread/pthread_debug.h				1.8.18.1
	lib/libpthread/pthread_int.h				1.34.4.5
	lib/libpthread/pthread_lock.c				1.14.6.1
	lib/libpthread/pthread_mutex.c				1.22.4.2
	lib/libpthread/pthread_run.c				1.18.12.4
	lib/libpthread/pthread_rwlock.c				1.13.6.2
	lib/libpthread/pthread_sa.c				1.37.6.5
	lib/libpthread/pthread_sig.c				1.47.4.8
	lib/libpthread/pthread_sleep.c				1.7.6.2
	lib/libpthread/sem.c					1.9.6.2
	lib/libpthread/arch/sh3/pthread_md.h			1.3.6.1
	regress/lib/libpthread/resolv/Makefile			1.1.12.1
	regress/lib/libpthread/sigrunning/Makefile		1.1.2.1
	regress/lib/libpthread/sigrunning/sigrunning.c		1.1.2.1
	share/mk/bsd.own.mk					1.489.4.3
	sys/arch/amd64/amd64/locore.S				1.18.14.1
	sys/arch/amd64/amd64/machdep.c				1.44.2.3.2.1
	sys/arch/amd64/conf/kern.ldscript			1.1.70.1
	sys/arch/cats/conf/Makefile.cats.inc			1.17.30.1
	sys/arch/shark/conf/Makefile.shark.inc			1.6.30.1
	sys/arch/sparc64/conf/kern.ldscript			1.7.26.2
	sys/arch/sparc64/conf/kern32.ldscript			1.6.26.2
	sys/arch/sparc64/include/kcore.h			1.4.92.2
	sys/arch/sparc64/sparc64/locore.s			1.232.4.4
	sys/arch/sparc64/sparc64/machdep.c			1.193.4.3
	sys/arch/sparc64/sparc64/pmap.c				1.184.2.1.2.4
	sys/conf/newvers.sh					1.42.26.2
	sys/kern/kern_sa.c					1.87.4.11
	sys/kern/kern_synch.c					1.173.4.2
	sys/sys/savar.h						1.20.10.2
	tools/gdb/Makefile					1.9.4.1
	tools/gdb/mknative-gdb					1.1.6.1

pullup the wrstuden-fixsa CVS branch to netbsd-4:
toolchain/35540 - GDB 6 support for pthreads.
port-sparc64/37534 - ktrace firefox gives
    kernel trap 30: data access expection
GDB changes:
- delete gdb53
- enable gdb6 on all architectures
- add support for amd64 crash dumps
- add support for sparc64 crash dumps
- add support for /proc pid to executable filename for all archs
- enable thread support for all architectures
- add a note section to kernels to all platforms
- support detection/unwinding of signals for most architectures.
- Fix PTHREAD_UCONTEXT_TO_REG / PTHREAD_REG_TO_UCONTEXT on sh3.
- Apply fix from binutils-current so that sparc gdb can be cross built
  on a 64bit host.
SA/pthread changes:
Pre-allocate memory needed for event delivery. Eliminates dropped
interrupts under load.
Deliver intra-process signals to running threads
Eliminate some deadlock scenarios
Fix intra-process signal delivery when delivering to a thread waiting
for signals. Makes afs work again!

Revision 1.232.4.4 / (download) - annotate - [select for diffs], Thu Sep 4 08:46:43 2008 UTC (15 years, 5 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.232.4.3: +2 -2 lines
Diff to previous 1.232.4.3 (colored) to branchpoint 1.232 (colored) next main 1.233 (colored)

Sync with netbsd-4.

Revision 1.279.2.3 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:30 2008 UTC (15 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.279.2.2: +70 -193 lines
Diff to previous 1.279.2.2 (colored) to branchpoint 1.279 (colored) next main 1.280 (colored)

Sync with head.

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

Use proper CCR.

Revision 1.283 / (download) - annotate - [select for diffs], Thu Jul 10 15:23:58 2008 UTC (15 years, 7 months ago) by nakayama
Branch: MAIN
Changes since 1.282: +67 -190 lines
Diff to previous 1.282 (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.232.2.3 / (download) - annotate - [select for diffs], Sun Jul 6 17:35:01 2008 UTC (15 years, 7 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.232.2.2: +2 -2 lines
Diff to previous 1.232.2.2 (colored) to branchpoint 1.232 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1159):
	sys/arch/sparc64/sparc64/locore.s: revision 1.280
Close unterminated comment.
Fix unexpected behavior in case of loadfpstate from unaligned buffer.

Revision 1.232.2.2.4.1 / (download) - annotate - [select for diffs], Sun Jul 6 17:32:51 2008 UTC (15 years, 7 months ago) by bouyer
Branch: netbsd-4-0
CVS Tags: netbsd-4-0-1-RELEASE
Changes since 1.232.2.2: +2 -2 lines
Diff to previous 1.232.2.2 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1159):
	sys/arch/sparc64/sparc64/locore.s: revision 1.280
Close unterminated comment.
Fix unexpected behavior in case of loadfpstate from unaligned buffer.

Revision 1.204.8.2 / (download) - annotate - [select for diffs], Sun Jul 6 17:25:48 2008 UTC (15 years, 7 months ago) by bouyer
Branch: netbsd-3-1
Changes since 1.204.8.1: +2 -2 lines
Diff to previous 1.204.8.1 (colored) to branchpoint 1.204 (colored) next main 1.205 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1940):
	sys/arch/sparc64/sparc64/locore.s: revision 1.280
Close unterminated comment.
Fix unexpected behavior in case of loadfpstate from unaligned buffer.

Revision 1.204.6.2 / (download) - annotate - [select for diffs], Sun Jul 6 17:24:28 2008 UTC (15 years, 7 months ago) by bouyer
Branch: netbsd-3-0
Changes since 1.204.6.1: +2 -2 lines
Diff to previous 1.204.6.1 (colored) to branchpoint 1.204 (colored) next main 1.205 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1940):
	sys/arch/sparc64/sparc64/locore.s: revision 1.280
Close unterminated comment.
Fix unexpected behavior in case of loadfpstate from unaligned buffer.

Revision 1.204.4.2 / (download) - annotate - [select for diffs], Sun Jul 6 17:22:32 2008 UTC (15 years, 7 months ago) by bouyer
Branch: netbsd-3
Changes since 1.204.4.1: +2 -2 lines
Diff to previous 1.204.4.1 (colored) to branchpoint 1.204 (colored) next main 1.205 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1940):
	sys/arch/sparc64/sparc64/locore.s: revision 1.280
Close unterminated comment.
Fix unexpected behavior in case of loadfpstate from unaligned buffer.

Revision 1.279.2.2 / (download) - annotate - [select for diffs], Thu Jul 3 18:37:55 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.279.2.1: +12 -79 lines
Diff to previous 1.279.2.1 (colored) to branchpoint 1.279 (colored)

Sync with head.

Revision 1.266.6.4 / (download) - annotate - [select for diffs], Wed Jul 2 19:08:18 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.266.6.3: +7 -78 lines
Diff to previous 1.266.6.3 (colored) to branchpoint 1.266 (colored)

Sync with HEAD.

Revision 1.282 / (download) - annotate - [select for diffs], Wed Jul 2 12:15:19 2008 UTC (15 years, 8 months ago) by nakayama
Branch: MAIN
Branch point for: haad-dm
Changes since 1.281: +8 -79 lines
Diff to previous 1.281 (colored)

UltraSPARCs don't have floating point queue, and reading %fq regsiter
will cause illegal instruction trap. So remove the code handling them.

Revision 1.266.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:00 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.266.6.2: +5 -1 lines
Diff to previous 1.266.6.2 (colored) to branchpoint 1.266 (colored)

Sync with HEAD.

Revision 1.281 / (download) - annotate - [select for diffs], Sun Jun 29 07:31:55 2008 UTC (15 years, 8 months ago) by nakayama
Branch: MAIN
Changes since 1.280: +5 -1 lines
Diff to previous 1.280 (colored)

Wrap IPI calls with #ifdef MULTIPROCESSOR.

Revision 1.278.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:46 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.278: +4 -4 lines
Diff to previous 1.278 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.279.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:32:49 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.279: +2 -2 lines
Diff to previous 1.279 (colored)

Sync with head.

Revision 1.278.2.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:13 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.278.2.1: +2 -2 lines
Diff to previous 1.278.2.1 (colored) to branchpoint 1.278 (colored) next main 1.279 (colored)

sync with head.

Revision 1.280 / (download) - annotate - [select for diffs], Sat Jun 14 19:43:55 2008 UTC (15 years, 8 months ago) by nakayama
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.279: +2 -2 lines
Diff to previous 1.279 (colored)

Close unterminated comment.
Fix unexpected behavior in case of loadfpstate from unaligned buffer.

Revision 1.278.2.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:04:57 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.278: +3 -3 lines
Diff to previous 1.278 (colored)

sync with head

Revision 1.266.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:44 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.266.6.1: +19 -19 lines
Diff to previous 1.266.6.1 (colored) to branchpoint 1.266 (colored)

Sync with HEAD.

Revision 1.279 / (download) - annotate - [select for diffs], Sat May 31 07:54:03 2008 UTC (15 years, 9 months ago) by nakayama
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.278: +3 -3 lines
Diff to previous 1.278 (colored)

openfirmware_exit:
- disable interrupts with %pstate.
- prepare 64-bit stack and enable 64-bit addresses for 32-bit SMP kernels.

Revision 1.278 / (download) - annotate - [select for diffs], Wed Apr 16 15:31:15 2008 UTC (15 years, 10 months ago) by nakayama
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.277: +2 -2 lines
Diff to previous 1.277 (colored)

Disable TRAPSTATS which was accidentally enabled when yamt-idlelwp branch
was merged.

Ok by martin@.

Revision 1.277 / (download) - annotate - [select for diffs], Mon Apr 14 16:19:18 2008 UTC (15 years, 10 months ago) by nakayama
Branch: MAIN
Changes since 1.276: +1 -17 lines
Diff to previous 1.276 (colored)

Remove sparc64_ipi_sync_tick.

Since we can use counter-timer as timecounter instead of %tick on SMP kernel,
it is not necessary to sync all CPUs %tick registers.

Revision 1.276 / (download) - annotate - [select for diffs], Mon Apr 14 16:14:20 2008 UTC (15 years, 10 months ago) by nakayama
Branch: MAIN
Changes since 1.275: +17 -1 lines
Diff to previous 1.275 (colored)

Add workaround for BB_ERRATA_1 on writing to TICK_CMPR register in
next_tick().  If writing to TICK_CMPR fails, we lose hardclock interrupt
on secondary CPUs.

About BB_ERRATA_1 from comment in OpenSolaris:

/*
 * Writes to the TICK_COMPARE register sometimes fail on blackbird modules.
 * The failure occurs only when the following instruction decodes to wr or
 * wrpr.  The workaround is to immediately follow writes to TICK_COMPARE
 * with a read, thus stalling the pipe and keeping following instructions
 * from causing data corruption.  Aligning to a quadword will ensure these
 * two instructions are not split due to i$ misses.
 */

Revision 1.266.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:26 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.266: +311 -132 lines
Diff to previous 1.266 (colored)

Sync with HEAD.

Revision 1.275 / (download) - annotate - [select for diffs], Fri Mar 28 23:22:53 2008 UTC (15 years, 11 months ago) by nakayama
Branch: MAIN
Changes since 1.274: +4 -3 lines
Diff to previous 1.274 (colored)

Don't read fplwp content in delay slot for considering the case fplwp was
modifiled.

Reported by Chris Ross on port-sparc64.

Revision 1.205.2.9 / (download) - annotate - [select for diffs], Mon Mar 24 09:38:40 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.205.2.8: +32 -15 lines
Diff to previous 1.205.2.8 (colored) next main 1.206 (colored)

sync with head.

Revision 1.266.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:05 2008 UTC (15 years, 11 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.266: +310 -132 lines
Diff to previous 1.266 (colored) next main 1.267 (colored)

sync with head.

Revision 1.256.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:23 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.256.2.2: +317 -137 lines
Diff to previous 1.256.2.2 (colored) next main 1.257 (colored)

sync with HEAD

Revision 1.274 / (download) - annotate - [select for diffs], Thu Mar 20 19:31:33 2008 UTC (15 years, 11 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.273: +6 -8 lines
Diff to previous 1.273 (colored)

- remove disabling interrupt in IPI.
- unused VA bits in MMU demap is 13 bits, not 12 bits.

Revision 1.273 / (download) - annotate - [select for diffs], Tue Mar 18 18:22:43 2008 UTC (15 years, 11 months ago) by nakayama
Branch: MAIN
Changes since 1.272: +10 -1 lines
Diff to previous 1.272 (colored)

Fix a race when increment an interrupt level event counter.

Revision 1.272 / (download) - annotate - [select for diffs], Mon Mar 17 23:54:03 2008 UTC (15 years, 11 months ago) by nakayama
Branch: MAIN
Changes since 1.271: +18 -8 lines
Diff to previous 1.271 (colored)

Fix a race condition in IPI handlers of save/drop fpstate, from OpenBSD.
Reported and tested by martin@.

Revision 1.205.2.8 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:28 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.205.2.7: +289 -128 lines
Diff to previous 1.205.2.7 (colored)

sync with head.

Revision 1.271 / (download) - annotate - [select for diffs], Mon Mar 17 04:04:00 2008 UTC (15 years, 11 months ago) by nakayama
Branch: MAIN
Changes since 1.270: +3 -3 lines
Diff to previous 1.270 (colored)

Make schedintr interrupt handler per-CPU.
While there rename tickintr interrupt handler and share initialization
code with schedintr.

Revision 1.270 / (download) - annotate - [select for diffs], Fri Mar 14 15:38:00 2008 UTC (15 years, 11 months ago) by nakayama
Branch: MAIN
Changes since 1.269: +243 -80 lines
Diff to previous 1.269 (colored)

Improve IPI handling:
- make IPI takes two arguments.
- add IPI event counters per-CPU.
- implement IPI functions which were missing or broken.
- insert DELAY while halting primary CPU in IPI handler.

Revision 1.269 / (download) - annotate - [select for diffs], Sun Mar 2 15:28:26 2008 UTC (16 years ago) by nakayama
Branch: MAIN
Changes since 1.268: +30 -27 lines
Diff to previous 1.268 (colored)

- make interrupt pending list per-CPU.
- make tickintr() MP-safe.
- remove unused port-sparc derived interrupt code.

Ok by martin@.

Revision 1.268 / (download) - annotate - [select for diffs], Sun Mar 2 12:19:00 2008 UTC (16 years ago) by nakayama
Branch: MAIN
Changes since 1.267: +1 -6 lines
Diff to previous 1.267 (colored)

Don't get IPI handler argument (from bogus address), and ack IRQ twice.

Revision 1.267 / (download) - annotate - [select for diffs], Thu Feb 28 11:50:40 2008 UTC (16 years ago) by martin
Branch: MAIN
Changes since 1.266: +18 -18 lines
Diff to previous 1.266 (colored)

Make TSBs and MMU contexts per-cpu.

Revision 1.261.2.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:07 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.261: +9 -7 lines
Diff to previous 1.261 (colored) next main 1.262 (colored)

Sync with HEAD.

Revision 1.205.2.7 / (download) - annotate - [select for diffs], Mon Feb 4 09:22:35 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.205.2.6: +6 -5 lines
Diff to previous 1.205.2.6 (colored)

sync with head.

Revision 1.266 / (download) - annotate - [select for diffs], Sat Jan 26 11:43:36 2008 UTC (16 years, 1 month ago) by nakayama
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.265: +6 -5 lines
Diff to previous 1.265 (colored)

Fix for 32-bit kernels.

Revision 1.205.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:39:33 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.205.2.5: +17 -3 lines
Diff to previous 1.205.2.5 (colored)

sync with head

Revision 1.262.2.2 / (download) - annotate - [select for diffs], Sat Jan 19 12:14:45 2008 UTC (16 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.262.2.1: +2 -1 lines
Diff to previous 1.262.2.1 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored)

Sync with HEAD

Revision 1.232.4.3 / (download) - annotate - [select for diffs], Tue Jan 15 10:06:56 2008 UTC (16 years, 1 month ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.232.4.2: +2 -1 lines
Diff to previous 1.232.4.2 (colored) to branchpoint 1.232 (colored)

Apply a change from -current:

Store a sensbile PCB_PC value in snapshot - the return point.

This helps gdb somewhat.

OK'd by martin.

Revision 1.265 / (download) - annotate - [select for diffs], Tue Jan 15 10:04:39 2008 UTC (16 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.264: +2 -1 lines
Diff to previous 1.264 (colored)

Store a sensbile PCB_PC value in snapshot - the return point.

This helps gdb somewhat.

OK'd by martin.

Revision 1.264 / (download) - annotate - [select for diffs], Mon Jan 14 15:08:21 2008 UTC (16 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.263: +2 -2 lines
Diff to previous 1.263 (colored)

Fix register name typo/copy&pasto - %g6 is not %o6/%sp.
From OpenBSD.

Revision 1.256.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:49:07 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.256.2.1: +15 -2 lines
Diff to previous 1.256.2.1 (colored)

sync with HEAD

Revision 1.262.2.1 / (download) - annotate - [select for diffs], Tue Jan 8 22:10:28 2008 UTC (16 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.262: +2 -2 lines
Diff to previous 1.262 (colored)

Sync with HEAD

Revision 1.263 / (download) - annotate - [select for diffs], Sun Jan 6 17:22:15 2008 UTC (16 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.262: +2 -2 lines
Diff to previous 1.262 (colored)

Load the next cpu_info pointer with LDPTR instead of ld.

Revision 1.232.4.2 / (download) - annotate - [select for diffs], Sun Jan 6 05:00:59 2008 UTC (16 years, 1 month ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.232.4.1: +1 -2 lines
Diff to previous 1.232.4.1 (colored) to branchpoint 1.232 (colored)

Catch up to netbsd-4.0 release.

Revision 1.261.4.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:42:48 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.261: +14 -1 lines
Diff to previous 1.261 (colored) next main 1.262 (colored)

Sync with head.

Revision 1.261.6.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:20:46 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-kmem
Changes since 1.261: +14 -1 lines
Diff to previous 1.261 (colored) next main 1.262 (colored)

sync with head.

Revision 1.262 / (download) - annotate - [select for diffs], Sun Dec 9 20:12:54 2007 UTC (16 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.261: +14 -1 lines
Diff to previous 1.261 (colored)

Provide cpu_intr_p(), at least for non-MULTIPROCESSOR kernels.
Based on suggestions by Andrew Doran.

Revision 1.243.4.6 / (download) - annotate - [select for diffs], Mon Dec 3 19:04:19 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.243.4.5: +1 -3 lines
Diff to previous 1.243.4.5 (colored) to branchpoint 1.243 (colored) next main 1.244 (colored)

Sync with HEAD.

Revision 1.256.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:22:50 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.256: +35 -93 lines
Diff to previous 1.256 (colored)

sync with HEAD

Revision 1.232.2.2 / (download) - annotate - [select for diffs], Mon Oct 29 19:59:41 2007 UTC (16 years, 4 months ago) by pavel
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-base-1, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, matt-nb4-arm-base, matt-nb4-arm
Branch point for: netbsd-4-0
Changes since 1.232.2.1: +1 -2 lines
Diff to previous 1.232.2.1 (colored) to branchpoint 1.232 (colored)

Pull up patch (requested by martin in ticket #944):
	sys/arch/sparc64/sparc64/locore.s: patch
Avoid undefined symbol "time" in sparc64 kernels causing savecore confusion.

Revision 1.205.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:28:41 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.205.2.4: +35 -93 lines
Diff to previous 1.205.2.4 (colored)

sync with head.

Revision 1.252.8.4 / (download) - annotate - [select for diffs], Fri Oct 26 15:43:37 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.252.8.3: +1 -3 lines
Diff to previous 1.252.8.3 (colored) to branchpoint 1.252 (colored) next main 1.253 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.259.4.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:36:45 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.259: +1 -3 lines
Diff to previous 1.259 (colored) next main 1.260 (colored)

Sync with HEAD.

Revision 1.261 / (download) - annotate - [select for diffs], Mon Oct 22 01:43:39 2007 UTC (16 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2, mjf-devfs
Changes since 1.260: +1 -3 lines
Diff to previous 1.260 (colored)

Remove an unused .globl declaration

Revision 1.260 / (download) - annotate - [select for diffs], Wed Oct 17 19:57:31 2007 UTC (16 years, 4 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Changes since 1.259: +1 -1 lines
Diff to previous 1.259 (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.243.4.5 / (download) - annotate - [select for diffs], Tue Oct 9 13:38:33 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.243.4.4: +75 -116 lines
Diff to previous 1.243.4.4 (colored) to branchpoint 1.243 (colored)

Sync with head.

Revision 1.243.12.3 / (download) - annotate - [select for diffs], Wed Oct 3 19:25:26 2007 UTC (16 years, 5 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.243.12.2: +90 -144 lines
Diff to previous 1.243.12.2 (colored) to branchpoint 1.243 (colored) next main 1.244 (colored)

Sync with HEAD

Revision 1.252.8.3 / (download) - annotate - [select for diffs], Tue Oct 2 18:27:45 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.252.8.2: +35 -91 lines
Diff to previous 1.252.8.2 (colored) to branchpoint 1.252 (colored)

Sync with HEAD.

Revision 1.252.4.3 / (download) - annotate - [select for diffs], Mon Sep 10 10:54:39 2007 UTC (16 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.252.4.2: +35 -91 lines
Diff to previous 1.252.4.2 (colored) to branchpoint 1.252 (colored) next main 1.253 (colored)

Sync with HEAD.

Revision 1.259 / (download) - annotate - [select for diffs], Sun Sep 9 22:37:39 2007 UTC (16 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5
Branch point for: bouyer-xenamd64
Changes since 1.258: +14 -48 lines
Diff to previous 1.258 (colored)

Make cpufrequency and friends per cpu values.
Prepare a hz tick interrupt on secondary CPUs via %tick, but do not
enable it yet, as it breaks ddb.

Revision 1.258 / (download) - annotate - [select for diffs], Sun Sep 9 16:29:55 2007 UTC (16 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.257: +9 -4 lines
Diff to previous 1.257 (colored)

Do not ACK IPIs before we finished loading all arguments.

Revision 1.257 / (download) - annotate - [select for diffs], Thu Sep 6 20:22:51 2007 UTC (16 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.256: +14 -41 lines
Diff to previous 1.256 (colored)

Remove the (now unused) second 64k page mapped per CPU.
From matthew green, with small changes by me. All bugs are mine.

Revision 1.252.8.2 / (download) - annotate - [select for diffs], Mon Sep 3 16:47:43 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.252.8.1: +45 -30 lines
Diff to previous 1.252.8.1 (colored) to branchpoint 1.252 (colored)

Sync with HEAD.

Revision 1.205.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:30:22 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.205.2.3: +156 -788 lines
Diff to previous 1.205.2.3 (colored)

sync with head.

Revision 1.252.4.2 / (download) - annotate - [select for diffs], Mon Sep 3 10:19:37 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.252.4.1: +45 -30 lines
Diff to previous 1.252.4.1 (colored) to branchpoint 1.252 (colored)

Sync with HEAD.

Revision 1.232.4.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:06 2007 UTC (16 years, 6 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.232: +7 -2 lines
Diff to previous 1.232 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.232.2.1 / (download) - annotate - [select for diffs], Wed Aug 29 15:21:07 2007 UTC (16 years, 6 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1
Changes since 1.232: +7 -2 lines
Diff to previous 1.232 (colored)

Pull up the following (requested by martin in ticket #849):

fix per-cpu mapping of cpuinfo/kernel stack on
sparc64 to not use the same physical page.

Revision 1.256 / (download) - annotate - [select for diffs], Sat Aug 25 19:16:10 2007 UTC (16 years, 6 months ago) by martin
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.255: +10 -6 lines
Diff to previous 1.255 (colored)

Remove INITSTACK completely - at the time we used to switch to it, we
already have access to all of lwp0 and it's uarea - so we can switch
to the correct lwp0 stack easily before calling main.

Revision 1.255 / (download) - annotate - [select for diffs], Sat Aug 25 15:52:41 2007 UTC (16 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.254: +2 -4 lines
Diff to previous 1.254 (colored)

When exiting to OF, use the interrupt stack instead of INITSTACK

Revision 1.254 / (download) - annotate - [select for diffs], Sat Aug 25 15:50:24 2007 UTC (16 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.253: +35 -22 lines
Diff to previous 1.253 (colored)

Rework cpu_mp_startup slightly:
 - temporarily use the cpu's interrupt stack untill we are ready
   to access non-OF-based mappings, then directly switch to the cpu's
   idlelwp's uarea stack
 - disable interrupts untill we are ready to call C code

Revision 1.243.4.4 / (download) - annotate - [select for diffs], Mon Aug 20 18:39:03 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.243.4.3: +4 -3 lines
Diff to previous 1.243.4.3 (colored) to branchpoint 1.243 (colored)

Sync with HEAD.

Revision 1.252.8.1 / (download) - annotate - [select for diffs], Thu Aug 16 11:02:32 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.252: +4 -3 lines
Diff to previous 1.252 (colored)

Sync with HEAD.

Revision 1.252.4.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:47:47 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.252: +4 -3 lines
Diff to previous 1.252 (colored)

Sync with HEAD.

Revision 1.253 / (download) - annotate - [select for diffs], Mon Aug 13 03:09:13 2007 UTC (16 years, 6 months ago) by macallan
Branch: MAIN
Changes since 1.252: +4 -3 lines
Diff to previous 1.252 (colored)

remove two restore without matching save

Revision 1.243.4.3 / (download) - annotate - [select for diffs], Sun Jul 15 13:17:04 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.243.4.2: +13 -27 lines
Diff to previous 1.243.4.2 (colored) to branchpoint 1.243 (colored)

Sync with head.

Revision 1.243.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:02:40 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.243: +109 -757 lines
Diff to previous 1.243 (colored) next main 1.244 (colored)

Sync with head.

Revision 1.252 / (download) - annotate - [select for diffs], Fri Jul 6 07:36:46 2007 UTC (16 years, 7 months ago) by martin
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.251: +11 -15 lines
Diff to previous 1.251 (colored)

A few nits for 32bit SMP kernels, noticed by mrg.
While there, simplify the fpstate IPIs a bit.

Revision 1.251 / (download) - annotate - [select for diffs], Thu Jul 5 20:21:11 2007 UTC (16 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.250: +3 -13 lines
Diff to previous 1.250 (colored)

sparc64_ipi_save_fpstate is not a leaf function - create a full grown
stack frame.

Revision 1.243.12.2 / (download) - annotate - [select for diffs], Tue Jun 26 18:13:43 2007 UTC (16 years, 8 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.243.12.1: +5 -7 lines
Diff to previous 1.243.12.1 (colored) to branchpoint 1.243 (colored)

Sync with HEAD.

Revision 1.243.4.2 / (download) - annotate - [select for diffs], Sat Jun 9 23:55:28 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.243.4.1: +2 -5 lines
Diff to previous 1.243.4.1 (colored) to branchpoint 1.243 (colored)

Sync with head.

Revision 1.250 / (download) - annotate - [select for diffs], Mon May 28 20:09:50 2007 UTC (16 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.249: +2 -5 lines
Diff to previous 1.249 (colored)

clean up cpu_switchto() a little - no need to flushw or membar
excessively.  optimise an rdpr.  tested by tnn.

Revision 1.243.4.1 / (download) - annotate - [select for diffs], Sun May 27 12:28:26 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.243: +102 -733 lines
Diff to previous 1.243 (colored)

Sync with head.

Revision 1.249 / (download) - annotate - [select for diffs], Wed May 23 08:16:43 2007 UTC (16 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.248: +4 -3 lines
Diff to previous 1.248 (colored)

Fix a stupid bug in the save_fpstate ipi, which caused overwriting of
struct lwp of the lwp owning the fpu. Fix clearing the fplwp - %o0 will
not survive the call to savefpstate - duh!

Revision 1.243.12.1 / (download) - annotate - [select for diffs], Tue May 22 17:27:34 2007 UTC (16 years, 9 months ago) by matt
Branch: ppcoea-renovation
Changes since 1.243: +99 -731 lines
Diff to previous 1.243 (colored)

Update to HEAD.

Revision 1.248 / (download) - annotate - [select for diffs], Sun May 20 21:51:01 2007 UTC (16 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.247: +2 -6 lines
Diff to previous 1.247 (colored)

Simplify tf_tstate setting when leaving for userland initially - I seem
to have confused the if with the else case of the previous C code.
Funny that it worked at all.

Revision 1.247 / (download) - annotate - [select for diffs], Sun May 20 20:28:02 2007 UTC (16 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.246: +1 -4 lines
Diff to previous 1.246 (colored)

cpu_switchto() has to return it's first arg, always. This differs from
my reading of the documentation, but helps in the real world and seems
to be what other ports do.

Revision 1.246 / (download) - annotate - [select for diffs], Sun May 20 19:18:15 2007 UTC (16 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.245: +10 -2 lines
Diff to previous 1.245 (colored)

Remove special case handling for userland lwps from cpu_lwp_fork, instead
do it in lwp_trampoline when we first return to userland.

Revision 1.245 / (download) - annotate - [select for diffs], Sat May 19 23:27:42 2007 UTC (16 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.244: +23 -10 lines
Diff to previous 1.244 (colored)

cpu_idle is a leaf function, so we better "return from leaf".
Use return value from cpu_switchto for previous lwp in lwp_trampoline.
Also shamelessly steal a comment from uwe written for sparc that explains
all this.
Thanks to tnn, mrg, and uwe for helping to debug this.

Revision 1.244 / (download) - annotate - [select for diffs], Thu May 17 14:51:32 2007 UTC (16 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.243: +77 -723 lines
Diff to previous 1.243 (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.235.2.5 / (download) - annotate - [select for diffs], Tue May 1 21:11:18 2007 UTC (16 years, 10 months ago) by martin
Branch: yamt-idlelwp
Changes since 1.235.2.4: +1 -5 lines
Diff to previous 1.235.2.4 (colored) next main 1.236 (colored)

cpu_switchto does not need to deal with ci_want_resched any more

Revision 1.235.2.4 / (download) - annotate - [select for diffs], Tue May 1 21:08:27 2007 UTC (16 years, 10 months ago) by martin
Branch: yamt-idlelwp
Changes since 1.235.2.3: +4 -4 lines
Diff to previous 1.235.2.3 (colored)

Ooops - PCB_PC and PCB_SP are 64bit values, even in 32bit kernels. So
backout that part of the previous change. Pointed out by mrg.

Revision 1.235.2.3 / (download) - annotate - [select for diffs], Sun Apr 29 17:27:36 2007 UTC (16 years, 10 months ago) by martin
Branch: yamt-idlelwp
Changes since 1.235.2.2: +23 -14 lines
Diff to previous 1.235.2.2 (colored)

In cpu_switchto() save the state to the lwp passed as first arg, not
curlwp (probably does not make a difference).
Explicitly return the previous curlwp (instead of, pretty much hidden,
the first arg) - does not make a difference for current callers, but
let's try to be correct here.
While here, handle a few 32bit kernel nits.

Revision 1.235.2.2 / (download) - annotate - [select for diffs], Sat Apr 28 03:57:14 2007 UTC (16 years, 10 months ago) by mrg
Branch: yamt-idlelwp
Changes since 1.235.2.1: +68 -719 lines
Diff to previous 1.235.2.1 (colored)

port yamt-idlelwp to sparc64.  this does not work yet, but others
have asked that i commit this work-in-progress.

currently it gets a double fault during a window save operation
and crashes to the prom.  (it seems very much like the problem
that i see on SMP sparc64, but there is no real evidence it is
the same root cause.)

Revision 1.235.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:53:14 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.235: +49 -55 lines
Diff to previous 1.235 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.205.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:08:26 2007 UTC (17 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.205.2.2: +49 -62 lines
Diff to previous 1.205.2.2 (colored)

sync with head.

Revision 1.243 / (download) - annotate - [select for diffs], Thu Feb 22 16:29:03 2007 UTC (17 years ago) by martin
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, ppcoea-renovation, mjf-ufs-trans
Changes since 1.242: +2 -2 lines
Diff to previous 1.242 (colored)

uvm.page_idle_zero now is a bool, not a 32bit value any more.

Revision 1.242 / (download) - annotate - [select for diffs], Wed Feb 21 22:39:22 2007 UTC (17 years ago) by mrg
Branch: MAIN
Changes since 1.241: +44 -45 lines
Diff to previous 1.241 (colored)

shave 9 insns off the tsb setup in cpu_initialize & cpu_mp_startup.

Revision 1.241 / (download) - annotate - [select for diffs], Wed Feb 21 20:07:42 2007 UTC (17 years ago) by martin
Branch: MAIN
Changes since 1.240: +1 -4 lines
Diff to previous 1.240 (colored)

Get rid of unused (thus always zero) "curlwp" variable hidden in assembler
code (C code always uses a cpuinfo based macro).

Revision 1.240 / (download) - annotate - [select for diffs], Sun Feb 18 19:09:36 2007 UTC (17 years ago) by martin
Branch: MAIN
Changes since 1.239: +2 -3 lines
Diff to previous 1.239 (colored)

Make use of another call delay slot, pointed out by uwe.

Revision 1.239 / (download) - annotate - [select for diffs], Sun Feb 18 18:30:06 2007 UTC (17 years ago) by martin
Branch: MAIN
Changes since 1.238: +3 -4 lines
Diff to previous 1.238 (colored)

Make use of a call delay slot and avoid a bogus EMPTY.
Spotted by Juergen Hannken-Illjes, with input from Andrew Doran and
Valeriy E. Ushakov.

Revision 1.238 / (download) - annotate - [select for diffs], Sun Feb 18 18:25:40 2007 UTC (17 years ago) by martin
Branch: MAIN
Changes since 1.237: +3 -3 lines
Diff to previous 1.237 (colored)

Whitespace cosmetics

Revision 1.237 / (download) - annotate - [select for diffs], Sun Feb 18 18:23:58 2007 UTC (17 years ago) by martin
Branch: MAIN
Changes since 1.236: +1 -1 lines
Diff to previous 1.236 (colored)

Backout previous: EMPTY was misused

Revision 1.236 / (download) - annotate - [select for diffs], Sun Feb 18 13:28:28 2007 UTC (17 years ago) by martin
Branch: MAIN
Changes since 1.235: +2 -2 lines
Diff to previous 1.235 (colored)

Make EMPTY expand to nop with gas, as it is used to mark empty branch
delay slots.

Revision 1.235 / (download) - annotate - [select for diffs], Thu Feb 15 09:02:12 2007 UTC (17 years ago) by martin
Branch: MAIN
Branch point for: yamt-idlelwp
Changes since 1.234: +2 -2 lines
Diff to previous 1.234 (colored)

Fix obvious copy&pasto in SCHED_DEBUG register usage.

Revision 1.234 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:12 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.233: +5 -12 lines
Diff to previous 1.233 (colored)

Merge newlock2 to head.

Revision 1.213.8.4 / (download) - annotate - [select for diffs], Tue Jan 30 11:45:27 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.213.8.3: +1 -9 lines
Diff to previous 1.213.8.3 (colored) to branchpoint 1.213 (colored) next main 1.214 (colored)

For now always call sched_unlock_idle/sched_lock_idle. They will be
removed by yamt's cpu_switchto() changes.

Revision 1.213.8.3 / (download) - annotate - [select for diffs], Fri Jan 12 01:00:59 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.213.8.2: +2 -2 lines
Diff to previous 1.213.8.2 (colored) to branchpoint 1.213 (colored)

Sync with head.

Revision 1.213.8.2 / (download) - annotate - [select for diffs], Thu Jan 11 22:22:58 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.213.8.1: +8 -7 lines
Diff to previous 1.213.8.1 (colored) to branchpoint 1.213 (colored)

Checkpoint work in progress.

Revision 1.205.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:05 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.205.2.1: +614 -1188 lines
Diff to previous 1.205.2.1 (colored)

sync with head.

Revision 1.233 / (download) - annotate - [select for diffs], Mon Dec 25 18:31:18 2006 UTC (17 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.232: +2 -2 lines
Diff to previous 1.232 (colored)

Spell "relevant" correctly. From Zafer Aydogan.

Revision 1.219.2.3 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:37 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.219.2.2: +19 -22 lines
Diff to previous 1.219.2.2 (colored) to branchpoint 1.219 (colored) next main 1.220 (colored)

sync with head.

Revision 1.213.8.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:29:33 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.213: +613 -1187 lines
Diff to previous 1.213 (colored)

Sync with head.

Revision 1.204.6.1 / (download) - annotate - [select for diffs], Mon Nov 6 17:27:21 2006 UTC (17 years, 3 months ago) by tron
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE
Changes since 1.204: +13 -12 lines
Diff to previous 1.204 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1517):
	sys/arch/sparc64/sparc64/locore.s: revision 1.217 via patch
	sys/arch/sparc64/sparc64/locore.s: revision 1.218 via patch
Fix a couple of %y register save/restore errors, inspired from OpenBSD.
  revision 1.44
  date: 2004/04/23 04:18:17;  author: marc;  state: Exp;  lines: +5 -4
  fix a couple of %y register save/restore errors
  1) don't save %y in a register that is later used before restoring %y
  2) always restore %y after calling a signal handler
  tested by drahn@, OK pval
From OpenBSD:
- reload %fprs for checking it again.
- use symbolic names for checking in %fprs.
  revision 1.51
  date: 2005/07/18 14:50:11;  author: deraadt;  state: Exp;  lines: +2 -1
  cache a copy of the fprs so we know what fp restore we should do after
  revision 1.50
  date: 2005/07/14 01:46:13;  author: deraadt;  state: Exp;  lines: +4 -4
  use symbolic names for checking in %fprs, as above

Revision 1.204.8.1 / (download) - annotate - [select for diffs], Mon Nov 6 17:25:44 2006 UTC (17 years, 3 months ago) by tron
Branch: netbsd-3-1
CVS Tags: netbsd-3-1-1-RELEASE
Changes since 1.204: +13 -12 lines
Diff to previous 1.204 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1517):
	sys/arch/sparc64/sparc64/locore.s: revision 1.217 via patch
	sys/arch/sparc64/sparc64/locore.s: revision 1.218 via patch
Fix a couple of %y register save/restore errors, inspired from OpenBSD.
  revision 1.44
  date: 2004/04/23 04:18:17;  author: marc;  state: Exp;  lines: +5 -4
  fix a couple of %y register save/restore errors
  1) don't save %y in a register that is later used before restoring %y
  2) always restore %y after calling a signal handler
  tested by drahn@, OK pval
From OpenBSD:
- reload %fprs for checking it again.
- use symbolic names for checking in %fprs.
  revision 1.51
  date: 2005/07/18 14:50:11;  author: deraadt;  state: Exp;  lines: +2 -1
  cache a copy of the fprs so we know what fp restore we should do after
  revision 1.50
  date: 2005/07/14 01:46:13;  author: deraadt;  state: Exp;  lines: +4 -4
  use symbolic names for checking in %fprs, as above

Revision 1.204.4.1 / (download) - annotate - [select for diffs], Mon Nov 6 17:23:04 2006 UTC (17 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.204: +13 -12 lines
Diff to previous 1.204 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1517):
	sys/arch/sparc64/sparc64/locore.s: revision 1.217 via patch
	sys/arch/sparc64/sparc64/locore.s: revision 1.218 via patch
Fix a couple of %y register save/restore errors, inspired from OpenBSD.
  revision 1.44
  date: 2004/04/23 04:18:17;  author: marc;  state: Exp;  lines: +5 -4
  fix a couple of %y register save/restore errors
  1) don't save %y in a register that is later used before restoring %y
  2) always restore %y after calling a signal handler
  tested by drahn@, OK pval
From OpenBSD:
- reload %fprs for checking it again.
- use symbolic names for checking in %fprs.
  revision 1.51
  date: 2005/07/18 14:50:11;  author: deraadt;  state: Exp;  lines: +2 -1
  cache a copy of the fprs so we know what fp restore we should do after
  revision 1.50
  date: 2005/07/14 01:46:13;  author: deraadt;  state: Exp;  lines: +4 -4
  use symbolic names for checking in %fprs, as above

Revision 1.232 / (download) - annotate - [select for diffs], Wed Oct 25 11:56:56 2006 UTC (17 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.231: +19 -22 lines
Diff to previous 1.231 (colored)

- note that __idle_u should go away but doing so breaks things
- fix several comments to reality
- clean up the #ifdef NO_VCACHE code slightly
- use call instead of set/jmpl
- remove a couple of unnecessary stores to curlwp

Revision 1.219.2.2 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:11 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.219.2.1: +10842 -0 lines
Diff to previous 1.219.2.1 (colored) to branchpoint 1.219 (colored)

sync with head

Revision 1.231 / (download) - annotate - [select for diffs], Wed Oct 18 01:41:38 2006 UTC (17 years, 4 months ago) by rjs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.230: +9 -9 lines
Diff to previous 1.230 (colored)

Clean up some comments. Cosmetic change to use correct structure
offset names.

Optimize out two instructions from sparc64_ipi_save_fpstate and
sparc64_ipi_drop_fpstate.

Revision 1.230 / (download) - annotate - [select for diffs], Tue Oct 17 22:26:06 2006 UTC (17 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.229: +31 -57 lines
Diff to previous 1.229 (colored)

allocate 128KB (as opposed to 64KB) per-cpu, and place the interrupt
stack, cpu_info structure, panicstack, idle uarea and normal kernel
stack in here.  the idle uarea and kernel stack are in the 2nd 64KB
page.  the interrupt stack and cpu_info structure are as the same
place in the 1st 64KB page, and the panicstack grows down from the
top of this page.  update comments in param.h to suit (XXX: a lot
of these constants should move to a header file that will not pollute
the name space so much.)  map these pages identically between
cpu_initialise() and cpu_mp_startup(), and deal with the two 64KB
pages in pmap_extract().  keep an unmapped 64KB page between them.

don't initialise the unused "ci_eintstack" member of the cpu_info
structure

use constants to initialise many addresses in the cpu_info structure,
consolidating these assignments from cpu0 and cpu>0

delete u0/estack0/panicstack from locore.s

clean up some wrong comments in locore.s

fix a 32bit-only bug in cpu_mp_startup().

delete 'u0' entirely.


this fixes recent random lossage seen on port-sparc64: processes
stuck in RUN state, data faults, and hangs.

Revision 1.229 / (download) - annotate - [select for diffs], Wed Oct 4 05:00:39 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.228: +5 -11 lines
Diff to previous 1.228 (colored)

use call instead of set/jmpl.  add an entry point for idle that expects
sched_lock to be unlocked, and use this for non-boot cpu's.  complete a
comment describing how registers in idle_switch are expected to be set.

Revision 1.228 / (download) - annotate - [select for diffs], Tue Oct 3 23:34:52 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.227: +38 -65 lines
Diff to previous 1.227 (colored)

use the same SAVE_LOCALS_INS definition for 32 bit and 64 bit kernels.
refactor TRAP_SETUP() a little between these two versions to be more alike.

Revision 1.227 / (download) - annotate - [select for diffs], Tue Oct 3 23:05:53 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.226: +14 -12 lines
Diff to previous 1.226 (colored)

use the correct size/type for MP variables (pointers and longs).

a 32 bit MULTIPROCESSOR kernel now builds (and crashes quickly.)

Revision 1.226 / (download) - annotate - [select for diffs], Tue Oct 3 20:01:19 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.225: +17 -17 lines
Diff to previous 1.225 (colored)

in the 64bit version of SAVE_LOCAL_INS, s/BIAS/STKB/ to allow future
sharing of the 32 and 64 bit versions of the {TRAP,INTR}_SETUP macros.

Revision 1.196.2.3 / (download) - annotate - [select for diffs], Tue Oct 3 12:47:26 2006 UTC (17 years, 5 months ago) by tron
Branch: netbsd-2-0
Changes since 1.196.2.2: +13 -12 lines
Diff to previous 1.196.2.2 (colored) to branchpoint 1.196 (colored) next main 1.197 (colored)

Pull up following revision(s) (requested by nakayama in ticket #10695):
        sys/arch/sparc64/sparc64/locore.s: revision 1.217 via patch
        sys/arch/sparc64/sparc64/locore.s: revision 1.218 via patch
Fix a couple of %y register save/restore errors, inspired from OpenBSD.
  revision 1.44
  date: 2004/04/23 04:18:17;  author: marc;  state: Exp;  lines: +5 -4
  fix a couple of %y register save/restore errors
  1) don't save %y in a register that is later used before restoring %y
  2) always restore %y after calling a signal handler
  tested by drahn@, OK pval
From OpenBSD:
- reload %fprs for checking it again.
- use symbolic names for checking in %fprs.
  revision 1.51
  date: 2005/07/18 14:50:11;  author: deraadt;  state: Exp;  lines: +2 -1
  cache a copy of the fprs so we know what fp restore we should do after
  revision 1.50
  date: 2005/07/14 01:46:13;  author: deraadt;  state: Exp;  lines: +4 -4
  use symbolic names for checking in %fprs, as above

Revision 1.196.2.1.2.1.2.1 / (download) - annotate - [select for diffs], Tue Oct 3 12:46:42 2006 UTC (17 years, 5 months ago) by tron
Branch: netbsd-2-1
Changes since 1.196.2.1.2.1: +13 -12 lines
Diff to previous 1.196.2.1.2.1 (colored) next main 1.196.2.1.2.2 (colored)

Pull up following revision(s) (requested by nakayama in ticket #10695):
        sys/arch/sparc64/sparc64/locore.s: revision 1.217 via patch
        sys/arch/sparc64/sparc64/locore.s: revision 1.218 via patch
Fix a couple of %y register save/restore errors, inspired from OpenBSD.
  revision 1.44
  date: 2004/04/23 04:18:17;  author: marc;  state: Exp;  lines: +5 -4
  fix a couple of %y register save/restore errors
  1) don't save %y in a register that is later used before restoring %y
  2) always restore %y after calling a signal handler
  tested by drahn@, OK pval
From OpenBSD:
- reload %fprs for checking it again.
- use symbolic names for checking in %fprs.
  revision 1.51
  date: 2005/07/18 14:50:11;  author: deraadt;  state: Exp;  lines: +2 -1
  cache a copy of the fprs so we know what fp restore we should do after
  revision 1.50
  date: 2005/07/14 01:46:13;  author: deraadt;  state: Exp;  lines: +4 -4
  use symbolic names for checking in %fprs, as above

Revision 1.196.2.1.2.2 / (download) - annotate - [select for diffs], Tue Oct 3 12:45:19 2006 UTC (17 years, 5 months ago) by tron
Branch: netbsd-2
Changes since 1.196.2.1.2.1: +13 -12 lines
Diff to previous 1.196.2.1.2.1 (colored) to branchpoint 1.196.2.1 (colored) next main 1.196.2.2 (colored)

Pull up following revision(s) (requested by nakayama in ticket #10695):
        sys/arch/sparc64/sparc64/locore.s: revision 1.217 via patch
        sys/arch/sparc64/sparc64/locore.s: revision 1.218 via patch
Fix a couple of %y register save/restore errors, inspired from OpenBSD.
  revision 1.44
  date: 2004/04/23 04:18:17;  author: marc;  state: Exp;  lines: +5 -4
  fix a couple of %y register save/restore errors
  1) don't save %y in a register that is later used before restoring %y
  2) always restore %y after calling a signal handler
  tested by drahn@, OK pval
From OpenBSD:
- reload %fprs for checking it again.
- use symbolic names for checking in %fprs.
  revision 1.51
  date: 2005/07/18 14:50:11;  author: deraadt;  state: Exp;  lines: +2 -1
  cache a copy of the fprs so we know what fp restore we should do after
  revision 1.50
  date: 2005/07/14 01:46:13;  author: deraadt;  state: Exp;  lines: +4 -4
  use symbolic names for checking in %fprs, as above

Revision 1.213.6.1 / (download) - annotate - [select for diffs], Fri Sep 22 05:47:55 2006 UTC (17 years, 5 months ago) by riz
Branch: abandoned-netbsd-4
Changes since 1.213: +16 -14 lines
Diff to previous 1.213 (colored) next main 1.214 (colored)

Pull up following revision(s) (requested by nakayama in ticket #169):
	sys/arch/sparc64/sparc64/locore.s: revision 1.217
	sys/arch/sparc64/sparc64/locore.s: revision 1.218
Fix a couple of %y register save/restore errors, inspired from OpenBSD.
  revision 1.44
  date: 2004/04/23 04:18:17;  author: marc;  state: Exp;  lines: +5 -4
  fix a couple of %y register save/restore errors
  1) don't save %y in a register that is later used before restoring %y
  2) always restore %y after calling a signal handler
  tested by drahn@, OK pval
From OpenBSD:
- reload %fprs for checking it again.
- use symbolic names for checking in %fprs.
  revision 1.51
  date: 2005/07/18 14:50:11;  author: deraadt;  state: Exp;  lines: +2 -1
  cache a copy of the fprs so we know what fp restore we should do after
  revision 1.50
  date: 2005/07/14 01:46:13;  author: deraadt;  state: Exp;  lines: +4 -4
  use symbolic names for checking in %fprs, as above

Revision 1.225 / (download) - annotate - [select for diffs], Tue Sep 19 18:42:35 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.224: +16 -121 lines
Diff to previous 1.224 (colored)

- remove some way old FP setup/teardown code
- put the block memcpy/memset inside #ifdef USE_BLOCK_STORE_LOAD which
  is (now) defined.

no functional change, same .o is generated.

Revision 1.224 / (download) - annotate - [select for diffs], Tue Sep 19 18:00:27 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.223: +7 -7 lines
Diff to previous 1.223 (colored)

re-order the changes in rev 1.217 to give registers a little bit of
time to settle between usage, like it was before hand.

Revision 1.223 / (download) - annotate - [select for diffs], Tue Sep 19 02:08:14 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.222: +25 -2 lines
Diff to previous 1.222 (colored)

- remove a wrong comment.
- add a new entry point for idle called idle_switch that is called by
  cpu_switch() in the MP case when sched_whichqs is zero, properly
  setting up the idle stack.  from petrov@ via martin@.

Revision 1.222 / (download) - annotate - [select for diffs], Tue Sep 19 00:15:47 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.221: +4 -23 lines
Diff to previous 1.221 (colored)

rework interrupt_vector() slightly:
- for the IPI case, avoid loading the address of intrlev into %g3
- remove some NOT_DEBUG code
- load the interrupt argument #2 in the delay slot

this removes 2 nops during interrupt processing for the normal
case, and an additional 2 ALU instructions for IPIs

Revision 1.221 / (download) - annotate - [select for diffs], Mon Sep 18 20:56:44 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.220: +59 -31 lines
Diff to previous 1.220 (colored)

- sparc64_ipi_halt(): we shouldn't return from sparc64_ipi_halt_thiscpu()
  so replace a branch with a 'sir'
- in #if 0 code, in sparc64_ipi_flush_pte() and sparc64_ipi_flush_ctx()
  save/restore the out registers that the sp_tlb_flush_xxx() versions
  around calling them
- in sp_tlb_flush_pte() and sp_tlb_flush_ctx(), replace global register
  usage with out registers so that we don't clobber the (alternate)
  global registers when these are called from IPI context

Revision 1.220 / (download) - annotate - [select for diffs], Mon Sep 18 20:36:26 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.219: +81 -86 lines
Diff to previous 1.219 (colored)

- remove an extra 'sir' that followed one in a macro
- add some named labels to some spill/fill handlers
- remove 2 unused strings

Revision 1.219.2.1, Mon Sep 18 08:18:47 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.219: +0 -10977 lines
FILE REMOVED

file locore.s was added on branch yamt-splraiseipl on 2006-10-22 06:05:11 +0000

Revision 1.219 / (download) - annotate - [select for diffs], Mon Sep 18 08:18:47 2006 UTC (17 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: yamt-splraiseipl-base
Branch point for: yamt-splraiseipl
Changes since 1.218: +36 -1 lines
Diff to previous 1.218 (colored)

Lazy FPU handling for the MULTIPROCESSOR case

Revision 1.218 / (download) - annotate - [select for diffs], Sat Sep 16 08:43:24 2006 UTC (17 years, 5 months ago) by nakayama
Branch: MAIN
Changes since 1.217: +5 -4 lines
Diff to previous 1.217 (colored)

From OpenBSD:
- reload %fprs for checking it again.
- use symbolic names for checking in %fprs.

  revision 1.51
  date: 2005/07/18 14:50:11;  author: deraadt;  state: Exp;  lines: +2 -1
  cache a copy of the fprs so we know what fp restore we should do after

  revision 1.50
  date: 2005/07/14 01:46:13;  author: deraadt;  state: Exp;  lines: +4 -4
  use symbolic names for checking in %fprs, as above

Revision 1.217 / (download) - annotate - [select for diffs], Sat Sep 16 08:29:06 2006 UTC (17 years, 5 months ago) by nakayama
Branch: MAIN
Changes since 1.216: +13 -12 lines
Diff to previous 1.216 (colored)

Fix a couple of %y register save/restore errors, inspired from OpenBSD.

  revision 1.44
  date: 2004/04/23 04:18:17;  author: marc;  state: Exp;  lines: +5 -4

  fix a couple of %y register save/restore errors
  1) don't save %y in a register that is later used before restoring %y
  2) always restore %y after calling a signal handler
  tested by drahn@, OK pval

Revision 1.216 / (download) - annotate - [select for diffs], Fri Sep 15 07:42:38 2006 UTC (17 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.215: +12 -1 lines
Diff to previous 1.215 (colored)

Do not bother to save fpu state when we are about to get rid of it.

Revision 1.210.2.2 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:18 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.210.2.1: +261 -745 lines
Diff to previous 1.210.2.1 (colored) to branchpoint 1.210 (colored) next main 1.211 (colored)

sync with head.

Revision 1.215 / (download) - annotate - [select for diffs], Wed Sep 13 11:35:53 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pdpolicy-base9
Changes since 1.214: +76 -52 lines
Diff to previous 1.214 (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.214 / (download) - annotate - [select for diffs], Sat Sep 9 22:47:12 2006 UTC (17 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.213: +195 -703 lines
Diff to previous 1.213 (colored)

significant clean up effort, largely from petrov@ via martin@.

- fix a bunch of comments for proc->lwp
- remove old TRAPTRACE, NOT_DEBUG, etc. code that has bit-rotted
- put some older DEBUG code under NOT_DEBUG
- add a bunch of new debugging/tracing code ("KTR") that depends on
other changes not yet present.

Revision 1.209.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:43:47 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.209: +23 -25 lines
Diff to previous 1.209 (colored) next main 1.210 (colored)

sync with head

Revision 1.205.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:56:47 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.205: +150 -579 lines
Diff to previous 1.205 (colored)

sync with head.

Revision 1.209.4.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:35:27 2006 UTC (17 years, 9 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.209.4.1: +21 -23 lines
Diff to previous 1.209.4.1 (colored) next main 1.210 (colored)

Sync with head.

Revision 1.210.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:48:23 2006 UTC (17 years, 9 months ago) by tron
Branch: peter-altq
Changes since 1.210: +21 -23 lines
Diff to previous 1.210 (colored) next main 1.211 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.210.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:57:14 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.210: +21 -23 lines
Diff to previous 1.210 (colored)

sync with head.

Revision 1.213 / (download) - annotate - [select for diffs], Sun May 14 21:57:13 2006 UTC (17 years, 9 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base
Branch point for: newlock2, abandoned-netbsd-4
Changes since 1.212: +1 -1 lines
Diff to previous 1.212 (colored)

integrate kauth.

Revision 1.212 / (download) - annotate - [select for diffs], Fri May 12 06:01:02 2006 UTC (17 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.211: +20 -23 lines
Diff to previous 1.211 (colored)

Fix some comments.

Revision 1.210.4.1 / (download) - annotate - [select for diffs], Thu May 11 23:27:04 2006 UTC (17 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.210: +2 -1 lines
Diff to previous 1.210 (colored) next main 1.211 (colored)

sync with head

Revision 1.211 / (download) - annotate - [select for diffs], Tue May 9 16:37:39 2006 UTC (17 years, 9 months ago) by rjs
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.210: +2 -1 lines
Diff to previous 1.210 (colored)

Load CPCB in cpu_mp_startup.

Revision 1.209.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:02 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.209: +3 -3 lines
Diff to previous 1.209 (colored)

Sync with head.

Revision 1.207.2.3 / (download) - annotate - [select for diffs], Sat Feb 18 15:38:50 2006 UTC (18 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.207.2.2: +3 -3 lines
Diff to previous 1.207.2.2 (colored) next main 1.208 (colored)

sync with head.

Revision 1.210 / (download) - annotate - [select for diffs], Sat Feb 11 17:57:32 2006 UTC (18 years ago) by cdi
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.209: +3 -3 lines
Diff to previous 1.209 (colored)

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

Revision 1.207.2.2 / (download) - annotate - [select for diffs], Wed Feb 1 14:51:37 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.207.2.1: +121 -552 lines
Diff to previous 1.207.2.1 (colored)

sync with head.

Revision 1.209 / (download) - annotate - [select for diffs], Fri Jan 27 18:37:49 2006 UTC (18 years, 1 month ago) by cdi
Branch: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.208: +121 -552 lines
Diff to previous 1.208 (colored)

Alter sparc64 bootstrap, catch up to ofwboot v1.9:

 - Accept bootinfo structure passed down from ofwboot v1.9
 - Drop kernel re-mapping code
 - Use permanent 4MB mappings provided by the loader instead
 - Change kernel entry address to point directly at the code instead of pointing
   at the trap table's first slot. This allows the bootloader to detect
   those kernels which are aware of the new boot scheme
 - Due to the changes in kernel mapping code, alter secondary CPU bootstrap
   code to use trampoline just like FreeBSD does (some FreeBSD code is used
   here as well)

Revision 1.207.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 10:02:39 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.207: +3 -3 lines
Diff to previous 1.207 (colored)

sync with head.

Revision 1.208 / (download) - annotate - [select for diffs], Thu Jan 12 17:58:39 2006 UTC (18 years, 1 month ago) by cdi
Branch: MAIN
Changes since 1.207: +3 -3 lines
Diff to previous 1.207 (colored)

Fix a typo: %g0 should be used instead of %o0 when initializing FPU in dostart:
and cpu_mp_startup:, %o0 is not even initialized at this point.

Revision 1.207 / (download) - annotate - [select for diffs], Sun Dec 11 12:19:14 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.206: +1 -1 lines
Diff to previous 1.206 (colored)

merge ktrace-lwp.

Revision 1.177.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 13:59:33 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.177.2.7: +6 -16 lines
Diff to previous 1.177.2.7 (colored) next main 1.178 (colored)

Sync with HEAD. Here we go again...

Revision 1.206 / (download) - annotate - [select for diffs], Sun Jul 10 00:50:16 2005 UTC (18 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.205: +6 -2 lines
Diff to previous 1.205 (colored)

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

Revision 1.205 / (download) - annotate - [select for diffs], Tue May 31 00:45:05 2005 UTC (18 years, 9 months ago) by chs
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.204: +1 -15 lines
Diff to previous 1.204 (colored)

remove vestigal {,e}intr{names,cnt} symbols now that vmstat doesn't need them.

Revision 1.196.2.1.2.1 / (download) - annotate - [select for diffs], Sun May 1 11:25:46 2005 UTC (18 years, 10 months ago) by tron
Branch: netbsd-2
CVS Tags: 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
Branch point for: netbsd-2-1
Changes since 1.196.2.1: +92 -393 lines
Diff to previous 1.196.2.1 (colored)

Apply patch (requested by martin in ticket #1487):
Various changes from NetBSD-current, revisions 1.197 to 1.204.
Interrupt and soft-interrupt handling changes that appear to fix
the "sleep forever" problem (PR port-sparc64/21750).

Revision 1.196.2.2 / (download) - annotate - [select for diffs], Sun May 1 11:23:38 2005 UTC (18 years, 10 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-0-3-RELEASE
Changes since 1.196.2.1: +92 -393 lines
Diff to previous 1.196.2.1 (colored) to branchpoint 1.196 (colored)

Apply patch (requested by martin in ticket #1487):
Various changes from NetBSD-current, revisions 1.197 to 1.204.
Interrupt and soft-interrupt handling changes that appear to fix
the "sleep forever" problem (PR port-sparc64/21750).

Revision 1.201.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:24 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.201: +31 -226 lines
Diff to previous 1.201 (colored) next main 1.202 (colored)

sync with -current

Revision 1.202.2.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:14 2005 UTC (18 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.202.2.1: +18 -33 lines
Diff to previous 1.202.2.1 (colored) to branchpoint 1.202 (colored) next main 1.203 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.177.2.7 / (download) - annotate - [select for diffs], Tue Feb 15 21:33:01 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.177.2.6: +18 -33 lines
Diff to previous 1.177.2.6 (colored)

Sync with HEAD.

Revision 1.204 / (download) - annotate - [select for diffs], Sat Feb 12 21:32:56 2005 UTC (19 years ago) by chs
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, 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-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-2-RELEASE, netbsd-3-0-1-RELEASE, kent-audio2-base
Branch point for: netbsd-3-1, netbsd-3-0, netbsd-3
Changes since 1.203: +18 -33 lines
Diff to previous 1.203 (colored)

in sparc_interrupt(), wait to enable interrupts until just before calling
the handler and disable them again right after the handler returns.
we don't want another hardware interrupt coming in while we're mucking
with the list pointers.  also, clear the intrhand's ih_pending pointer
before calling the handler rather than after, so that if another interrupt
comes in while the handler is running, we can put the intrhand back on
the list so it will be called again.

in send_softint(), disable interrupts via %pstate instead of %pil, so that
hardware interrupts at higher levels are blocked while we manipulate the
intrpending list.  also, if the intrhand already has ih_pending set,
don't bother poking the SET_SOFTINT register again, since being on the list
implies that there is already a softint pending in the hardware.

these appear to fix PR 21750 (the "sleep forever" problem).

while I'm here, remove more vestiges of the !INTRLIST softint stuff
(code and comments).  and in sparc64_ipi_flush_all(), interrupts are
already disabled so we don't need to fiddle with %pstate.

Revision 1.202.2.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:40 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.202: +1 -175 lines
Diff to previous 1.202 (colored)

sync with head.

Revision 1.177.2.6 / (download) - annotate - [select for diffs], Fri Feb 4 11:44:57 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.177.2.5: +1 -175 lines
Diff to previous 1.177.2.5 (colored)

Sync with HEAD.

Revision 1.203 / (download) - annotate - [select for diffs], Sun Jan 30 20:02:23 2005 UTC (19 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.202: +1 -175 lines
Diff to previous 1.202 (colored)

Remove the no long usefull variants selected by undefining INTRLIST and
INTR_INTERLOCK to improve readability. Same object code generated as before.

Revision 1.177.2.5 / (download) - annotate - [select for diffs], Mon Jan 17 19:30:27 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.177.2.4: +14 -20 lines
Diff to previous 1.177.2.4 (colored)

Sync with HEAD.

Revision 1.202 / (download) - annotate - [select for diffs], Sun Jan 16 23:50:13 2005 UTC (19 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: yamt-km-base
Branch point for: yamt-km
Changes since 1.201: +14 -20 lines
Diff to previous 1.201 (colored)

use ENTRY_NOPROFILE() for various entry points,
stack traces work better that way.

Revision 1.177.2.4 / (download) - annotate - [select for diffs], Sat Dec 18 09:31:35 2004 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.177.2.3: +58 -119 lines
Diff to previous 1.177.2.3 (colored)

Sync with HEAD.

Revision 1.201 / (download) - annotate - [select for diffs], Fri Dec 3 02:04:00 2004 UTC (19 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.200: +58 -119 lines
Diff to previous 1.200 (colored)

remove cache_flush_virt() and PADDRT, they're no longer used.
allocate a stack frame for blast_dcache() when profiling so it shows up.
in dcache_flush_page(), use a stride of 32 instead of 16 to match the
cache line size.  correct various comments.

Revision 1.177.2.3 / (download) - annotate - [select for diffs], Sun Nov 14 08:15:32 2004 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.177.2.2: +3 -1 lines
Diff to previous 1.177.2.2 (colored)

Sync with HEAD.

Revision 1.200 / (download) - annotate - [select for diffs], Mon Nov 8 08:55:43 2004 UTC (19 years, 3 months ago) by petrov
Branch: MAIN
Changes since 1.199: +3 -1 lines
Diff to previous 1.199 (colored)

Don't compile sparc64_ipi functions when UP.

Revision 1.177.2.2 / (download) - annotate - [select for diffs], Tue Nov 2 07:50:56 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.177.2.1: +3 -1 lines
Diff to previous 1.177.2.1 (colored)

Sync with HEAD.

Revision 1.199 / (download) - annotate - [select for diffs], Mon Oct 25 10:42:48 2004 UTC (19 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.198: +3 -1 lines
Diff to previous 1.198 (colored)

No need to clear %o1 when returning a 64 bit integer from pseg_get if we
are compiling for a 64 bit kernel.

Revision 1.153.4.6 / (download) - annotate - [select for diffs], Fri Aug 13 04:39:19 2004 UTC (19 years, 6 months ago) by jmc
Branch: netbsd-1-6
Changes since 1.153.4.5: +7 -6 lines
Diff to previous 1.153.4.5 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored)

Pullup rev 1.198 (requested by nakayama in ticket #1727)

Change interrupt pending list end value to -1, to avoid linking an
interrupt handler twice.

Revision 1.177.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:41:35 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.177: +770 -656 lines
Diff to previous 1.177 (colored)

Sync with HEAD

Revision 1.196.2.1 / (download) - annotate - [select for diffs], Sun Jul 25 07:45:01 2004 UTC (19 years, 7 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-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-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Changes since 1.196: +7 -6 lines
Diff to previous 1.196 (colored)

Pull up revision 1.198 (requested by nakayama in ticket #711):
Change interrupt pending list end value to -1, to avoid linking an
interrupt handler twice.
It may fix "sleep forever" bug.

Revision 1.198 / (download) - annotate - [select for diffs], Sat Jul 24 12:04:32 2004 UTC (19 years, 7 months ago) by nakayama
Branch: MAIN
Changes since 1.197: +7 -6 lines
Diff to previous 1.197 (colored)

Change interrupt pending list end value to -1, to avoid linking an
interrupt handler twice.

It may fix "sleep forever" bug.

Revision 1.197 / (download) - annotate - [select for diffs], Fri Apr 9 19:41:57 2004 UTC (19 years, 10 months ago) by petrov
Branch: MAIN
Changes since 1.196: +1 -50 lines
Diff to previous 1.196 (colored)

Clean-up unused defines and variables.

Revision 1.196 / (download) - annotate - [select for diffs], Fri Mar 26 23:18:42 2004 UTC (19 years, 11 months ago) by petrov
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.195: +5 -7 lines
Diff to previous 1.195 (colored)

Use want_resched from cpu_info area.

Revision 1.195 / (download) - annotate - [select for diffs], Tue Mar 23 00:17:12 2004 UTC (19 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.194: +16 -27 lines
Diff to previous 1.194 (colored)

Replace intrcnts by evcnts. XXX - needs slight tweaking for MULTIPROCESSOR.

Revision 1.194 / (download) - annotate - [select for diffs], Sun Mar 14 18:18:54 2004 UTC (19 years, 11 months ago) by chs
Branch: MAIN
Changes since 1.193: +215 -91 lines
Diff to previous 1.193 (colored)

checkpoint of MP work from dennis and myself.  includes cross-processor
interrupt framework, a sledgehammer TLB invalidation and misc MP fixes.
doesn't work at all yet.

Revision 1.193 / (download) - annotate - [select for diffs], Fri Feb 13 11:36:18 2004 UTC (20 years ago) by wiz
Branch: MAIN
Changes since 1.192: +3 -3 lines
Diff to previous 1.192 (colored)

Uppercase CPU, plural is CPUs.

Revision 1.192 / (download) - annotate - [select for diffs], Mon Jan 19 10:39:49 2004 UTC (20 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.191: +5 -10 lines
Diff to previous 1.191 (colored)

Rename switchexit to cpu_exit and g/c the old C implementation of cpu_exit.

Revision 1.191 / (download) - annotate - [select for diffs], Sun Jan 18 19:41:06 2004 UTC (20 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.190: +6 -8 lines
Diff to previous 1.190 (colored)

Support RAS for 32bit kernels too.

Revision 1.190 / (download) - annotate - [select for diffs], Fri Jan 16 12:43:43 2004 UTC (20 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.189: +4 -6 lines
Diff to previous 1.189 (colored)

In proc_trampoline don't bother to clear condition codes in the trap
frame, since we no longer rely on this.
While there fix a few comments.

Revision 1.189 / (download) - annotate - [select for diffs], Thu Jan 8 13:34:04 2004 UTC (20 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.188: +3 -4 lines
Diff to previous 1.188 (colored)

Minor cleanup

Revision 1.188 / (download) - annotate - [select for diffs], Tue Jan 6 21:35:18 2004 UTC (20 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.187: +22 -4 lines
Diff to previous 1.187 (colored)

Implement restartable atomic sequences (RAS) for sparc64.

Revision 1.187 / (download) - annotate - [select for diffs], Tue Jan 6 09:38:19 2004 UTC (20 years, 1 month ago) by petrov
Branch: MAIN
Changes since 1.186: +302 -21 lines
Diff to previous 1.186 (colored)

Spinup secondary cpus. Based on codes sent to me by Dennis Chernoivanov
and Chuck Silvers.

Revision 1.186 / (download) - annotate - [select for diffs], Sun Jan 4 19:37:01 2004 UTC (20 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.185: +3 -10 lines
Diff to previous 1.185 (colored)

update to recent changes - exit2() doesn't exist anymore and the
exit path always calls lwp_exit2()
pointed out Martin Husemann

Revision 1.185 / (download) - annotate - [select for diffs], Tue Dec 2 22:44:17 2003 UTC (20 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.184: +4 -21 lines
Diff to previous 1.184 (colored)

Minor cleanup: remove unused code, sync a comment with current reality.

Revision 1.184 / (download) - annotate - [select for diffs], Tue Nov 25 05:14:58 2003 UTC (20 years, 3 months ago) by cdi
Branch: MAIN
Changes since 1.183: +4 -8 lines
Diff to previous 1.183 (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.183 / (download) - annotate - [select for diffs], Mon Nov 24 20:41:15 2003 UTC (20 years, 3 months ago) by cdi
Branch: MAIN
Changes since 1.182: +8 -1 lines
Diff to previous 1.182 (colored)

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

Revision 1.182 / (download) - annotate - [select for diffs], Thu Nov 20 08:08:52 2003 UTC (20 years, 3 months ago) by petrov
Branch: MAIN
Changes since 1.181: +5 -26 lines
Diff to previous 1.181 (colored)

Remove nwindows calculation, it's not used. Set l_cpu in cpu_switch.

Revision 1.181 / (download) - annotate - [select for diffs], Sun Nov 9 11:23:54 2003 UTC (20 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.180: +100 -304 lines
Diff to previous 1.180 (colored)

Get rid of bcopy/bzero.

Revision 1.180 / (download) - annotate - [select for diffs], Sun Oct 26 08:05:26 2003 UTC (20 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.179: +8 -3 lines
Diff to previous 1.179 (colored)

Initial siginfo support for sparc64 (untested). COMPAT_16 sigcontext signal
delivery tested.

Revision 1.179 / (download) - annotate - [select for diffs], Sun Aug 24 17:52:38 2003 UTC (20 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.178: +26 -41 lines
Diff to previous 1.178 (colored)

add support for non-executable mappings (where the hardware allows this)
and make the stack and heap non-executable by default.  the changes
fall into two basic catagories:

 - pmap and trap-handler changes.  these are all MD:
   = alpha: we already track per-page execute permission with the (software)
	PG_EXEC bit, so just have the trap handler pay attention to it.
   = i386: use a new GDT segment for %cs for processes that have no
	executable mappings above a certain threshold (currently the
	bottom of the stack).  track per-page execute permission with
	the last unused PTE bit.
   = powerpc/ibm4xx: just use the hardware exec bit.
   = powerpc/oea: we already track per-page exec bits, but the hardware only
	implements non-exec mappings at the segment level.  so track the
	number of executable mappings in each segment and turn on the no-exec
	segment bit iff the count is 0.  adjust the trap handler to deal.
   = sparc (sun4m): fix our use of the hardware protection bits.
	fix the trap handler to recognize text faults.
   = sparc64: split the existing unified TSB into data and instruction TSBs,
	and only load TTEs into the appropriate TSB(s) for the permissions.
	fix the trap handler to check for execute permission.
   = not yet implemented: amd64, hppa, sh5

 - changes in all the emulations that put a signal trampoline on the stack.
   instead, we now put the trampoline into a uvm_aobj and map that into
   the process separately.

originally from openbsd, adapted for netbsd by me.

Revision 1.178 / (download) - annotate - [select for diffs], Tue Jul 8 22:09:26 2003 UTC (20 years, 7 months ago) by cdi
Branch: MAIN
Changes since 1.177: +53 -35 lines
Diff to previous 1.177 (colored)

traceit: don't use %g7 as it is to become curcpu() register. Add comments.

Revision 1.153.4.5 / (download) - annotate - [select for diffs], Tue Jun 24 09:37:21 2003 UTC (20 years, 8 months ago) by grant
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.153.4.4: +6 -5 lines
Diff to previous 1.153.4.4 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.173 (requested by nakayama in ticket #1330):

Divide `set' instruction in delay slot (from OpenBSD change to rev
1.30).

Revision 1.153.4.4 / (download) - annotate - [select for diffs], Tue Jun 24 09:34:15 2003 UTC (20 years, 8 months ago) by grant
Branch: netbsd-1-6
Changes since 1.153.4.3: +3 -1 lines
Diff to previous 1.153.4.3 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.169 (requested by nakayama in ticket #1329):

Switch to use cycle counter (%tick) based microtime().

This is derived from alpha/microtime.c and i386/tsc_microtime.c,
and will share with both ports.

Revision 1.177 / (download) - annotate - [select for diffs], Sun May 18 22:11:32 2003 UTC (20 years, 9 months ago) by martin
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.176: +8 -8 lines
Diff to previous 1.176 (colored)

Make kernels with options KGDB at least compile.
Still needs some work to make it working.

Revision 1.176 / (download) - annotate - [select for diffs], Tue Apr 29 05:53:11 2003 UTC (20 years, 10 months ago) by nakayama
Branch: MAIN
Changes since 1.175: +2 -2 lines
Diff to previous 1.175 (colored)

Use BLOCK_ALIGN rather than BLOCK_SIZE for aligning a pointer.

Revision 1.175 / (download) - annotate - [select for diffs], Sun Apr 27 10:42:53 2003 UTC (20 years, 10 months ago) by ragge
Branch: MAIN
Changes since 1.174: +5 -3 lines
Diff to previous 1.174 (colored)

Preserve the symbol table in the LKM || KSYMS cases also.

Revision 1.174 / (download) - annotate - [select for diffs], Fri Apr 4 21:35:39 2003 UTC (20 years, 11 months ago) by petrov
Branch: MAIN
Changes since 1.173: +7 -13 lines
Diff to previous 1.173 (colored)

use branch slot in pmap_copy_page.

Revision 1.173 / (download) - annotate - [select for diffs], Mon Mar 24 13:27:44 2003 UTC (20 years, 11 months ago) by nakayama
Branch: MAIN
Changes since 1.172: +6 -5 lines
Diff to previous 1.172 (colored)

Divide `set' instruction in delay slot (from OpenBSD change to rev 1.30).

Revision 1.172 / (download) - annotate - [select for diffs], Mon Feb 10 18:23:26 2003 UTC (21 years ago) by martin
Branch: MAIN
Changes since 1.171: +1 -119 lines
Diff to previous 1.171 (colored)

Remove some #if 0 code and a few XXX marked membars w/o proper
justification for their existence.

Revision 1.171 / (download) - annotate - [select for diffs], Sun Feb 9 19:44:19 2003 UTC (21 years ago) by martin
Branch: MAIN
Changes since 1.170: +2 -14 lines
Diff to previous 1.170 (colored)

Remove left over pieces from reusing the signal trampoline for upcalls.
This should fix signal delivery for 32bit kernels.

Revision 1.170 / (download) - annotate - [select for diffs], Wed Feb 5 12:06:52 2003 UTC (21 years ago) by nakayama
Branch: MAIN
Changes since 1.169: +3 -1 lines
Diff to previous 1.169 (colored)

Switch to use cycle counter (%tick) based microtime().

This is derived from alpha/microtime.c and i386/tsc_microtime.c,
and will share with both ports.

This should fix PR port-sparc64/18452.
(approved by martin)

Revision 1.169 / (download) - annotate - [select for diffs], Tue Feb 4 15:58:27 2003 UTC (21 years ago) by martin
Branch: MAIN
Changes since 1.168: +12 -12 lines
Diff to previous 1.168 (colored)

Fix return value of pseg_set, which I accidently broke in rev. 1.164.

Fix register names in comment and shave off another register (hint
from uwe).

Revision 1.168 / (download) - annotate - [select for diffs], Sat Feb 1 22:43:04 2003 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.167: +10 -10 lines
Diff to previous 1.167 (colored)

Rearrange register usage in pseg_set a bit and shave off %g4.

Revision 1.167 / (download) - annotate - [select for diffs], Sat Feb 1 09:31:23 2003 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.166: +5 -21 lines
Diff to previous 1.166 (colored)

Remove a few #ifdef _LP64 by using STPTR/LDPTR macros.
Thanks to Matthew Green for the pointer.

Revision 1.166 / (download) - annotate - [select for diffs], Fri Jan 31 22:19:33 2003 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.165: +93 -96 lines
Diff to previous 1.165 (colored)

Apply leaf procedure optimization to pseg_set (again).

Revision 1.165 / (download) - annotate - [select for diffs], Fri Jan 31 19:05:56 2003 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.164: +123 -80 lines
Diff to previous 1.164 (colored)

Make the pmap count resident/wired mappings on the fly instead of
walking the page tables whenever this information is needed.

Add an option PMAP_COUNT_DEBUG to assert the new counts and the
page table walk agree.

The old solution had very bad performance impact, for example
by the high CPU load when running top(1).

Thanks to Simon Burge for pointing at the cause of the problem and
to Valeriy E. Ushakov for optimizing my simple minded assembler code.

Revision 1.164 / (download) - annotate - [select for diffs], Mon Jan 27 14:51:30 2003 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.163: +1 -114 lines
Diff to previous 1.163 (colored)

Remove unused function pseg_find (which looked quite similar to
pseg_get anyway).

Revision 1.163 / (download) - annotate - [select for diffs], Sat Jan 18 06:55:24 2003 UTC (21 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.162: +192 -122 lines
Diff to previous 1.162 (colored)

Merge the nathanw_sa branch.

Revision 1.139.4.19 / (download) - annotate - [select for diffs], Fri Jan 17 16:25:14 2003 UTC (21 years, 1 month ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.139.4.18: +2 -2 lines
Diff to previous 1.139.4.18 (colored) to branchpoint 1.139 (colored) next main 1.140 (colored)

Sync with HEAD.

Revision 1.162 / (download) - annotate - [select for diffs], Thu Jan 16 03:01:23 2003 UTC (21 years, 1 month ago) by petrov
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.161: +2 -2 lines
Diff to previous 1.161 (colored)

Move dump_dtlb back under DDB.

Revision 1.139.4.18 / (download) - annotate - [select for diffs], Wed Jan 15 18:41:33 2003 UTC (21 years, 1 month ago) by thorpej
Branch: nathanw_sa
Changes since 1.139.4.17: +3 -5 lines
Diff to previous 1.139.4.17 (colored) to branchpoint 1.139 (colored)

Sync with HEAD.

Revision 1.161 / (download) - annotate - [select for diffs], Wed Jan 15 06:15:05 2003 UTC (21 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.160: +3 -5 lines
Diff to previous 1.160 (colored)

fix two bugs in my last pmap rework:
 - in tlb_flush_all(), don't skip TLB entries with the high bit on,
   I was confused about which MMU register it was using.  it's also fine
   to use the last hardware context.
 - in pmap_create(), don't allocate a hardware context for the new pmap.
   it's unnecessary, and when this would cause us to recycle all the contexts,
   it would result in the current process's context being set to 0
   (ie. the kernel's context).  the current process could then return to
   userspace without going through the context-switch code (and thus without
   having a hardware context reallocated).  this would lead to user mappings
   being entered in the kernel's context later, causing all sorts of trouble.
   add some assertions to catch this kind of thing.

Revision 1.139.4.17 / (download) - annotate - [select for diffs], Tue Dec 31 01:03:50 2002 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.139.4.16: +5 -39 lines
Diff to previous 1.139.4.16 (colored) to branchpoint 1.139 (colored)

Rename cpu_preempt() to cpu_switchto(), and make the caller remove the
new process from its run queue before calling cpu_switchto().

While here, make a few cpu_switch() and cpu_switchto() implementations
get the outgoing LWP from the args, rather than looking at the curlwp
variable.

Revision 1.139.4.16 / (download) - annotate - [select for diffs], Sun Dec 29 19:41:11 2002 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.139.4.15: +24 -2 lines
Diff to previous 1.139.4.15 (colored) to branchpoint 1.139 (colored)

Sync with HEAD.

Revision 1.160 / (download) - annotate - [select for diffs], Wed Dec 25 22:05:10 2002 UTC (21 years, 2 months ago) by petrov
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.159: +24 -2 lines
Diff to previous 1.159 (colored)

new function dump_itlb.

Revision 1.139.4.15 / (download) - annotate - [select for diffs], Fri Oct 18 02:40:08 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.139.4.14: +232 -130 lines
Diff to previous 1.139.4.14 (colored) to branchpoint 1.139 (colored)

Catch up to -current.

Revision 1.124.2.9 / (download) - annotate - [select for diffs], Thu Oct 10 18:36:41 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.124.2.8: +232 -130 lines
Diff to previous 1.124.2.8 (colored) next main 1.125 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.159 / (download) - annotate - [select for diffs], Sun Sep 22 07:19:47 2002 UTC (21 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.158: +232 -130 lines
Diff to previous 1.158 (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.124.2.8 / (download) - annotate - [select for diffs], Fri Sep 6 08:41:46 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.124.2.7: +2 -2 lines
Diff to previous 1.124.2.7 (colored)

sync kqueue branch with HEAD

Revision 1.139.4.14 / (download) - annotate - [select for diffs], Wed Aug 28 22:26:30 2002 UTC (21 years, 6 months ago) by petrov
Branch: nathanw_sa
Changes since 1.139.4.13: +36 -13 lines
Diff to previous 1.139.4.13 (colored) to branchpoint 1.139 (colored)

cpu_preempt fix, adjust pc/npc in syscall, use T_AST for cpu_preempt.

Revision 1.139.4.13 / (download) - annotate - [select for diffs], Thu Aug 1 02:43:46 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.139.4.12: +2 -2 lines
Diff to previous 1.139.4.12 (colored) to branchpoint 1.139 (colored)

Catch up to -current.

Revision 1.153.2.2 / (download) - annotate - [select for diffs], Sun Jul 21 13:00:56 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.153.2.1: +2 -2 lines
Diff to previous 1.153.2.1 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored)

catch up with -current.

Revision 1.158 / (download) - annotate - [select for diffs], Thu Jul 18 11:59:07 2002 UTC (21 years, 7 months ago) by wiz
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.157: +2 -2 lines
Diff to previous 1.157 (colored)

Spell 'should' correctly.

Revision 1.153.2.1 / (download) - annotate - [select for diffs], Mon Jul 15 01:21:52 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.153: +106 -57 lines
Diff to previous 1.153 (colored)

catch up with -current.

Revision 1.139.4.12 / (download) - annotate - [select for diffs], Mon Jun 24 22:08:00 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.139.4.11: +51 -51 lines
Diff to previous 1.139.4.11 (colored) to branchpoint 1.139 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.124.2.7 / (download) - annotate - [select for diffs], Sun Jun 23 17:42:18 2002 UTC (21 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.124.2.6: +302 -750 lines
Diff to previous 1.124.2.6 (colored)

catch up with -current on kqueue branch

Revision 1.139.4.11 / (download) - annotate - [select for diffs], Thu Jun 20 03:41:30 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.139.4.10: +266 -741 lines
Diff to previous 1.139.4.10 (colored) to branchpoint 1.139 (colored)

Catch up to -current.

Revision 1.157 / (download) - annotate - [select for diffs], Fri Jun 7 19:29:38 2002 UTC (21 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.156: +17 -10 lines
Diff to previous 1.156 (colored)

Shave 10% off the time needed to flush the D$ through a bit of instruction
reordering.

Revision 1.153.4.3 / (download) - annotate - [select for diffs], Thu Jun 6 08:18:57 2002 UTC (21 years, 8 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.153.4.2: +60 -15 lines
Diff to previous 1.153.4.2 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.156 (requested by eeh in ticket #183):
Handle improperly aligned stack pointers more cleanly.

Revision 1.153.4.2 / (download) - annotate - [select for diffs], Thu Jun 6 08:13:44 2002 UTC (21 years, 8 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.153.4.1: +7 -18 lines
Diff to previous 1.153.4.1 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.155 (requested by eeh in ticket #181):
Fix the fork trampoline to properly use the supplied tstate.

Revision 1.153.4.1 / (download) - annotate - [select for diffs], Thu Jun 6 08:12:25 2002 UTC (21 years, 8 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.153: +25 -17 lines
Diff to previous 1.153 (colored)

Pull up revision 1.154 (requested by lukem in ticket #187):
Make this work with an ISO C preprocessor.

Revision 1.156 / (download) - annotate - [select for diffs], Wed Jun 5 18:11:18 2002 UTC (21 years, 9 months ago) by eeh
Branch: MAIN
Changes since 1.155: +60 -15 lines
Diff to previous 1.155 (colored)

Handle improperly aligned stack pointers more cleanly.

Revision 1.155 / (download) - annotate - [select for diffs], Tue Jun 4 15:04:08 2002 UTC (21 years, 9 months ago) by eeh
Branch: MAIN
Changes since 1.154: +7 -18 lines
Diff to previous 1.154 (colored)

Fix the fork trampoline to properly use the supplied tstate.

Revision 1.154 / (download) - annotate - [select for diffs], Fri May 31 20:01:28 2002 UTC (21 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.153: +25 -17 lines
Diff to previous 1.153 (colored)

Make this work with an ISO C preprocessor.

Revision 1.153 / (download) - annotate - [select for diffs], Tue May 14 02:23:07 2002 UTC (21 years, 9 months ago) by eeh
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.152: +64 -76 lines
Diff to previous 1.152 (colored)

Only save locals and ins in trapframes for DEBUG kernels.

Revision 1.152 / (download) - annotate - [select for diffs], Sat May 4 17:19:25 2002 UTC (21 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.151: +14 -14 lines
Diff to previous 1.151 (colored)

Add some comments to the CPP conditionals controlling the trap macro
definitions, to ease navigation somewhat.

Revision 1.151 / (download) - annotate - [select for diffs], Tue Apr 16 23:09:37 2002 UTC (21 years, 10 months ago) by eeh
Branch: MAIN
Changes since 1.150: +85 -597 lines
Diff to previous 1.150 (colored)

Make lots of routines profile-friendly and get rid of some cruft.

Revision 1.139.4.10 / (download) - annotate - [select for diffs], Mon Apr 1 07:43:11 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.139.4.9: +38 -11 lines
Diff to previous 1.139.4.9 (colored) to branchpoint 1.139 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.150 / (download) - annotate - [select for diffs], Thu Mar 21 06:56:31 2002 UTC (21 years, 11 months ago) by petrov
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.149: +1 -8 lines
Diff to previous 1.149 (colored)

Not needed debug stuff deleted.

Revision 1.147.4.1 / (download) - annotate - [select for diffs], Tue Mar 19 02:30:59 2002 UTC (21 years, 11 months ago) by thorpej
Branch: newlock
Changes since 1.147: +11 -2 lines
Diff to previous 1.147 (colored) next main 1.148 (colored)

Provide storage for proc0.

Revision 1.124.2.6 / (download) - annotate - [select for diffs], Sat Mar 16 15:59:59 2002 UTC (21 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.124.2.5: +9 -10 lines
Diff to previous 1.124.2.5 (colored)

Catch up with -current.

Revision 1.149 / (download) - annotate - [select for diffs], Sat Mar 16 15:15:33 2002 UTC (21 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.148: +4 -1 lines
Diff to previous 1.148 (colored)

tell newer binutils that our use of %g2 and %g3 is OK here.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Mar 15 07:02:24 2002 UTC (21 years, 11 months ago) by eeh
Branch: MAIN
Changes since 1.147: +35 -4 lines
Diff to previous 1.147 (colored)

Cleanup MMU initialization to prevent hangs.

Revision 1.139.4.9 / (download) - annotate - [select for diffs], Thu Feb 28 04:12:16 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.139.4.8: +107 -55 lines
Diff to previous 1.139.4.8 (colored) to branchpoint 1.139 (colored)

Catch up to -current.

Revision 1.124.2.5 / (download) - annotate - [select for diffs], Mon Feb 11 20:09:12 2002 UTC (22 years ago) by jdolecek
Branch: kqueue
Changes since 1.124.2.4: +101 -48 lines
Diff to previous 1.124.2.4 (colored)

Sync w/ -current.

Revision 1.147 / (download) - annotate - [select for diffs], Sat Feb 9 05:01:39 2002 UTC (22 years ago) by eeh
Branch: MAIN
CVS Tags: newlock-base, ifpoll-base
Branch point for: newlock
Changes since 1.146: +1 -2 lines
Diff to previous 1.146 (colored)

Fix microsecond calculation in microtime.

Revision 1.146 / (download) - annotate - [select for diffs], Thu Feb 7 22:23:01 2002 UTC (22 years ago) by eeh
Branch: MAIN
Changes since 1.145: +9 -9 lines
Diff to previous 1.145 (colored)

Fix register allocation in microtime().

Revision 1.145 / (download) - annotate - [select for diffs], Tue Jan 29 01:15:50 2002 UTC (22 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.144: +2 -2 lines
Diff to previous 1.144 (colored)

Shift the UPAID in the correct direction.

Revision 1.144 / (download) - annotate - [select for diffs], Thu Jan 17 22:23:47 2002 UTC (22 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.143: +57 -6 lines
Diff to previous 1.143 (colored)

Be more tolerant of unaligned stack pointers.

Revision 1.143 / (download) - annotate - [select for diffs], Thu Jan 17 02:26:37 2002 UTC (22 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.142: +2 -2 lines
Diff to previous 1.142 (colored)

Enable block insns in bcopy and bzero.

Revision 1.142 / (download) - annotate - [select for diffs], Wed Jan 16 22:44:48 2002 UTC (22 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.141: +41 -39 lines
Diff to previous 1.141 (colored)

In bcopy use 32-bit comparisons in 32-bit kernels.

Revision 1.141 / (download) - annotate - [select for diffs], Wed Jan 16 18:52:35 2002 UTC (22 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored)

Use correct calculation for the trapframe in softtrap for ILP32.

Revision 1.124.2.4 / (download) - annotate - [select for diffs], Thu Jan 10 19:49:26 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.124.2.3: +2 -2 lines
Diff to previous 1.124.2.3 (colored)

Sync kqueue branch with -current.

Revision 1.139.4.8 / (download) - annotate - [select for diffs], Tue Jan 8 00:28:02 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.139.4.7: +2 -1 lines
Diff to previous 1.139.4.7 (colored) to branchpoint 1.139 (colored)

Catch up to -current.

Revision 1.139.4.7 / (download) - annotate - [select for diffs], Fri Jan 4 22:38:51 2002 UTC (22 years, 1 month ago) by eeh
Branch: nathanw_sa
Changes since 1.139.4.6: +62 -6 lines
Diff to previous 1.139.4.6 (colored) to branchpoint 1.139 (colored)

Implement upcalls and cpu_preempt().

Revision 1.139.4.6 / (download) - annotate - [select for diffs], Fri Jan 4 19:12:28 2002 UTC (22 years, 1 month ago) by eeh
Branch: nathanw_sa
Changes since 1.139.4.5: +122 -118 lines
Diff to previous 1.139.4.5 (colored) to branchpoint 1.139 (colored)

Cleanup.

Revision 1.139.4.5 / (download) - annotate - [select for diffs], Fri Jan 4 10:03:36 2002 UTC (22 years, 2 months ago) by petrov
Branch: nathanw_sa
Changes since 1.139.4.4: +2 -1 lines
Diff to previous 1.139.4.4 (colored) to branchpoint 1.139 (colored)

old stuff(single-threaded) works

Revision 1.139.4.4 / (download) - annotate - [select for diffs], Fri Jan 4 09:26:46 2002 UTC (22 years, 2 months ago) by petrov
Branch: nathanw_sa
Changes since 1.139.4.3: +18 -16 lines
Diff to previous 1.139.4.3 (colored) to branchpoint 1.139 (colored)

more bits to SA

Revision 1.139.4.3 / (download) - annotate - [select for diffs], Thu Jan 3 10:03:55 2002 UTC (22 years, 2 months ago) by petrov
Branch: nathanw_sa
Changes since 1.139.4.2: +3 -3 lines
Diff to previous 1.139.4.2 (colored) to branchpoint 1.139 (colored)

sync again

Revision 1.139.4.2 / (download) - annotate - [select for diffs], Thu Jan 3 06:42:35 2002 UTC (22 years, 2 months ago) by petrov
Branch: nathanw_sa
Changes since 1.139.4.1: +12435 -0 lines
Diff to previous 1.139.4.1 (colored) to branchpoint 1.139 (colored)

make kernel compile

Revision 1.140 / (download) - annotate - [select for diffs], Tue Nov 20 08:43:37 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.139: +2 -1 lines
Diff to previous 1.139 (colored)

- pull in opt_kgdb.h where necessary
- replace opt_kgdb_machdep.h with opt_kgdb.h
- defparam opt_kgdb.h:
	KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE
- move from opt_ddbparam.h to opt_ddb.h:
	DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE
- replace KGDBDEV with KGDB_DEV
- replace KGDBADDR with KGDB_DEVADDR
- replace KGDBMODE with KGDB_DEVMODE
- replace KGDBRATE with KGDB_DEVRATE
- use `9600' instead of `0x2580' for 9600 baud rate
- use correct quotes for  options KGDB_DEVNAME="\"com\""
- use correct quotes for  options KGDB_DEV="17*256+0"
- remove unnecessary dependancy on Makefile for kgdb_stub.o
- minor whitespace cleanup

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:42:34 2001 UTC (22 years, 5 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.138: +1 -2 lines
Diff to previous 1.138 (colored) next main 1.139 (colored)

Catch up with -current.

Revision 1.139.4.1, Fri Sep 14 19:18:13 2001 UTC (22 years, 5 months ago) by petrov
Branch: nathanw_sa
Changes since 1.139: +0 -12417 lines
FILE REMOVED

file locore.s was added on branch nathanw_sa on 2002-01-03 06:42:35 +0000

Revision 1.139 / (download) - annotate - [select for diffs], Fri Sep 14 19:18:13 2001 UTC (22 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: nathanw_sa
Changes since 1.138: +1 -2 lines
Diff to previous 1.138 (colored)

Don't declare intrhand[] here -- that's taken care of in intr.c.

Revision 1.124.2.3 / (download) - annotate - [select for diffs], Thu Sep 13 01:14:42 2001 UTC (22 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.124.2.2: +153 -29 lines
Diff to previous 1.124.2.2 (colored)

Update the kqueue branch to HEAD.

Revision 1.138 / (download) - annotate - [select for diffs], Thu Aug 30 22:58:30 2001 UTC (22 years, 6 months ago) by eeh
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Changes since 1.137: +153 -29 lines
Diff to previous 1.137 (colored)

Preliminary UltraSPARC III suport (not enabled yet).

Revision 1.124.2.2 / (download) - annotate - [select for diffs], Sat Aug 25 06:15:56 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.124.2.1: +497 -684 lines
Diff to previous 1.124.2.1 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.137 / (download) - annotate - [select for diffs], Mon Aug 13 06:10:10 2001 UTC (22 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.136: +1 -28 lines
Diff to previous 1.136 (colored)

g/c _remque()/_insque(); use the C version in libkern

Revision 1.136 / (download) - annotate - [select for diffs], Thu Aug 9 01:00:11 2001 UTC (22 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.135: +67 -39 lines
Diff to previous 1.135 (colored)

Fix context masking lossage caused by last version.

Revision 1.135 / (download) - annotate - [select for diffs], Wed Aug 8 18:30:45 2001 UTC (22 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.134: +84 -74 lines
Diff to previous 1.134 (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.134 / (download) - annotate - [select for diffs], Tue Aug 7 00:03:27 2001 UTC (22 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.133: +141 -319 lines
Diff to previous 1.133 (colored)

Make sure C code always has ASI_PRIMARY_NOFAULT in the %asi register so
the compiler will be happy if it ever starts generating speculative loads.

Revision 1.133 / (download) - annotate - [select for diffs], Sun Aug 5 18:32:30 2001 UTC (22 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.132: +232 -252 lines
Diff to previous 1.132 (colored)

Add support for non-faulting loads and optimize MMU miss handling paths.

Revision 1.124.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:12:29 2001 UTC (22 years, 7 months ago) by lukem
Branch: kqueue
Changes since 1.124: +381 -490 lines
Diff to previous 1.124 (colored)

update to -current

Revision 1.132 / (download) - annotate - [select for diffs], Thu Aug 2 22:41:32 2001 UTC (22 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.131: +59 -21 lines
Diff to previous 1.131 (colored)

Fix bcopy.

Revision 1.131 / (download) - annotate - [select for diffs], Thu Aug 2 01:47:47 2001 UTC (22 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.130: +68 -126 lines
Diff to previous 1.130 (colored)

Sync bzero w/libc version.

Revision 1.130 / (download) - annotate - [select for diffs], Wed Aug 1 17:01:26 2001 UTC (22 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.129: +12 -12 lines
Diff to previous 1.129 (colored)

Integrate fixes from userland memset.

Revision 1.129 / (download) - annotate - [select for diffs], Tue Jul 31 06:58:09 2001 UTC (22 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.128: +22 -26 lines
Diff to previous 1.128 (colored)

Code cleanup and optimization.

Revision 1.128 / (download) - annotate - [select for diffs], Mon Jul 23 17:19:56 2001 UTC (22 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.127: +1 -68 lines
Diff to previous 1.127 (colored)

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

Revision 1.127 / (download) - annotate - [select for diffs], Thu Jul 19 23:37:17 2001 UTC (22 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.126: +2 -2 lines
Diff to previous 1.126 (colored)

Do ignore unregistered interrupts instead of faulting.

Revision 1.126 / (download) - annotate - [select for diffs], Mon Jul 16 18:59:33 2001 UTC (22 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.125: +204 -222 lines
Diff to previous 1.125 (colored)

Make bcopy a 32-bit friendly.

Revision 1.125 / (download) - annotate - [select for diffs], Wed Jul 11 23:02:56 2001 UTC (22 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.124: +32 -32 lines
Diff to previous 1.124 (colored)

Fix problems booting 32-bit kernels and dispatching level-15 interrupts.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Jul 8 21:05:11 2001 UTC (22 years, 7 months ago) by eeh
Branch: MAIN
Branch point for: kqueue
Changes since 1.123: +121 -106 lines
Diff to previous 1.123 (colored)

Code cleanup.  Add  block_disable to let you turn on block set/copy routines.

Revision 1.123 / (download) - annotate - [select for diffs], Thu Jul 5 06:37:58 2001 UTC (22 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.122: +310 -286 lines
Diff to previous 1.122 (colored)

New block bzero and bcopy.

Revision 1.122 / (download) - annotate - [select for diffs], Wed Jul 4 05:57:39 2001 UTC (22 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.121: +430 -127 lines
Diff to previous 1.121 (colored)

Replace old bcopy with a much faster version.

Revision 1.121 / (download) - annotate - [select for diffs], Sun Jul 1 09:25:33 2001 UTC (22 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored)

Disable axidently enabled debug code to make -current compile again.

Revision 1.120 / (download) - annotate - [select for diffs], Sat Jun 30 19:09:38 2001 UTC (22 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.119: +111 -34 lines
Diff to previous 1.119 (colored)

Use a newer version (still disabled) of block bcopy.

Revision 1.119 / (download) - annotate - [select for diffs], Sat Jun 30 00:08:15 2001 UTC (22 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.118: +1238 -185 lines
Diff to previous 1.118 (colored)

Fixup fpu save restore, get rid of some unused copy functions, and add
a new bcopy.

Revision 1.112.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 19:36:15 2001 UTC (22 years, 8 months ago) by nathanw
Changes since 1.112.2.1: +11 -525 lines
Diff to previous 1.112.2.1 (colored) next main 1.113 (colored)

Catch up to -current.

Revision 1.118 / (download) - annotate - [select for diffs], Thu Jun 21 00:24:22 2001 UTC (22 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.117: +179 -139 lines
Diff to previous 1.117 (colored)

Allow multiple 4MB pages for both kernel text and kernel data.

Note: DEBUG checks will not allow accesses to the hole between
text and data segments, so you may need to update programs that
use libkvm before relocating the start of kernel data.

Revision 1.117 / (download) - annotate - [select for diffs], Wed Jun 6 21:19:49 2001 UTC (22 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.116: +8 -524 lines
Diff to previous 1.116 (colored)

extract the netbsd32, sunos, 32 bit svr4 and 64 bit svr4 sigcode out into
separate files, so that compat lkms can link with them as well.

Revision 1.116 / (download) - annotate - [select for diffs], Wed May 30 15:24:37 2001 UTC (22 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.115: +2 -1 lines
Diff to previous 1.115 (colored)

add missing   #include "opt_kgdb.h"

Revision 1.115 / (download) - annotate - [select for diffs], Wed Apr 25 02:33:08 2001 UTC (22 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: thorpej_scsipi_beforemerge
Changes since 1.114: +2 -2 lines
Diff to previous 1.114 (colored)

Spell occurred correctly.

Revision 1.46.2.7 / (download) - annotate - [select for diffs], Sat Apr 21 17:54:43 2001 UTC (22 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.46.2.6: +2 -1 lines
Diff to previous 1.46.2.6 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

Sync with HEAD

Revision 1.114 / (download) - annotate - [select for diffs], Mon Apr 9 21:15:42 2001 UTC (22 years, 10 months ago) by eeh
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_base
Changes since 1.113: +2 -1 lines
Diff to previous 1.113 (colored)

Interrupt latency fix from sparc port.  (Hm.  One insn instead of 5).

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:55:04 2001 UTC (22 years, 10 months ago) by nathanw
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored)

Catch up with -current.

Revision 1.46.2.6 / (download) - annotate - [select for diffs], Mon Mar 12 13:29:30 2001 UTC (22 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.46.2.5: +9 -9 lines
Diff to previous 1.46.2.5 (colored) to branchpoint 1.46 (colored)

Sync with HEAD.

Revision 1.113 / (download) - annotate - [select for diffs], Wed Mar 7 01:47:02 2001 UTC (22 years, 11 months ago) by eeh
Branch: MAIN
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored)

Fix inverted preprocessor logic.  (Spotted by Charles.)

Revision 1.112 / (download) - annotate - [select for diffs], Wed Feb 21 23:53:00 2001 UTC (23 years ago) by eeh
Branch: MAIN
Changes since 1.111: +8 -8 lines
Diff to previous 1.111 (colored)

Add support for 64-bit SVR4 (Solaris 8) binaries.

Revision 1.46.2.5 / (download) - annotate - [select for diffs], Sun Feb 11 19:12:35 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.46.2.4: +136 -4 lines
Diff to previous 1.46.2.4 (colored) to branchpoint 1.46 (colored)

Sync with HEAD.

Revision 1.111 / (download) - annotate - [select for diffs], Sat Feb 10 20:00:24 2001 UTC (23 years ago) by pk
Branch: MAIN
Changes since 1.110: +2 -2 lines
Diff to previous 1.110 (colored)

Fix conditional for svr4 compat inclusion.

Revision 1.110 / (download) - annotate - [select for diffs], Mon Feb 5 06:56:45 2001 UTC (23 years ago) by eeh
Branch: MAIN
Changes since 1.109: +136 -4 lines
Diff to previous 1.109 (colored)

Add signal trampoline for 64-bit svr4 emulations.

Revision 1.46.2.4 / (download) - annotate - [select for diffs], Fri Jan 5 17:35:06 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.46.2.3: +22 -18 lines
Diff to previous 1.46.2.3 (colored) to branchpoint 1.46 (colored)

Sync with HEAD

Revision 1.109 / (download) - annotate - [select for diffs], Sun Dec 31 21:05:21 2000 UTC (23 years, 2 months ago) by eeh
Branch: MAIN
Changes since 1.108: +17 -12 lines
Diff to previous 1.108 (colored)

Make INCR() atomic.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Dec 29 18:32:47 2000 UTC (23 years, 2 months ago) by eeh
Branch: MAIN
Changes since 1.107: +7 -8 lines
Diff to previous 1.107 (colored)

pseg_get tells us whether it really needed that spare page after all.

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Fri Dec 8 09:30:38 2000 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.46.2.2: +5 -5 lines
Diff to previous 1.46.2.2 (colored) to branchpoint 1.46 (colored)

Sync with HEAD.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Dec 7 00:59:42 2000 UTC (23 years, 2 months ago) by eeh
Branch: MAIN
Changes since 1.106: +6 -6 lines
Diff to previous 1.106 (colored)

Fixup calculating where fpstate should be saved in the signal trampoline
code so it doesn't overwrite something important like the registers.

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:01:52 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.46.2.1: +3 -3 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored)

Sync with HEAD.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 20:26:52 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.46: +3287 -1874 lines
Diff to previous 1.46 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Nov 9 00:35:02 2000 UTC (23 years, 3 months ago) by eeh
Branch: MAIN
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored)

Fix ILP32 bug in probe_get().

Revision 1.105 / (download) - annotate - [select for diffs], Sun Oct 22 21:28:27 2000 UTC (23 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.104: +85 -79 lines
Diff to previous 1.104 (colored)

Restore revision 1.102.

I hope it sticks this time..

Revision 1.62.2.8 / (download) - annotate - [select for diffs], Fri Oct 20 18:21:35 2000 UTC (23 years, 4 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.62.2.7: +23 -22 lines
Diff to previous 1.62.2.7 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored)

Pullup 1.104 by patch [eeh]:
Fix hang in 32-bit kernels caused by relocation of KERNBASE.

Revision 1.104 / (download) - annotate - [select for diffs], Fri Oct 20 16:43:54 2000 UTC (23 years, 4 months ago) by eeh
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

Fix hang in 32-bit kernels caused by relocation of KERNBASE.

Revision 1.62.2.7 / (download) - annotate - [select for diffs], Wed Oct 18 16:31:29 2000 UTC (23 years, 4 months ago) by tv
Branch: netbsd-1-5
Changes since 1.62.2.6: +127 -52 lines
Diff to previous 1.62.2.6 (colored) to branchpoint 1.62 (colored)

Pullup by patch [eeh]:
Move KERNBASE from 0xf1000000 to 0x01000000.

Revision 1.103 / (download) - annotate - [select for diffs], Wed Oct 4 22:18:25 2000 UTC (23 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.102: +116 -110 lines
Diff to previous 1.102 (colored)

Fix interrupt lossage problem and some cosmetic changes.

Revision 1.102 / (download) - annotate - [select for diffs], Sun Oct 1 19:13:16 2000 UTC (23 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.101: +87 -80 lines
Diff to previous 1.101 (colored)

cpu_initialize: global registers aren't preserved across calls to
prom_printf(), so replace %g3 with %l7 (which isn't used despite
the `usage' comment).

Also, clean up white-space turds.

Revision 1.101 / (download) - annotate - [select for diffs], Fri Sep 29 17:02:39 2000 UTC (23 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.100: +57 -9 lines
Diff to previous 1.100 (colored)

This seems to fix the interrupt lossage of non-debug kernels.

Revision 1.100 / (download) - annotate - [select for diffs], Thu Sep 28 19:27:49 2000 UTC (23 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.99: +60 -45 lines
Diff to previous 1.99 (colored)

Fix INTR_SETUP() to properly distinguish kernel and user addresses.

Make microtime() return the correct time on %tick machines.

Re-enable debug stuff in dostart for now to detect kernel mapping issues.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Sep 25 21:02:38 2000 UTC (23 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.98: +3 -1 lines
Diff to previous 1.98 (colored)

Missing `#if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)'

Revision 1.98 / (download) - annotate - [select for diffs], Sun Sep 17 19:23:37 2000 UTC (23 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.97: +12 -15 lines
Diff to previous 1.97 (colored)

Make the improved %tick changes work with machines that use the counter-timer
for the clock.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Sep 12 04:16:29 2000 UTC (23 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.96: +23 -14 lines
Diff to previous 1.96 (colored)

Fix new version of microtime.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Sep 11 23:29:31 2000 UTC (23 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.95: +53 -37 lines
Diff to previous 1.95 (colored)

(Hopefully) fix clock skew on machines that us %tick for the clock (UIIi).

Revision 1.95 / (download) - annotate - [select for diffs], Thu Aug 31 20:14:55 2000 UTC (23 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.94: +150 -14 lines
Diff to previous 1.94 (colored)

Use casx instead of stx to change entries in the page table trees.

Revision 1.62.2.6 / (download) - annotate - [select for diffs], Sat Aug 26 00:55:14 2000 UTC (23 years, 6 months ago) by mrg
Branch: netbsd-1-5
Changes since 1.62.2.5: +7 -4 lines
Diff to previous 1.62.2.5 (colored) to branchpoint 1.62 (colored)

pull up 1.93.  approved by thorpej
>Fix signal delivery.

Revision 1.94 / (download) - annotate - [select for diffs], Wed Aug 23 21:35:57 2000 UTC (23 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.93: +158 -139 lines
Diff to previous 1.93 (colored)

Update the scheduler to the new locking scheme.

Revision 1.93 / (download) - annotate - [select for diffs], Thu Aug 10 18:33:47 2000 UTC (23 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.92: +7 -4 lines
Diff to previous 1.92 (colored)

Fix signal delivery.

Revision 1.62.2.5 / (download) - annotate - [select for diffs], Mon Aug 7 01:27:14 2000 UTC (23 years, 6 months ago) by mrg
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.62.2.4: +9 -4 lines
Diff to previous 1.62.2.4 (colored) to branchpoint 1.62 (colored)

pull up 1.92 (approved by thorpej):
>Get kernel profiling to work.  Now if only gprof worked....

Revision 1.62.2.4 / (download) - annotate - [select for diffs], Mon Aug 7 01:16:34 2000 UTC (23 years, 6 months ago) by mrg
Branch: netbsd-1-5
Changes since 1.62.2.3: +283 -130 lines
Diff to previous 1.62.2.3 (colored) to branchpoint 1.62 (colored)

pull up 1.91 (approved by thorpej):
>Overhaul cache flush code and coredump code.

Revision 1.92 / (download) - annotate - [select for diffs], Wed Aug 2 22:24:40 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.91: +9 -4 lines
Diff to previous 1.91 (colored)

Get kernel profiling to work.  Now if only gprof worked....

Revision 1.91 / (download) - annotate - [select for diffs], Tue Aug 1 00:40:15 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.90: +262 -144 lines
Diff to previous 1.90 (colored)

Overhaul cache flush code and coredump code.

Revision 1.62.2.3 / (download) - annotate - [select for diffs], Mon Jul 31 05:12:43 2000 UTC (23 years, 7 months ago) by mrg
Branch: netbsd-1-5
Changes since 1.62.2.2: +743 -681 lines
Diff to previous 1.62.2.2 (colored) to branchpoint 1.62 (colored)

pull up 1.75 .. 1.82, 1.86 & 1.90 (approved by thorpej):
1.75
>If `ih_pending' is set simply return from the trap, don't schedule another
>soft interrupt.
1.76
>probeget: 9 -> 0x9
1.77
>Correct args usage comment in probeget.
1.78
>Whitespace cleanup.
1.79
>Miscellaneous cleanup.
1.80
>Disable interrupt interlock using ih->ih_pending field.  Seems to cause
>more problems than it solves.
1.81
>Fix merge problem.
1.82
>Since `intrcnt' points to an array of long ints, reserve the appropriate
>amount of space depending on _LP64. Provide macros to load/store signed
>and unsigned long ints.
>
>Also, make the `intrcnt' and `intrpending' arrays 16 entries long, as on
>sparc/v9 interrupt #15 is just a regular interrupt.
1.86
>Cosmetic & readability:
>	- local label cleanup in interrupt handling code;
>	- in debugging sections when testing `intrdebug': use a unique
>	  local label (97) to enhanced clarity;
>	- comment-out unused code;
>	- kill a bug as the satisfying result of doing all of the above.
1.90
>Re-instate a couple of delay slot NOPs marked `XXX spitfire bug?'

Revision 1.62.2.2 / (download) - annotate - [select for diffs], Thu Jul 27 00:17:29 2000 UTC (23 years, 7 months ago) by mycroft
Branch: netbsd-1-5
Changes since 1.62.2.1: +20 -44 lines
Diff to previous 1.62.2.1 (colored) to branchpoint 1.62 (colored)

Approved by thorpej:
Fix bugs in bzero(), and many stack bias problems.

syssrc/sys/arch/sparc64/sparc64/locore.s		1.82 -> 1.85
syssrc/sys/arch/sparc64/sparc64/locore.s		1.86 -> 1.89
(Part of 1.85 omitted, since it's not related.)

Revision 1.90 / (download) - annotate - [select for diffs], Tue Jul 25 15:15:32 2000 UTC (23 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.89: +4 -1 lines
Diff to previous 1.89 (colored)

Re-instate a couple of delay slot NOPs marked `XXX spitfire bug?'

Revision 1.89 / (download) - annotate - [select for diffs], Mon Jul 24 16:21:02 2000 UTC (23 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.88: +2 -10 lines
Diff to previous 1.88 (colored)

Optimization to pmap_zero_page(): we only need to use the first 16 FP regs,
as in bzero().

Revision 1.88 / (download) - annotate - [select for diffs], Mon Jul 24 16:08:18 2000 UTC (23 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Fix a whitespace glitch.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Jul 24 15:57:07 2000 UTC (23 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.86: +15 -31 lines
Diff to previous 1.86 (colored)

Pull in the bzero() changes from libc for real, with a couple of kernel-
specific hacks:
* Make the bias handling depend on STKB, so it switches correctly for 32-bit
  kernels.
* Use the 32-bit stw/ld for 32-bit kernels.
* Add a few `-STKB's that were missed in the previous change.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jul 24 14:55:56 2000 UTC (23 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.85: +84 -51 lines
Diff to previous 1.85 (colored)

Cosmetic & readability:
	- local label cleanup in interrupt handling code;
	- in debugging sections when testing `intrdebug': use a unique
	  local label (97) to enhanced clarity;
	- comment-out unused code;
	- kill a bug as the satisfying result of doing all of the above.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Jul 24 07:40:40 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.84: +47 -11 lines
Diff to previous 1.84 (colored)

Fix stack issues in bzero.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Jul 24 06:30:34 2000 UTC (23 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.83: +21 -1 lines
Diff to previous 1.83 (colored)

Revert the previous change for now.  I don't have time to debug it tonight.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Jul 23 20:39:14 2000 UTC (23 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.82: +2 -22 lines
Diff to previous 1.82 (colored)

Copy bzero change from libc.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Jul 20 13:28:39 2000 UTC (23 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.81: +39 -26 lines
Diff to previous 1.81 (colored)

Since `intrcnt' points to an array of long ints, reserve the appropriate
amount of space depending on _LP64. Provide macros to load/store signed
and unsigned long ints.

Also, make the `intrcnt' and `intrpending' arrays 16 entries long, as on
sparc/v9 interrupt #15 is just a regular interrupt.

Revision 1.81 / (download) - annotate - [select for diffs], Wed Jul 19 15:48:25 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.80: +2 -1 lines
Diff to previous 1.80 (colored)

Fix merge problem.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Jul 19 04:36:42 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.79: +6 -1 lines
Diff to previous 1.79 (colored)

Disable interrupt interlock using ih->ih_pending field.  Seems to cause
more problems than it solves.

Revision 1.79 / (download) - annotate - [select for diffs], Wed Jul 19 03:24:07 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.78: +82 -74 lines
Diff to previous 1.78 (colored)

Miscellaneous cleanup.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Jul 18 20:14:45 2000 UTC (23 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.77: +536 -536 lines
Diff to previous 1.77 (colored)

Correct args usage comment in probeget.
Whitespace cleanup.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Jul 18 19:27:57 2000 UTC (23 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

probeget: 9 -> 0x9

Revision 1.76 / (download) - annotate - [select for diffs], Tue Jul 18 19:25:26 2000 UTC (23 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.75: +8 -10 lines
Diff to previous 1.75 (colored)

If `ih_pending' is set simply return from the trap, don't schedule another
soft interrupt.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Tue Jul 18 16:23:27 2000 UTC (23 years, 7 months ago) by mrg
Branch: netbsd-1-5
Changes since 1.62: +506 -203 lines
Diff to previous 1.62 (colored)

pullup the contents of -current arch/sparc64.  this gives us significant
ultrasparc PCI support (ultra5, ultra10, AXi, and E250 tested so far),
plus many other small fixes.  netbooting is now supported.

Revision 1.75 / (download) - annotate - [select for diffs], Tue Jul 18 12:52:56 2000 UTC (23 years, 7 months ago) by pk
Branch: MAIN
CVS Tags: mrg-merge-1-5-top
Changes since 1.74: +21 -13 lines
Diff to previous 1.74 (colored)

openfirmware: don't lower %pil

Revision 1.74 / (download) - annotate - [select for diffs], Mon Jul 17 17:06:00 2000 UTC (23 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.73: +8 -8 lines
Diff to previous 1.73 (colored)

Kill typos in interrupt code.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Jul 17 14:08:43 2000 UTC (23 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.72: +32 -3 lines
Diff to previous 1.72 (colored)

probeget: do the same song and dance as ld*a() macros in ctlreg.h do.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Jul 14 21:04:17 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.71: +7 -3 lines
Diff to previous 1.71 (colored)

Move some macro definitions out of genassym and into locore.s

Revision 1.71 / (download) - annotate - [select for diffs], Sat Jul 8 05:04:01 2000 UTC (23 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

backout part of previous: turn off intrdebug, and another debug message

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jul 7 23:28:28 2000 UTC (23 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.69: +72 -83 lines
Diff to previous 1.69 (colored)

Changes for readability:
	- #define LP64 dependent STACKFRAME macro once
	- use a LOAD_ASCIZ macro for setting up the format string
	  for debug messages.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jul 7 19:59:36 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.68: +4 -1 lines
Diff to previous 1.68 (colored)

Temporary fix to prevent the clock from stopping on UIIi machines.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Jul 3 17:56:08 2000 UTC (23 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.67: +26 -6 lines
Diff to previous 1.67 (colored)

Prevent interrupts from being posted if they are active and deprecate polled
interrupts.  This seems to eliminate the spurious interrupts.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jul 2 16:13:22 2000 UTC (23 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.66: +23 -123 lines
Diff to previous 1.66 (colored)

Clean up interrupt handling some more.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Jun 30 22:58:02 2000 UTC (23 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.65: +324 -75 lines
Diff to previous 1.65 (colored)

Fix interrupt delivery on UltraSPARC IIi machines.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Jun 24 20:48:41 2000 UTC (23 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

With these changes the kernel seems almost stable again.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Jun 24 04:38:21 2000 UTC (23 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.63: +135 -36 lines
Diff to previous 1.63 (colored)

More VM cleanup:

	Move the cpu_info structure above the interrupt stack so it won't
	get corrupted if the stack overflows.

	Flush the D$ before and after all MMU bypass accesses since the
	D$ latches all of those.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Jun 23 19:50:54 2000 UTC (23 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.62: +33 -31 lines
Diff to previous 1.62 (colored)

Make probeget() and probeset() really work for a change.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:04:34 2000 UTC (23 years, 8 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.59: +616 -457 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jun 19 23:30:35 2000 UTC (23 years, 8 months ago) by eeh
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.61: +496 -430 lines
Diff to previous 1.61 (colored)

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

Revision 1.61 / (download) - annotate - [select for diffs], Mon Jun 12 23:32:47 2000 UTC (23 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.60: +131 -45 lines
Diff to previous 1.60 (colored)

Start reorganizing the kernel for MULTIPROCESSOR support.

Revision 1.60 / (download) - annotate - [select for diffs], Wed May 31 05:09:19 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.59: +8 -1 lines
Diff to previous 1.59 (colored)

Add a comment about needing to initialize p_cpu when multiple
processors are supported.

Revision 1.59 / (download) - annotate - [select for diffs], Fri May 26 21:20:20 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.58: +7 -9 lines
Diff to previous 1.58 (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.58 / (download) - annotate - [select for diffs], Fri May 26 05:27:29 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.57: +1 -13 lines
Diff to previous 1.57 (colored)

Don't set `runtime' here; it's done at the end of mi_switch().
cvS: ----------------------------------------------------------------------

Revision 1.57 / (download) - annotate - [select for diffs], Fri May 26 00:36:50 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +3 -1 lines
Diff to previous 1.56 (colored)

Introduce a new process state distinct from SRUN called SONPROC
which indicates that the process is actually running on a
processor.  Test against SONPROC as appropriate rather than
combinations of SRUN and curproc.  Update all context switch code
to properly set SONPROC when the process becomes the current
process on the CPU.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Apr 22 22:06:06 2000 UTC (23 years, 10 months ago) by eeh
Branch: MAIN
Changes since 1.55: +21 -1 lines
Diff to previous 1.55 (colored)

If we trap due to a bad kernel stack, try to switch to the interrupt strack
before breaking into the debugger.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Apr 18 02:12:25 2000 UTC (23 years, 10 months ago) by eeh
Branch: MAIN
Changes since 1.54: +194 -120 lines
Diff to previous 1.54 (colored)

Prevent the system from getting watchdog reset by returning directly to user
mode if restoring the user window traps.  Also reduce the time we run with
%tl>0.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Apr 13 18:40:27 2000 UTC (23 years, 10 months ago) by eeh
Branch: MAIN
Changes since 1.53: +12 -12 lines
Diff to previous 1.53 (colored)

Apparently gas 2.9.5 (don't ask) does not like to add values to %lo()
directives so move the additions inside %lo() to make it happy.
Hopefully this won't break older versions.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Apr 10 16:28:56 2000 UTC (23 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.52: +22 -28 lines
Diff to previous 1.52 (colored)

- fix a speeling error
- rename some numbered labels to be a bit less confusing.
- remove dead code
- fix a debug error message (argh!)

Revision 1.52 / (download) - annotate - [select for diffs], Mon Apr 10 13:34:19 2000 UTC (23 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Get a kernel without DDB to build.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Mar 16 02:36:59 2000 UTC (23 years, 11 months ago) by eeh
Branch: MAIN
Changes since 1.50: +221 -111 lines
Diff to previous 1.50 (colored)

Revamp interrupts again:

	Fix a bug causing interrmittent panics in interrupt dispatch.
	Use interrupt vectors for softints.
	Add a new send_softint interface.
	Improved D$ flushing.
	Improve traptrace and other debugging enhancements.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Jan 16 03:13:24 2000 UTC (24 years, 1 month ago) by eeh
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.49: +3 -4 lines
Diff to previous 1.49 (colored)

Interrupt handlers return zero if they didn't handle the interrupt.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Jan 10 03:53:21 2000 UTC (24 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.48: +32 -14 lines
Diff to previous 1.48 (colored)

Add debugger single-stepping and fix interrupt dispatch bugs.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Dec 30 16:39:53 1999 UTC (24 years, 2 months ago) by eeh
Branch: MAIN
Changes since 1.47: +476 -170 lines
Diff to previous 1.47 (colored)

Lots of changes:

	remove ffs()
	add bzero that uses block store insns
	save %gsr to fpstate
	revert to physical accesses for pmap_zero_page so we don't
		have conflicting page mappings
	general cleanup.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:33:59 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.45: +18 -36 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Pull up to last week's -current.

Revision 1.46.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:39:31 1999 UTC (24 years, 3 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.46: +16 -34 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Sync with -current

Revision 1.47 / (download) - annotate - [select for diffs], Sat Nov 6 20:28:37 1999 UTC (24 years, 3 months ago) by eeh
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base
Changes since 1.46: +16 -34 lines
Diff to previous 1.46 (colored)

Handle zero length properly in copyinstr() copyoutstr() and copystr().

Revision 1.46 / (download) - annotate - [select for diffs], Mon Oct 11 01:57:45 1999 UTC (24 years, 4 months ago) by eeh
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Update to post 1.4.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Oct 5 03:40:50 1999 UTC (24 years, 5 months ago) by eeh
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Make broken versions of gas happy by using sethi/or instead of set for
(negative) addresses.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Sep 17 20:07:15 1999 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +1 -5 lines
Diff to previous 1.43 (colored)

Centralize the declaration and clearing of `cold'.

Revision 1.36.4.3 / (download) - annotate - [select for diffs], Mon Aug 2 21:43:53 1999 UTC (24 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.36.4.2: +3 -3 lines
Diff to previous 1.36.4.2 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Update from trunk.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Jul 18 23:55:57 1999 UTC (24 years, 7 months ago) by eeh
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

More fun with pmap.

Revision 1.36.4.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:23:18 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.36.4.1: +41 -6 lines
Diff to previous 1.36.4.1 (colored) to branchpoint 1.36 (colored)

Sync w/ -current.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jun 21 01:39:06 1999 UTC (24 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.41: +41 -6 lines
Diff to previous 1.41 (colored)

Improve TRAPTRACE.  Add FLTRACE that only tracks MMU faults.

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:02:35 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.36: +519 -150 lines
Diff to previous 1.36 (colored)

Sync w/ -current.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jun 5 21:58:18 1999 UTC (24 years, 9 months ago) by eeh
Branch: MAIN
Changes since 1.40: +70 -19 lines
Diff to previous 1.40 (colored)

Make pbrobeget() and probeset() work for 64-bit values as well.  To do this
the arguments are changed so the address is first and the ASI second so we
can have the address in %o0:%o1 and not worry about unused registers.

Also a bit of copyright cleanup.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jun 5 05:08:25 1999 UTC (24 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.39: +9 -3 lines
Diff to previous 1.39 (colored)

update a commit slightly.

Revision 1.39 / (download) - annotate - [select for diffs], Sun May 30 19:13:34 1999 UTC (24 years, 9 months ago) by eeh
Branch: MAIN
Changes since 1.38: +258 -105 lines
Diff to previous 1.38 (colored)

Add code to support using %tick as the system clock if no "counter-timer" node
is found.

Revision 1.38 / (download) - annotate - [select for diffs], Sun May 9 19:24:20 1999 UTC (24 years, 9 months ago) by eeh
Branch: MAIN
Changes since 1.37: +70 -40 lines
Diff to previous 1.37 (colored)

Fixup non-DEBUG kernels.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Apr 29 16:40:41 1999 UTC (24 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.36: +131 -2 lines
Diff to previous 1.36 (colored)

Add sunos_sigcode (32 bit only)

Revision 1.36 / (download) - annotate - [select for diffs], Fri Mar 26 04:29:22 1999 UTC (24 years, 11 months 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
Branch point for: chs-ubc2
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

COMPAT_SPARC32 -> COMPAT_NETBSD32

Revision 1.35 / (download) - annotate - [select for diffs], Thu Mar 25 17:49:43 1999 UTC (24 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.34: +10 -10 lines
Diff to previous 1.34 (colored)

clean and up make compile

Revision 1.34 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:13 1999 UTC (24 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.33: +3 -18 lines
Diff to previous 1.33 (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.33 / (download) - annotate - [select for diffs], Mon Mar 22 06:47:01 1999 UTC (24 years, 11 months ago) by eeh
Branch: MAIN
Changes since 1.32: +8 -4 lines
Diff to previous 1.32 (colored)

Need to set up the pointers properly for partial FPU register stores.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Mar 22 05:35:39 1999 UTC (24 years, 11 months ago) by eeh
Branch: MAIN
Changes since 1.31: +184 -24 lines
Diff to previous 1.31 (colored)

Flush D$ on bypass accesses.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Feb 28 00:26:46 1999 UTC (25 years ago) by eeh
Branch: MAIN
Changes since 1.30: +309 -17 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Wed Feb 17 03:23:28 1999 UTC (25 years ago) by eeh
Branch: MAIN
Changes since 1.29: +83 -2 lines
Diff to previous 1.29 (colored)

Let's test out vectored interrupts.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Feb 15 04:54:34 1999 UTC (25 years ago) by hubertf
Branch: MAIN
Changes since 1.28: +1 -0 lines
Diff to previous 1.28 (colored)

RCS ID police

Revision 1.28 / (download) - annotate - [select for diffs], Thu Feb 11 13:18:35 1999 UTC (25 years ago) by mrg
Branch: MAIN
Changes since 1.27: +1 -1 lines
Diff to previous 1.27 (colored)

fix a comment pasto.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jan 11 06:43:51 1999 UTC (25 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.26: +3 -4 lines
Diff to previous 1.26 (colored)

Finally fixed 64-bit signal trampoline.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jan 10 23:35:08 1999 UTC (25 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.25: +16 -3 lines
Diff to previous 1.25 (colored)

Handle the symbol table properly in a 32-bit kernel that was booted from a
64-bit bootloader.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jan 9 23:31:27 1999 UTC (25 years, 1 month ago) by eeh
Branch: MAIN
Changes since 1.24: +8 -5 lines
Diff to previous 1.24 (colored)

More signal fixup.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Nov 26 22:40:17 1998 UTC (25 years, 3 months ago) by mycroft
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.23: +31 -26 lines
Diff to previous 1.23 (colored)

Sync kcopy() with 32-bit SPARC version.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Nov 16 06:51:35 1998 UTC (25 years, 3 months ago) by eeh
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Fixup the last broken bits of the signal handling code.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Oct 8 02:31:40 1998 UTC (25 years, 4 months ago) by eeh
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.21: +60 -30 lines
Diff to previous 1.21 (colored)

Fix more syscall32 and signal breakage.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Sep 22 02:48:44 1998 UTC (25 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.20: +52 -42 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Thu Sep 17 04:41:07 1998 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

SYS_sigreturn -> SYS___sigreturn14.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Sep 13 16:02:48 1998 UTC (25 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.18: +1 -0 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Fri Sep 11 00:16:59 1998 UTC (25 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.17: +15 -188 lines
Diff to previous 1.17 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Wed Sep 9 02:52:54 1998 UTC (25 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.16: +6 -1 lines
Diff to previous 1.16 (colored)

Don't use %tick for microtime on 32-bit kernels -- breaks gettimeofday.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Sep 9 00:07:56 1998 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +5 -12 lines
Diff to previous 1.15 (colored)

Adjust for the new "reaper" kernel thread: do not free the vmspace and
u-area in machine-dependent code.  Instead, call exit2() to schedule
the reaper to free them for us, once it is safe to do so (i.e. we are
no longer running on the dead proc's vmspace and stack).

Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 7 23:48:23 1998 UTC (25 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.14: +36 -90 lines
Diff to previous 1.14 (colored)

Fix data corruption problem caused by broken debug code.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Sep 7 20:02:32 1998 UTC (25 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.13: +5 -1 lines
Diff to previous 1.13 (colored)

Add new 64-bit trap vectors.

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

32-bit fixup.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Sep 6 04:42:08 1998 UTC (25 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.11: +6 -6 lines
Diff to previous 1.11 (colored)

Disable some debug stuff.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Sep 5 23:57:28 1998 UTC (25 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.10: +112 -35 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:38 1998 UTC (25 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.9: +80 -43 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:18 1998 UTC (25 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.8: +28 -12 lines
Diff to previous 1.8 (colored)

Some more 64-bit cleanup.  Now everything compiles.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Aug 29 18:16:56 1998 UTC (25 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.7: +634 -682 lines
Diff to previous 1.7 (colored)

Some more 64-bit-ification.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 27 06:23:32 1998 UTC (25 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.6: +284 -266 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Wed Aug 26 12:37:35 1998 UTC (25 years, 6 months ago) by mrg
Branch: MAIN
CVS Tags: PMAP32
Changes since 1.5: +3 -5 lines
Diff to previous 1.5 (colored)

panicstack: is needed outside of DEBUG.  use _C_LABEL, and printf not db_printf (incase no ddb!)

Revision 1.5 / (download) - annotate - [select for diffs], Thu Aug 13 02:10:47 1998 UTC (25 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.4: +69 -23 lines
Diff to previous 1.4 (colored)

Merge paddr_t changes into the main branch.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Sun Aug 9 05:46:35 1998 UTC (25 years, 6 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.4.2.2: +3 -1 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

General pmap and debug cleanup.  Added PMAP_NEW support, but it doesn't work too well yet.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:44 1998 UTC (25 years, 6 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.4.2.1: +25 -23 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Thu Jul 30 14:03:55 1998 UTC (25 years, 7 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.4: +50 -8 lines
Diff to previous 1.4 (colored)

Split vm_offset_t and vm_size_t into paddr_t, psize_t, vaddr_t, and vsize_t.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 7 03:05:04 1998 UTC (25 years, 8 months ago) by eeh
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.3: +10 -4 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Sat Jul 4 22:18:42 1998 UTC (25 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

defopt DDB.

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

defopt COMPAT_SVR4

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Jun 20 04:58:52 1998 UTC (25 years, 8 months ago) by eeh
Branch: eeh
CVS Tags: eeh-19980609
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import of sparc64.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jun 20 04:58:52 1998 UTC (25 years, 8 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.