The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.319: download - view: text, markup, annotated - select for diffs
Fri Feb 9 22:08:33 2024 UTC (10 months ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.318: preferred, colored
Changes since revision 1.318: +3 -3 lines
fix spelling mistakes, mainly in comments and log messages.

Revision 1.318: download - view: text, markup, annotated - select for diffs
Wed Dec 20 05:33:59 2023 UTC (11 months, 3 weeks ago) by thorpej
Branches: MAIN
Diff to: previous 1.317: preferred, colored
Changes since revision 1.317: +2 -3 lines
Remove unnecessary <sys/malloc.h>.

Revision 1.317: download - view: text, markup, annotated - select for diffs
Fri Jun 2 08:51:47 2023 UTC (18 months, 1 week ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.316: preferred, colored
Changes since revision 1.316: +3 -3 lines
follow the steps of Andrew Doran (ad) commit and fix more s/loose/lose/ typos.
also s/beyound/beyond/ and few others along the way, mainly in comments.

Revision 1.316: download - view: text, markup, annotated - select for diffs
Sat Apr 9 23:38:32 2022 UTC (2 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.315: preferred, colored
Changes since revision 1.315: +4 -4 lines
sys: Use membar_release/acquire around reference drop.

This just goes through my recent reference count membar audit and
changes membar_exit to membar_release and membar_enter to
membar_acquire -- this should make everything cheaper on most CPUs
without hurting correctness, because membar_acquire is generally
cheaper than membar_enter.

Revision 1.315: download - view: text, markup, annotated - select for diffs
Wed Apr 6 22:48:21 2022 UTC (2 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.314: preferred, colored
Changes since revision 1.314: +4 -4 lines
sparc64/pmap: Nix trailing whitespace.

Revision 1.314: download - view: text, markup, annotated - select for diffs
Sat Mar 12 15:32:31 2022 UTC (2 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.313: preferred, colored
Changes since revision 1.313: +4 -2 lines
sys: Membar audit around reference count releases.

If two threads are using an object that is freed when the reference
count goes to zero, we need to ensure that all memory operations
related to the object happen before freeing the object.

Using an atomic_dec_uint_nv(&refcnt) == 0 ensures that only one
thread takes responsibility for freeing, but it's not enough to
ensure that the other thread's memory operations happen before the
freeing.

Consider:

	  Thread A			  Thread B
	obj->foo = 42;			obj->baz = 73;
	mumble(&obj->bar);		grumble(&obj->quux);
	/* membar_exit(); */		/* membar_exit(); */
	atomic_dec -- not last		atomic_dec -- last
					/* membar_enter(); */
					KASSERT(invariant(obj->foo,
					    obj->bar));
					free_stuff(obj);

The memory barriers ensure that

	obj->foo = 42;
	mumble(&obj->bar);

in thread A happens before

	KASSERT(invariant(obj->foo, obj->bar));
	free_stuff(obj);

in thread B.  Without them, this ordering is not guaranteed.

So in general it is necessary to do

	membar_exit();
	if (atomic_dec_uint_nv(&obj->refcnt) != 0)
		return;
	membar_enter();

to release a reference, for the `last one out hit the lights' style
of reference counting.  (This is in contrast to the style where one
thread blocks new references and then waits under a lock for existing
ones to drain with a condvar -- no membar needed thanks to mutex(9).)

I searched for atomic_dec to find all these.  Obviously we ought to
have a better abstraction for this because there's so much copypasta.
This is a stop-gap measure to fix actual bugs until we have that.  It
would be nice if an abstraction could gracefully handle the different
styles of reference counting in use -- some years ago I drafted an
API for this, but making it cover everything got a little out of hand
(particularly with struct vnode::v_usecount) and I ended up setting
it aside to work on psref/localcount instead for better scalability.

I got bored of adding #ifdef __HAVE_ATOMIC_AS_MEMBAR everywhere, so I
only put it on things that look performance-critical on 5sec review.
We should really adopt membar_enter_preatomic/membar_exit_postatomic
or something (except they are applicable only to atomic r/m/w, not to
atomic_load/store_*, making the naming annoying) and get rid of all
the ifdefs.

Revision 1.313: download - view: text, markup, annotated - select for diffs
Sat Jan 1 11:56:15 2022 UTC (2 years, 11 months ago) by hannken
Branches: MAIN
Diff to: previous 1.312: preferred, colored
Changes since revision 1.312: +2 -4 lines
Remove an "#ifdef DIAGNOSTIC", KASSERT() always conumes its expression.

Revision 1.308.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:54 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.308.4.1: preferred, colored; branchpoint 1.308: preferred, colored; next MAIN 1.309: preferred, colored
Changes since revision 1.308.4.1: +12 -17 lines
Merge changes from current as of 20200406

Revision 1.312: download - view: text, markup, annotated - select for diffs
Sat Mar 14 14:05:43 2020 UTC (4 years, 9 months ago) by ad
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Diff to: previous 1.311: preferred, colored
Changes since revision 1.311: +5 -4 lines
pmap_remove_all(): Return a boolean value to indicate the behaviour.  If
true, all mappings have been removed, the pmap is totally cleared out, and
UVM can then avoid doing the work to call pmap_remove() for each map entry.
If false, either nothing has been done, or some helpful arch-specific voodoo
has taken place.

Revision 1.311: download - view: text, markup, annotated - select for diffs
Sun Dec 15 21:11:34 2019 UTC (4 years, 11 months ago) by ad
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.310: preferred, colored
Changes since revision 1.310: +9 -15 lines
Merge from yamt-pagecache:

- do gang lookup of pages using radixtree.
- remove now unused uvm_object::uo_memq and vm_page::listq.queue.

Revision 1.308.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:48 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.308: preferred, colored
Changes since revision 1.308: +3 -9 lines
Sync with HEAD

Revision 1.308.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:24 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.308.2.1: preferred, colored; branchpoint 1.308: preferred, colored; next MAIN 1.309: preferred, colored
Changes since revision 1.308.2.1: +2 -8 lines
Synch with HEAD

Revision 1.310: download - view: text, markup, annotated - select for diffs
Thu Jan 10 10:33:49 2019 UTC (5 years, 11 months ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Diff to: previous 1.309: preferred, colored
Changes since revision 1.309: +2 -8 lines
- move pmap_ctx() macro into pmap.h instead of duplicating it.
- fix description of some mach ddb commands.

Revision 1.308.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:43 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.308: preferred, colored
Changes since revision 1.308: +3 -3 lines
Sync with HEAD, resolve a few conflicts

Revision 1.309: download - view: text, markup, annotated - select for diffs
Thu Nov 29 20:58:36 2018 UTC (6 years ago) by palle
Branches: MAIN
CVS tags: pgoyette-compat-1226
Diff to: previous 1.308: preferred, colored
Changes since revision 1.308: +3 -3 lines
sun4v: fix incorrect calculation of phys addr for the mdesc - now the virtual-devices can (again) be detected (worked previously...)

Revision 1.307.6.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 09:07:32 2018 UTC (6 years, 9 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.307: preferred, colored; next MAIN 1.308: preferred, colored
Changes since revision 1.307: +35 -49 lines
Pull up following revision(s) (requested by mrg in ticket #593):
	sys/dev/marvell/mvxpsec.c: revision 1.2
	sys/arch/m68k/m68k/pmap_motorola.c: revision 1.70
	sys/opencrypto/crypto.c: revision 1.102
	sys/arch/sparc64/sparc64/pmap.c: revision 1.308
	sys/ufs/chfs/chfs_malloc.c: revision 1.5
	sys/arch/powerpc/oea/pmap.c: revision 1.95
	sys/sys/pool.h: revision 1.80,1.82
	sys/kern/subr_pool.c: revision 1.209-1.216,1.219-1.220
	sys/arch/alpha/alpha/pmap.c: revision 1.262
	sys/kern/uipc_mbuf.c: revision 1.173
	sys/uvm/uvm_fault.c: revision 1.202
	sys/sys/mbuf.h: revision 1.172
	sys/kern/subr_extent.c: revision 1.86
	sys/arch/x86/x86/pmap.c: revision 1.266 (via patch)
	sys/dev/dtv/dtv_scatter.c: revision 1.4

Allow only one pending call to a pool's backing allocator at a time.
Candidate fix for problems with hanging after kva fragmentation related
to PR kern/45718.

Proposed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2017/10/23/msg022472.html
Tested by bouyer@ on i386.

This makes one small change to the semantics of pool_prime and
pool_setlowat: they may fail with EWOULDBLOCK instead of ENOMEM, if
there is a pending call to the backing allocator in another thread but
we are not actually out of memory.  That is unlikely because nearly
always these are used during initialization, when the pool is not in
use.

Define the new flag too for previous commit.

pool_grow can now fail even when sleeping is ok. Catch this case in pool_get
and retry.

Assert that pool_get failure happens only with PR_NOWAIT.
This would have caught the mistake I made last week leading to null
pointer dereferences all over the place, a mistake which I evidently
poorly scheduled alongside maxv's change to the panic message on x86
for null pointer dereferences.

Since pr_lock is now used to wait for two things now (PR_GROWING and
PR_WANTED) we need to loop for the condition we wanted.
make the KASSERTMSG/panic strings consistent as '%s: [%s], __func__, wchan'
Handle the ERESTART case from pool_grow()

don't pass 0 to the pool flags
Guess pool_cache_get(pc, 0) means PR_WAITOK here.
Earlier on in the same context we use kmem_alloc(sz, KM_SLEEP).

use PR_WAITOK everywhere.
use PR_NOWAIT.

Don't use 0 for PR_NOWAIT

use PR_NOWAIT instead of 0

panic ex nihilo -- PR_NOWAITing for zerot

Add assertions that either PR_WAITOK or PR_NOWAIT are set.
- fix an assert; we can reach there if we are nowait or limitfail.
- when priming the pool and failing with ERESTART, don't decrement the number
  of pages; this avoids the issue of returning an ERESTART when we get to 0,
  and is more correct.
- simplify the pool_grow code, and don't wakeup things if we ENOMEM.

In pmap_enter_ma(), only try to allocate pves if we might need them,
and even if that fails, only fail the operation if we later discover
that we really do need them.  This implements the requirement that
pmap_enter(PMAP_CANFAIL) must not fail when replacing an existing
mapping with the first mapping of a new page, which is an unintended
consequence of the changes from the rmind-uvmplock branch in 2011.

The problem arises when pmap_enter(PMAP_CANFAIL) is used to replace an existing
pmap mapping with a mapping of a different page (eg. to resolve a copy-on-write).
If that fails and leaves the old pmap entry in place, then UVM won't hold
the right locks when it eventually retries.  This entanglement of the UVM and
pmap locking was done in rmind-uvmplock in order to improve performance,
but it also means that the UVM state and pmap state need to be kept in sync
more than they did before.  It would be possible to handle this in the UVM code
instead of in the pmap code, but these pmap changes improve the handling of
low memory situations in general, and handling this in UVM would be clunky,
so this seemed like the better way to go.

This somewhat indirectly fixes PR 52706, as well as the failing assertion
about "uvm_page_locked_p(old_pg)".  (but only on x86, various other platforms
will need their own changes to handle this issue.)
In uvm_fault_upper_enter(), if pmap_enter(PMAP_CANFAIL) fails, assert that
the pmap did not leave around a now-stale pmap mapping for an old page.
If such a pmap mapping still existed after we unlocked the vm_map,
the UVM code would not know later that it would need to lock the
lower layer object while calling the pmap to remove or replace that
stale pmap mapping.  See PR 52706 for further details.
hopefully workaround the irregularly "fork fails in init" problem.
if a pool is growing, and the grower is PR_NOWAIT, mark this.
if another caller wants to grow the pool and is also PR_NOWAIT,
busy-wait for the original caller, which should either succeed
or hard-fail fairly quickly.

implement the busy-wait by unlocking and relocking this pools
mutex and returning ERESTART.  other methods (such as having
the caller do this) were significantly more code and this hack
is fairly localised.
ok chs@ riastradh@

Don't release the lock in the PR_NOWAIT allocation. Move flags setting
after the acquiring the mutex. (from Tobias Nygren)
apply the change from arch/x86/x86/pmap.c rev. 1.266 commitid vZRjvmxG7YTHLOfA:

In pmap_enter_ma(), only try to allocate pves if we might need them,
and even if that fails, only fail the operation if we later discover
that we really do need them.  If we are replacing an existing mapping,
reuse the pv structure where possible.

This implements the requirement that pmap_enter(PMAP_CANFAIL) must not fail
when replacing an existing mapping with the first mapping of a new page,
which is an unintended consequence of the changes from the rmind-uvmplock
branch in 2011.

The problem arises when pmap_enter(PMAP_CANFAIL) is used to replace an existing
pmap mapping with a mapping of a different page (eg. to resolve a copy-on-write).
If that fails and leaves the old pmap entry in place, then UVM won't hold
the right locks when it eventually retries.  This entanglement of the UVM and
pmap locking was done in rmind-uvmplock in order to improve performance,
but it also means that the UVM state and pmap state need to be kept in sync
more than they did before.  It would be possible to handle this in the UVM code
instead of in the pmap code, but these pmap changes improve the handling of
low memory situations in general, and handling this in UVM would be clunky,
so this seemed like the better way to go.

This somewhat indirectly fixes PR 52706 on the remaining platforms where
this problem existed.

Revision 1.308: download - view: text, markup, annotated - select for diffs
Sat Jan 27 23:07:36 2018 UTC (6 years, 10 months ago) by chs
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.307: preferred, colored
Changes since revision 1.307: +35 -49 lines
apply the change from arch/x86/x86/pmap.c rev. 1.266 commitid vZRjvmxG7YTHLOfA:

In pmap_enter_ma(), only try to allocate pves if we might need them,
and even if that fails, only fail the operation if we later discover
that we really do need them.  If we are replacing an existing mapping,
reuse the pv structure where possible.

This implements the requirement that pmap_enter(PMAP_CANFAIL) must not fail
when replacing an existing mapping with the first mapping of a new page,
which is an unintended consequence of the changes from the rmind-uvmplock
branch in 2011.

The problem arises when pmap_enter(PMAP_CANFAIL) is used to replace an existing
pmap mapping with a mapping of a different page (eg. to resolve a copy-on-write).
If that fails and leaves the old pmap entry in place, then UVM won't hold
the right locks when it eventually retries.  This entanglement of the UVM and
pmap locking was done in rmind-uvmplock in order to improve performance,
but it also means that the UVM state and pmap state need to be kept in sync
more than they did before.  It would be possible to handle this in the UVM code
instead of in the pmap code, but these pmap changes improve the handling of
low memory situations in general, and handling this in UVM would be clunky,
so this seemed like the better way to go.

This somewhat indirectly fixes PR 52706 on the remaining platforms where
this problem existed.

Revision 1.278.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:45 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.278.2.2: preferred, colored; branchpoint 1.278: preferred, colored; next MAIN 1.279: preferred, colored
Changes since revision 1.278.2.2: +102 -59 lines
update from HEAD

Revision 1.292.2.9: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:51:53 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.292.2.8: preferred, colored; branchpoint 1.292: preferred, colored; next MAIN 1.293: preferred, colored
Changes since revision 1.292.2.8: +3 -3 lines
Sync with HEAD

Revision 1.306.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:37 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.306: preferred, colored; next MAIN 1.307: preferred, colored
Changes since revision 1.306: +3 -3 lines
Sync with HEAD

Revision 1.303.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:21 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.303.2.2: preferred, colored; branchpoint 1.303: preferred, colored; next MAIN 1.304: preferred, colored
Changes since revision 1.303.2.2: +3 -3 lines
Sync with HEAD

Revision 1.307: download - view: text, markup, annotated - select for diffs
Fri Feb 10 23:26:23 2017 UTC (7 years, 10 months ago) by palle
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.306: preferred, colored
Changes since revision 1.306: +3 -3 lines
sun4v: Added handling of trap type 0x034 (address alignment error) + fixed typo mmfsa -> mmufsa. Verified for both sun4u and sun4v using qemu.

Revision 1.292.2.8: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:21 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.292.2.7: preferred, colored; branchpoint 1.292: preferred, colored
Changes since revision 1.292.2.7: +4 -4 lines
Sync with HEAD

Revision 1.303.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:26 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.303.2.1: preferred, colored; branchpoint 1.303: preferred, colored
Changes since revision 1.303.2.1: +4 -4 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.306: download - view: text, markup, annotated - select for diffs
Wed Dec 28 19:16:25 2016 UTC (7 years, 11 months ago) by martin
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.305: preferred, colored
Changes since revision 1.305: +3 -3 lines
Rename the "flush" macro to "sparc_flush_icache", the former is way too
generic for a macro name.

Revision 1.305: download - view: text, markup, annotated - select for diffs
Thu Dec 22 14:47:59 2016 UTC (7 years, 11 months ago) by cherry
Branches: MAIN
Diff to: previous 1.304: preferred, colored
Changes since revision 1.304: +3 -3 lines
switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.

Revision 1.292.2.7: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:54:58 2016 UTC (8 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.292.2.6: preferred, colored; branchpoint 1.292: preferred, colored
Changes since revision 1.292.2.6: +17 -10 lines
Sync with HEAD

Revision 1.303.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:05 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.303: preferred, colored
Changes since revision 1.303: +17 -10 lines
Sync with HEAD

Revision 1.304: download - view: text, markup, annotated - select for diffs
Fri Nov 4 05:41:01 2016 UTC (8 years, 1 month ago) by macallan
Branches: MAIN
CVS tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204
Diff to: previous 1.303: preferred, colored
Changes since revision 1.303: +17 -10 lines
add plumbing to support bus_space_mmap() with:
- write combining allowed via BUS_SPACE_MAP_PREFETCHABLE
- byte order translation via BUS_SPACE_MAP_LITTLE

Revision 1.303: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:38 2016 UTC (8 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.302: preferred, colored
Changes since revision 1.302: +4 -4 lines
KNF. Remove extra spaces. No functional change.

Revision 1.292.2.6: download - view: text, markup, annotated - select for diffs
Fri Apr 22 15:44:12 2016 UTC (8 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.292.2.5: preferred, colored; branchpoint 1.292: preferred, colored
Changes since revision 1.292.2.5: +7 -2 lines
Sync with HEAD

Revision 1.302: download - view: text, markup, annotated - select for diffs
Sun Apr 17 14:32:03 2016 UTC (8 years, 7 months ago) by martin
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422
Diff to: previous 1.301: preferred, colored
Changes since revision 1.301: +7 -2 lines
Move the SMP-disabled hack for SUN4V a bit earlier

Revision 1.292.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:05 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.292.2.4: preferred, colored; branchpoint 1.292: preferred, colored
Changes since revision 1.292.2.4: +21 -2 lines
Sync with HEAD

Revision 1.301: download - view: text, markup, annotated - select for diffs
Wed Feb 3 20:33:52 2016 UTC (8 years, 10 months ago) by palle
Branches: MAIN
CVS tags: nick-nhusb-base-20160319
Diff to: previous 1.300: preferred, colored
Changes since revision 1.300: +21 -2 lines
sun4v: extend dmmu_set_secondary_context() to handle both sun4u and sun4v. ok martin@

Revision 1.292.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:44 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.292.2.3: preferred, colored; branchpoint 1.292: preferred, colored
Changes since revision 1.292.2.3: +3 -3 lines
Sync with HEAD (as of 26th Dec)

Revision 1.300: download - view: text, markup, annotated - select for diffs
Fri Nov 27 13:51:24 2015 UTC (9 years ago) by joerg
Branches: MAIN
CVS tags: nick-nhusb-base-20151226
Diff to: previous 1.299: preferred, colored
Changes since revision 1.299: +3 -3 lines
Left-shift of negative values is UB.

Revision 1.292.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:52 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.292.2.2: preferred, colored; branchpoint 1.292: preferred, colored
Changes since revision 1.292.2.2: +34 -27 lines
Sync with HEAD

Revision 1.299: download - view: text, markup, annotated - select for diffs
Tue Sep 8 13:18:06 2015 UTC (9 years, 3 months ago) by nakayama
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.298: preferred, colored
Changes since revision 1.298: +3 -3 lines
Fix build w/o options SUN4V.

mdesc_get_len() and mdesc_init() are used outside of #ifdef SUN4V,
and eliminated by optimization if SUN4V isn't defined.

Revision 1.298: download - view: text, markup, annotated - select for diffs
Sun Sep 6 23:48:39 2015 UTC (9 years, 3 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.297: preferred, colored
Changes since revision 1.297: +6 -6 lines
Use <machine/*.h> instead of <sparc64/*.h> for consistency.

Revision 1.297: download - view: text, markup, annotated - select for diffs
Sun Sep 6 16:45:09 2015 UTC (9 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.296: preferred, colored
Changes since revision 1.296: +18 -6 lines
On SUN4V make the mdesc data available early in pmap_bootstrap, so we
can set up the uvm page colors correctly.
Based on code from palle@.

Revision 1.289.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 20 06:12:23 2015 UTC (9 years, 4 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.289: preferred, colored; next MAIN 1.290: preferred, colored
Changes since revision 1.289: +14 -11 lines
Pull up following revision(s) (requested by martin in ticket #842):
	sys/arch/sparc/stand/ofwboot/loadfile_machdep.c: revision 1.14
	sys/arch/sparc/stand/ofwboot/version: revision 1.21
	sys/arch/sparc64/include/cpu.h: revision 1.115
	sys/arch/sparc64/sparc64/autoconf.c: revision 1.203
	sys/arch/sparc64/sparc64/mp_subr.S: revision 1.9 via patch
	sys/arch/sparc64/sparc64/pmap.c: revisions 1.295, 1.295 via patch
Fix available length calculation in kvamap_extract when reusing existing
mappings.
--
Bump version now that we can load kernels with sizeof(.data)+sizeof(.bss)> 4 MB
--
Do not hardcode the assumption that .data and .bss fit together in a single
4 MB page. This allows booting kernels with options USB_DEBUG again.
--
Slightly optimize the ITLB usage on secondary processors

Revision 1.296: download - view: text, markup, annotated - select for diffs
Mon Jun 15 07:48:08 2015 UTC (9 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +4 -3 lines
Slightly optimize the ITLB usage on secondary processors

Revision 1.295: download - view: text, markup, annotated - select for diffs
Sun Jun 14 19:05:27 2015 UTC (9 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.294: preferred, colored
Changes since revision 1.294: +14 -20 lines
Do not hardcode the assumption that .data and .bss fit together in a single
4 MB page. This allows booting kernels with options USB_DEBUG again.

Revision 1.292.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:03 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.292.2.1: preferred, colored; branchpoint 1.292: preferred, colored
Changes since revision 1.292.2.1: +8 -8 lines
Sync with HEAD

Revision 1.294: download - view: text, markup, annotated - select for diffs
Thu Apr 16 08:58:44 2015 UTC (9 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.293: preferred, colored
Changes since revision 1.293: +5 -5 lines
make some DEBUG code in pmap_clear_reference() UP-only

Revision 1.292.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:03 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.292: preferred, colored
Changes since revision 1.292: +16 -5 lines
Sync with HEAD

Revision 1.293: download - view: text, markup, annotated - select for diffs
Sun Apr 5 20:26:47 2015 UTC (9 years, 8 months ago) by palle
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.292: preferred, colored
Changes since revision 1.292: +16 -5 lines
sun4v: Ensure that the W (Write) bit is not present in the TTEs unless for the data mapping. This way the permanent mappings for the primary cpu done by ofwboot are the same as the permanent mappings for the secondary cpus done by the kernel. This should fix an issue when booting the kernel on a T2 based system (T5120).

Revision 1.292: download - view: text, markup, annotated - select for diffs
Tue Nov 4 18:11:42 2014 UTC (10 years, 1 month ago) by palle
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.291: preferred, colored
Changes since revision 1.291: +2 -6 lines
sun4v: Removed a bunch of ifdef SUN4V since the CPU_ISSUN4V already has the necessary logic. Noticed by mrg@

Revision 1.291: download - view: text, markup, annotated - select for diffs
Thu Oct 30 13:57:14 2014 UTC (10 years, 1 month ago) by palle
Branches: MAIN
Diff to: previous 1.290: preferred, colored
Changes since revision 1.290: +5 -2 lines
sun4v: ensure that the X (eXecute) bit is set in the TTE

Revision 1.290: download - view: text, markup, annotated - select for diffs
Thu Sep 4 18:48:29 2014 UTC (10 years, 3 months ago) by palle
Branches: MAIN
Diff to: previous 1.289: preferred, colored
Changes since revision 1.289: +18 -23 lines
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.278.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:25 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.278.2.1: preferred, colored; branchpoint 1.278: preferred, colored
Changes since revision 1.278.2.1: +107 -11 lines
Rebase to HEAD as of a few days ago.

Revision 1.286.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:09 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.286: preferred, colored; next MAIN 1.287: preferred, colored
Changes since revision 1.286: +4 -5 lines
Rebase.

Revision 1.289: download - view: text, markup, annotated - select for diffs
Thu Jul 10 06:24:02 2014 UTC (10 years, 5 months ago) by jdc
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base, netbsd-7-0-RC1
Branch point for: netbsd-7
Diff to: previous 1.288: preferred, colored
Changes since revision 1.288: +3 -4 lines
Increase maximum MSGBUFSIZE to 248k.
While here, remove 2 sparc(32)-only entries (from mrg@).

Revision 1.288: download - view: text, markup, annotated - select for diffs
Thu Jun 5 19:47:24 2014 UTC (10 years, 6 months ago) by palle
Branches: MAIN
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +3 -2 lines
sun4v: note missing handling in pmap_calculate_colors()

Revision 1.275.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:10 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.275.2.3: preferred, colored; branchpoint 1.275: preferred, colored; next MAIN 1.276: preferred, colored
Changes since revision 1.275.2.3: +107 -14 lines
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.287: download - view: text, markup, annotated - select for diffs
Wed May 21 19:33:51 2014 UTC (10 years, 6 months ago) by palle
Branches: MAIN
Diff to: previous 1.286: preferred, colored
Changes since revision 1.286: +2 -3 lines
Removed duplicate call to prom_map_phys()

Revision 1.280.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:26 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.280: preferred, colored; next MAIN 1.281: preferred, colored
Changes since revision 1.280: +105 -8 lines
sync with head

Revision 1.286: download - view: text, markup, annotated - select for diffs
Thu Jan 9 20:13:54 2014 UTC (10 years, 11 months ago) by palle
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.285: preferred, colored
Changes since revision 1.285: +3 -3 lines
Coding style fixes (whitespace) - no functional changes

Revision 1.285: download - view: text, markup, annotated - select for diffs
Tue Jan 7 20:11:35 2014 UTC (10 years, 11 months ago) by palle
Branches: MAIN
Diff to: previous 1.284: preferred, colored
Changes since revision 1.284: +6 -5 lines
sun4v: trap table setup - currently populated with dummy entries which will be properly implemented later - parts from OpenBSD - OK martin@

Revision 1.284: download - view: text, markup, annotated - select for diffs
Sat Dec 28 11:08:56 2013 UTC (10 years, 11 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.283: preferred, colored
Changes since revision 1.283: +4 -3 lines
Make 32-bit kernel buildable again.

Revision 1.283: download - view: text, markup, annotated - select for diffs
Fri Dec 27 21:11:20 2013 UTC (10 years, 11 months ago) by palle
Branches: MAIN
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +52 -2 lines
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.282: download - view: text, markup, annotated - select for diffs
Mon Dec 16 20:17:35 2013 UTC (10 years, 11 months ago) by palle
Branches: MAIN
Diff to: previous 1.281: preferred, colored
Changes since revision 1.281: +32 -8 lines
Updates to pmap_bootstrap() for sun4v - parts from OpenBSD - OK martin@

Revision 1.281: download - view: text, markup, annotated - select for diffs
Wed Sep 11 18:27:44 2013 UTC (11 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +23 -2 lines
Disallow MAP_FIXED mmap's in the sparc64 VA hole (XXX - need to deal with
different variants of the hole for different CPU types)

Revision 1.278.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:00 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.278: preferred, colored
Changes since revision 1.278: +34 -17 lines
resync with head

Revision 1.280: download - view: text, markup, annotated - select for diffs
Fri Jan 25 17:12:33 2013 UTC (11 years, 10 months ago) by hannken
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.279: preferred, colored
Changes since revision 1.279: +4 -8 lines
Update the DEBUG section at the tail of pmap_clear_modify().

Nothing prevents page modification after the modify bit was
cleared but before the DEBUG section checks pmap_is_modified(),
so remove this check.

For the same reason "modified" and "changed" may differ, so only
check "modified" implies "changed" here.

Ok: Matthew Green <mrg@netbsd.org>

Revision 1.275.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:05:58 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.275.2.2: preferred, colored; branchpoint 1.275: preferred, colored
Changes since revision 1.275.2.2: +32 -11 lines
sync with head

Revision 1.279: download - view: text, markup, annotated - select for diffs
Thu Jan 3 09:40:55 2013 UTC (11 years, 11 months ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.278: preferred, colored
Changes since revision 1.278: +32 -11 lines
Rearange VA layout for 64 bit kernels, as suggested by Lars Heidieker:
move the dynamic kernel memory past 4GB (basically unlimiting it) and
use the now freed address range past kernel data upto 2GB for modules.

Revision 1.275.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:06:56 2012 UTC (12 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.275.2.1: preferred, colored; branchpoint 1.275: preferred, colored
Changes since revision 1.275.2.1: +65 -48 lines
sync with head

Revision 1.275.6.2: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:20 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.275.6.1: preferred, colored; branchpoint 1.275: preferred, colored; next MAIN 1.276: preferred, colored
Changes since revision 1.275.6.1: +49 -48 lines
sync to latest -current.

Revision 1.278: download - view: text, markup, annotated - select for diffs
Sun Mar 25 02:31:00 2012 UTC (12 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Diff to: previous 1.277: preferred, colored
Changes since revision 1.277: +46 -48 lines
reduce the #ifdef DEBUG usage by using the optimiser.

Revision 1.277: download - view: text, markup, annotated - select for diffs
Sun Mar 18 23:48:00 2012 UTC (12 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +5 -2 lines
take the pmap_lock in pmap_protect().

hopefully this will avoid a problem in pmap_clear_reference()
detecting a reference remaining at the end.

when we remove most/all pmap_lock uses we probably need to remove
this check entirely, but for now this seems better.

Revision 1.275.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:33:17 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +18 -2 lines
merge to -current.

Revision 1.276: download - view: text, markup, annotated - select for diffs
Mon Feb 6 10:40:26 2012 UTC (12 years, 10 months ago) by martin
Branches: MAIN
CVS tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +18 -2 lines
Provide a module_map (16 MB for now) to load modules close to kernel text
and data.

Fixes PR port-sparc64/45895. Ok: releng

Revision 1.275.2.1: download - view: text, markup, annotated - select for diffs
Fri Dec 2 16:33:09 2011 UTC (13 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +9 -15 lines
adapt sparc64.  compile tested.

Revision 1.275: download - view: text, markup, annotated - select for diffs
Tue Jul 12 07:51:34 2011 UTC (13 years, 5 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.274: preferred, colored
Changes since revision 1.274: +5 -4 lines
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.271.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:43 2011 UTC (13 years, 5 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.271: preferred, colored; next MAIN 1.272: preferred, colored
Changes since revision 1.271: +16 -21 lines
Catchup with rmind-uvmplock merge.

Revision 1.274: download - view: text, markup, annotated - select for diffs
Sat Jun 18 18:51:18 2011 UTC (13 years, 5 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +3 -2 lines
Add fast softint(9) support for sparc64.

Reviewed on port-sparc64.

Revision 1.273: download - view: text, markup, annotated - select for diffs
Sun Jun 12 03:35:47 2011 UTC (13 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +11 -19 lines
Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.259.2.7: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:09 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.259.2.6: preferred, colored; branchpoint 1.259: preferred, colored; next MAIN 1.260: preferred, colored
Changes since revision 1.259.2.6: +4 -2 lines
sync with head

Revision 1.269.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:06:53 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.269: preferred, colored; next MAIN 1.270: preferred, colored
Changes since revision 1.269: +16 -10 lines
Sync with HEAD.

Revision 1.272: download - view: text, markup, annotated - select for diffs
Mon Jun 6 01:16:48 2011 UTC (13 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +6 -4 lines
re-implement blast_dcache() and blast_icache() via function pointers so that
we can set these to functions that simply return on sun4us/sun4v systems.

also include some work-in-progress #if 0'ed code to do the same for the
dcache_flush*() functions.


(some of these could probably move into the cpuinfo except that sparc64
systems don't really ever work with mismatches AFAICT.)

Revision 1.259.2.6: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:20 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.259.2.5: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.2.5: +11 -3 lines
sync with head

Revision 1.259.2.5: download - view: text, markup, annotated - select for diffs
Thu May 19 03:42:59 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.259.2.4: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.2.4: +9 -4 lines
Implement sharing of vnode_t::v_interlock amongst vnodes:
- Lock is shared amongst UVM objects using uvm_obj_setlock() or getnewvnode().
- Adjust vnode cache to handle unsharing, add VI_LOCKSHARE flag for that.
- Use sharing in tmpfs and layerfs for underlying object.
- Simplify locking in ubc_fault().
- Sprinkle some asserts.

Discussed with ad@.

Revision 1.271: download - view: text, markup, annotated - select for diffs
Thu May 12 05:44:09 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.270: preferred, colored
Changes since revision 1.270: +11 -3 lines
first steps towards fujitsu SPARC64 support:

- use cputyp when writing the kernel core

Revision 1.259.2.4: download - view: text, markup, annotated - select for diffs
Mon Apr 11 04:35:27 2011 UTC (13 years, 8 months ago) by mrg
Branches: rmind-uvmplock
Diff to: previous 1.259.2.3: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.2.3: +4 -17 lines
don't take pmap_lock in a few places.  there's a bunch more work
we can do in here, but i've run with this change for ages.

Revision 1.259.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:52:08 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.259.2.2: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.2.2: +38 -21 lines
sync with head

Revision 1.269.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:10:06 2011 UTC (13 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.269: preferred, colored; next MAIN 1.270: preferred, colored
Changes since revision 1.269: +1 -5 lines
Sync with HEAD

Revision 1.270: download - view: text, markup, annotated - select for diffs
Thu Feb 24 08:42:30 2011 UTC (13 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base, bouyer-quota2-nbase
Diff to: previous 1.269: preferred, colored
Changes since revision 1.269: +3 -7 lines
blast_dcache() does the right thing for MP or !MP, so just use it.

Revision 1.269: download - view: text, markup, annotated - select for diffs
Fri Nov 12 07:59:27 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: MAIN
CVS tags: uebayasi-xip-base7, uebayasi-xip-base6, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.268: preferred, colored
Changes since revision 1.268: +0 -2 lines
Put VM_PAGE_TO_MD() definition in one place.  No functional changes.

Revision 1.250.2.7: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:22 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.250.2.6: preferred, colored; branchpoint 1.250: preferred, colored; next MAIN 1.251: preferred, colored
Changes since revision 1.250.2.6: +4 -1 lines
Sync with HEAD.

Revision 1.268: download - view: text, markup, annotated - select for diffs
Tue Nov 2 13:09:29 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: MAIN
CVS tags: uebayasi-xip-base5, uebayasi-xip-base4
Diff to: previous 1.267: preferred, colored
Changes since revision 1.267: +2 -0 lines
Oops, fix build !DIAGNOSTICS again.

Revision 1.267: download - view: text, markup, annotated - select for diffs
Tue Nov 2 12:21:07 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +2 -0 lines
Fix DIAGNOSTIC build.  Pointed out by Juergen Hannken-Illjes.

Revision 1.250.2.6: download - view: text, markup, annotated - select for diffs
Sun Oct 31 03:46:19 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.250.2.5: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.2.5: +1 -1 lines
We already have a flag PMAP_NOCACHE.  s/PMAP_UNMANAGED/PMAN_NOCACHE/.
Pointed out by Chuck Silvers, thanks.

Revision 1.266: download - view: text, markup, annotated - select for diffs
Sat Oct 30 18:30:55 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.265: preferred, colored
Changes since revision 1.265: +34 -16 lines
Use VM_PAGE_TO_MD() to locate struct vm_page_md.  No functional
changes.

Revision 1.250.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 30 08:41:11 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.250.2.4: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.2.4: +7 -0 lines
Implement pmap_physload_device(9) to replace xmd(4) MD backend.
Implement pmap_mmap(9) and use it from mem(4) and xmd(4).

Revision 1.250.2.4: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:45:20 2010 UTC (14 years, 4 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.250.2.3: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.2.3: +6 -4 lines
Sync with HEAD.

Revision 1.217.4.4: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:52:48 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.217.4.3: preferred, colored; branchpoint 1.217: preferred, colored; next MAIN 1.218: preferred, colored
Changes since revision 1.217.4.3: +72 -41 lines
sync with head.

Revision 1.265: download - view: text, markup, annotated - select for diffs
Thu Jul 29 10:54:50 2010 UTC (14 years, 4 months ago) by hannken
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +3 -2 lines
Add vm page flag PG_MARKER and use it to tag dummy marker pages
in genfs_do_putpages() and uao_put().
Use 'v_uobj.uo_npages' to check for an empty memq.
Put some assertions where these marker pages may not appear.

Ok: YAMAMOTO Takashi <yamt@netbsd.org>

Revision 1.259.2.2: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:09 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.259.2.1: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.2.1: +71 -41 lines
sync with head

Revision 1.264: download - view: text, markup, annotated - select for diffs
Tue May 18 04:30:16 2010 UTC (14 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +7 -5 lines
move the mutex_init() for ci_ctx_lock inside cpu_attach() so that
we don't try to mutex_init() before lockdebug is available.

fixes LOCKDEBUG crashes at startup (for USII systems.)

Revision 1.250.2.3: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:39:53 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.250.2.2: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.2.2: +204 -150 lines
Sync with HEAD.

Revision 1.250.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 27 07:19:29 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.250.2.1: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.2.1: +4 -1 lines
Support PMAP_UNMANAGED in some pmaps.

(Others should be converted eventually, but no problem while managed
device page is not used.)

Revision 1.225.4.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:33:49 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.225.4.1: preferred, colored; next MAIN 1.225.4.2: preferred, colored
Changes since revision 1.225.4.1: +45 -10 lines
sync to netbsd-5

Revision 1.263: download - view: text, markup, annotated - select for diffs
Tue Mar 30 01:50:03 2010 UTC (14 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +7 -6 lines
fix a KASSERT() in the previous.  add a couple of comments.

Revision 1.262: download - view: text, markup, annotated - select for diffs
Sun Mar 28 05:24:00 2010 UTC (14 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.261: preferred, colored
Changes since revision 1.261: +63 -34 lines
- add a kmutex_t ci_ctx_lock to struct cpu_info, and initialise it in
  cpu_pmap_init() and replace pmap_ctx_lock usage with this new ci_ctx_lock

- replace smp_dcache_flush_page_all() with smp_dcache_flush_page_cpuset(),
  that flushes only on the set of CPUs not, everyone.  add new
  dcache_flush_page_cpuset() to flush this page from the D$ only
  on the specified set of CPUs.

- add a cpuset to pmap_free_page() and use it when freeing PTE pages
  when a pmap is destroyed

- introduce pmap_free_page_noflush(), and use it when we allocated a
  page for PTEs but didn't use it and don't need to flush it

- don't bother with pmap_lock in pmap_extract(), the only potential
  issue is pseg_get() which is already safe


tested on sb2000, sb2500 and ultra80 with a bunch of various heavy
workloads, and seems to give a clear 1-2% speed up for high-forking /
short lived processes, such as ./configure.

Revision 1.261: download - view: text, markup, annotated - select for diffs
Sun Mar 21 22:38:08 2010 UTC (14 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.260: preferred, colored
Changes since revision 1.260: +12 -10 lines
since pmap_activate/pmap_deactivate need to not block, but the rest of
pmap is OK, add a new IPL_VM pmap_ctx_lock that is held while allocating
or freeing a context, and revert pmap_lock back to IPL_NONE.

i considered a per-cpu context lock, but that would require locking
each active CPUs lock in turn in pmap_remove_all() and pmap_destroy().


thanks to ad for explaining how these parts interact.

Revision 1.260: download - view: text, markup, annotated - select for diffs
Sat Mar 20 20:36:23 2010 UTC (14 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +3 -7 lines
convert pmap_lock into an IPL_VM lock, and avoid calling
KASSERT(!mutex_owned(&pmap_lock)) since that's no longer valid.

this fixes hangs on 4-core machines like the U80.

tested on U80, SB2500 and SB2000.


XXX: my initial attempts to replace pseg_lock with this new equivalent
XXX: lock hang in pmap_bootstrap it seems..  but this should be able
XXX: to go away now.

Revision 1.225.4.2: download - view: text, markup, annotated - select for diffs
Wed Mar 17 03:10:40 2010 UTC (14 years, 9 months ago) by snj
Branches: 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, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.225.4.1: preferred, colored; branchpoint 1.225: preferred, colored; next MAIN 1.226: preferred, colored
Changes since revision 1.225.4.1: +45 -10 lines
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.259.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 16 15:38:03 2010 UTC (14 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +4 -4 lines
Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.217.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:02 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.217.4.2: preferred, colored; branchpoint 1.217: preferred, colored
Changes since revision 1.217.4.2: +182 -217 lines
sync with head

Revision 1.259: download - view: text, markup, annotated - select for diffs
Wed Mar 10 06:57:22 2010 UTC (14 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Diff to: previous 1.258: preferred, colored
Changes since revision 1.258: +54 -4 lines
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.258: download - view: text, markup, annotated - select for diffs
Mon Mar 8 08:59:06 2010 UTC (14 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +19 -8 lines
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.257: download - view: text, markup, annotated - select for diffs
Sat Mar 6 08:08:30 2010 UTC (14 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.256: preferred, colored
Changes since revision 1.256: +30 -85 lines
clean up a bunch of MULTIPROCESSOR:

- always include ci_ipi_evcnt[] in cpuinfo
- #define sparc_ncpus 1 for !MULTIPROCESSOR
- make struct pmap::pm_list an pm_ctx always be an array, and simplify
  several functions and lookups to always be the same

tested on U60 and SB2500 before and after with one and two cpus in an
MP kernel, and UP kernels, and i can't find anything besides noise for
benchmark issues.  (infact, i can't really tell the difference between
GENERIC and GENERIC.MP on these systems...)

Revision 1.256: download - view: text, markup, annotated - select for diffs
Thu Mar 4 08:11:42 2010 UTC (14 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +6 -6 lines
avoid a build error in the previous for !DEBUG kernels.

Revision 1.255: download - view: text, markup, annotated - select for diffs
Thu Mar 4 08:01:35 2010 UTC (14 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +34 -14 lines
- 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.250.2.1: download - view: text, markup, annotated - select for diffs
Thu Feb 25 05:54:03 2010 UTC (14 years, 9 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +36 -16 lines
Use VM_PAGE_TO_MD().  Only compile tested.

Revision 1.254: download - view: text, markup, annotated - select for diffs
Wed Feb 24 10:11:53 2010 UTC (14 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.253: preferred, colored
Changes since revision 1.253: +6 -5 lines
check for TLB_V bit for valid tte entries, not against zero.
KASSERT() the 3rd call to pseg_get() in pmap_page_cache() like the other 2.

Revision 1.253: download - view: text, markup, annotated - select for diffs
Wed Feb 24 09:49:36 2010 UTC (14 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.252: preferred, colored
Changes since revision 1.252: +4 -2 lines
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.252: download - view: text, markup, annotated - select for diffs
Wed Feb 24 01:58:53 2010 UTC (14 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +5 -12 lines
- 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.251: download - view: text, markup, annotated - select for diffs
Sat Feb 13 08:56:29 2010 UTC (14 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +8 -4 lines
in pmap_growkernel(), make sure we only mutex_exit() if we mutex_enter()ed.

Revision 1.250: download - view: text, markup, annotated - select for diffs
Fri Feb 5 12:04:10 2010 UTC (14 years, 10 months ago) by martin
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.249: preferred, colored
Changes since revision 1.249: +6 -4 lines
Avoid taking a (not yet) initialized mutex early during bootstrap.

Revision 1.249: download - view: text, markup, annotated - select for diffs
Tue Feb 2 04:28:56 2010 UTC (14 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +8 -4 lines
- 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.248: download - view: text, markup, annotated - select for diffs
Mon Feb 1 07:01:40 2010 UTC (14 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +6 -3 lines
- 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.247: download - view: text, markup, annotated - select for diffs
Mon Feb 1 02:42:33 2010 UTC (14 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +30 -27 lines
- add a PDB_CTX_FLUSHALL debug type to pmap.c, and also log the cpu_number()
  in a bunch more cases

- make sparc64_ipi_halt_thiscpu() and sparc64_ipi_pause_thiscpu() return void,
  their callers never checked anyway.

- remove prototypes for sparc64_ipi_flush_ctx() and sparc64_ipi_flush_all(),
  there are no such functions

Revision 1.246: download - view: text, markup, annotated - select for diffs
Sun Jan 10 15:07:53 2010 UTC (14 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +3 -3 lines
s/cpu_switch/cpu_switchto/ in comment.

Revision 1.245: download - view: text, markup, annotated - select for diffs
Sat Dec 5 22:02:53 2009 UTC (15 years ago) by mrg
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +3 -5 lines
from openbsd:
>Don't use u_int to store a 64-bit address. Found with help from miod.
>Makes a Sun Fire V490 boot without spending ages in bus_dmamem_alloc(9).

Revision 1.244: download - view: text, markup, annotated - select for diffs
Fri Nov 27 03:23:14 2009 UTC (15 years ago) by rmind
Branches: MAIN
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +3 -3 lines
- Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.

Revision 1.243: download - view: text, markup, annotated - select for diffs
Thu Nov 26 00:19:22 2009 UTC (15 years ago) by matt
Branches: MAIN
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +3 -5 lines
Kill proc0paddr.  Use lwp0.l_addr instead.

Revision 1.242: download - view: text, markup, annotated - select for diffs
Sat Nov 7 07:27:47 2009 UTC (15 years, 1 month ago) by cegger
Branches: MAIN
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +3 -3 lines
Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.

Revision 1.241: download - view: text, markup, annotated - select for diffs
Mon Oct 26 19:16:57 2009 UTC (15 years, 1 month ago) by cegger
Branches: MAIN
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +3 -3 lines
kill extra whitespaces
reviewed by tsutsui@

Revision 1.240: download - view: text, markup, annotated - select for diffs
Sat Oct 24 14:52:20 2009 UTC (15 years, 1 month ago) by nakayama
Branches: MAIN
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +3 -3 lines
Use trunc_page or round_page where appropriate.
No functional changes intended, and generate same binaries.

Revision 1.239: download - view: text, markup, annotated - select for diffs
Wed Oct 21 21:12:03 2009 UTC (15 years, 1 month ago) by rmind
Branches: MAIN
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +2 -71 lines
Remove uarea swap-out functionality:

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

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

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

Revision 1.217.4.2: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:46:47 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.217.4.1: preferred, colored; branchpoint 1.217: preferred, colored
Changes since revision 1.217.4.1: +5 -3 lines
sync with head.

Revision 1.238: download - view: text, markup, annotated - select for diffs
Sat Aug 15 23:45:00 2009 UTC (15 years, 4 months ago) by matt
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +4 -2 lines
Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to
do it for us.

Revision 1.237: download - view: text, markup, annotated - select for diffs
Sun Aug 9 13:15:05 2009 UTC (15 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +3 -3 lines
Fix misplaced #endif, from Henning Petersen in PR port-sparc64/41856

Revision 1.231.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:18:38 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.231: preferred, colored; next MAIN 1.232: preferred, colored
Changes since revision 1.231: +28 -66 lines
Sync with HEAD.

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

Revision 1.217.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:11:58 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +164 -144 lines
sync with head.

Revision 1.225.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:34:47 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.225.2.1: preferred, colored; branchpoint 1.225: preferred, colored; next MAIN 1.226: preferred, colored
Changes since revision 1.225.2.1: +28 -66 lines
Sync with HEAD.

Revision 1.236: download - view: text, markup, annotated - select for diffs
Tue Apr 21 21:30:00 2009 UTC (15 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +3 -3 lines
change pmap flags argument from int to u_int.
discussed with christos@ on source-changes-d@

Revision 1.235: download - view: text, markup, annotated - select for diffs
Wed Mar 18 17:06:47 2009 UTC (15 years, 8 months ago) by cegger
Branches: MAIN
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +3 -3 lines
bcopy -> memcpy

Revision 1.234: download - view: text, markup, annotated - select for diffs
Wed Mar 18 10:22:37 2009 UTC (15 years, 9 months ago) by cegger
Branches: MAIN
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +6 -6 lines
Ansify function definitions w/o arguments. Generated with sed.

Revision 1.233: download - view: text, markup, annotated - select for diffs
Sat Mar 14 21:04:16 2009 UTC (15 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +6 -15 lines
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.

Revision 1.232: download - view: text, markup, annotated - select for diffs
Sat Mar 14 15:36:14 2009 UTC (15 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +19 -48 lines
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

Revision 1.225.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:16:51 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +12 -8 lines
Sync with HEAD.

Revision 1.209.6.7: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:32 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.209.6.6: preferred, colored; branchpoint 1.209: preferred, colored; next MAIN 1.210: preferred, colored
Changes since revision 1.209.6.6: +46 -35 lines
Sync with HEAD.

Revision 1.219.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:13:29 2008 UTC (16 years ago) by haad
Branches: haad-dm
Diff to: previous 1.219.2.1: preferred, colored; branchpoint 1.219: preferred, colored; next MAIN 1.220: preferred, colored
Changes since revision 1.219.2.1: +12 -8 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.231: download - view: text, markup, annotated - select for diffs
Wed Dec 10 11:10:19 2008 UTC (16 years ago) by pooka
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base
Branch point for: jym-xensuspend
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +3 -3 lines
Make kernel_pmap_ptr a const.  Requested by steve_martin.

Revision 1.230: download - view: text, markup, annotated - select for diffs
Wed Dec 10 09:35:02 2008 UTC (16 years ago) by martin
Branches: MAIN
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +3 -2 lines
Backout previous - Matt, you probably did a partial update and didn't
pick up the sys/uvm changes.

Revision 1.229: download - view: text, markup, annotated - select for diffs
Wed Dec 10 04:23:11 2008 UTC (16 years ago) by mrg
Branches: MAIN
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +4 -5 lines
fix sparc64 build: provide pmap_kernel(), re-provide pmap_t.

fixes builds for my U60.

Revision 1.228: download - view: text, markup, annotated - select for diffs
Tue Dec 9 21:01:02 2008 UTC (16 years ago) by martin
Branches: MAIN
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +8 -5 lines
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.227: download - view: text, markup, annotated - select for diffs
Tue Dec 9 20:45:45 2008 UTC (16 years ago) by pooka
Branches: MAIN
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +4 -3 lines
Make pmap_kernel() a MI macro for struct pmap *kernel_pmap_ptr,
which is now the "API" provided by the pmap module.  pmap_kernel()
remains as the syntactic sugar.

Bonus cosmetics round: move all the pmap_t pointer typedefs into
uvm_pmap.h.

Thanks to Greg Oster for providing cpu muscle for doing test builds.

Revision 1.225.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 22 16:44:25 2008 UTC (16 years ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, 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
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +4 -4 lines
Pull up following revision(s) (requested by spz in ticket #107):
	sys/arch/sparc64/sparc64/pmap.c: revision 1.226
pmap_is_referenced_locked() is relevant for non-MULTIPROCESSOR systems too,
says martin@

Revision 1.226: download - view: text, markup, annotated - select for diffs
Sat Nov 22 13:01:08 2008 UTC (16 years ago) by spz
Branches: MAIN
CVS tags: ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +4 -4 lines
pmap_is_referenced_locked() is relevant for non-MULTIPROCESSOR systems too,
says martin@

Revision 1.219.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:01 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +121 -67 lines
Sync with HEAD.

Revision 1.225: download - view: text, markup, annotated - select for diffs
Sat Oct 18 04:20:37 2008 UTC (16 years, 1 month ago) by nakayama
Branches: MAIN
CVS tags: netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +35 -28 lines
- fix corner case bugs.
- avoid unnecessary write backs.
- remove meaningless local variable usages.

Revision 1.224: download - view: text, markup, annotated - select for diffs
Mon Oct 13 12:34:56 2008 UTC (16 years, 2 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +3 -3 lines
Avoid local include.

Revision 1.217.6.3: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:29:45 2008 UTC (16 years, 2 months ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.217.6.2: preferred, colored; branchpoint 1.217: preferred, colored; next MAIN 1.218: preferred, colored
Changes since revision 1.217.6.2: +89 -41 lines
Sync with HEAD.

Revision 1.223: download - view: text, markup, annotated - select for diffs
Mon Oct 6 10:45:47 2008 UTC (16 years, 2 months ago) by nakayama
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +4 -4 lines
Conform previous commit to KNF, pointed out by ad@.

Revision 1.209.6.6: download - view: text, markup, annotated - select for diffs
Sun Oct 5 20:11:27 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.209.6.5: preferred, colored; branchpoint 1.209: preferred, colored
Changes since revision 1.209.6.5: +4 -4 lines
Sync with HEAD.

Revision 1.222: download - view: text, markup, annotated - select for diffs
Sun Oct 5 02:07:39 2008 UTC (16 years, 2 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +6 -6 lines
pmap_cache: use BLOCK_SIZE as alignment.
pmap_pv_cache: use large size groups (PR_LARGECACHE) like x86.

Revision 1.209.6.5: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:09 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.209.6.4: preferred, colored; branchpoint 1.209: preferred, colored
Changes since revision 1.209.6.4: +85 -38 lines
Sync with HEAD.

Revision 1.221: download - view: text, markup, annotated - select for diffs
Tue Sep 23 21:30:11 2008 UTC (16 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +85 -37 lines
pmap_is_modified() and pmap_is_referenced(): when we don't find a cached
positive answer in the list head, make sure to aquire pmap_lock before
traversing the pv list (and update the cache in head).
Fixes a diagnostic debugger call reported by Havard Eidnes.

Revision 1.217.6.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:33:34 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.217.6.1: preferred, colored; branchpoint 1.217: preferred, colored
Changes since revision 1.217.6.1: +4 -5 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.184.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 16 18:49:34 2008 UTC (16 years, 3 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.184.2.4: preferred, colored; branchpoint 1.184: preferred, colored; next MAIN 1.185: preferred, colored
Changes since revision 1.184.2.4: +8 -2 lines
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.220: download - view: text, markup, annotated - select for diffs
Wed Aug 27 22:05:13 2008 UTC (16 years, 3 months ago) by martin
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +4 -5 lines
Turn a printf into a DEB

Revision 1.209.6.4: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:00 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.209.6.3: preferred, colored; branchpoint 1.209: preferred, colored
Changes since revision 1.209.6.3: +2 -2 lines
Sync with HEAD.

Revision 1.217.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:30:46 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +11 -11 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.218.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:32:49 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.218: preferred, colored; next MAIN 1.219: preferred, colored
Changes since revision 1.218: +4 -4 lines
Sync with head.

Revision 1.219: download - view: text, markup, annotated - select for diffs
Tue Jun 17 21:55:49 2008 UTC (16 years, 5 months ago) by ad
Branches: MAIN
CVS tags: wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +4 -4 lines
Use UVM_OBJ_INIT/DESTROY.

Revision 1.217.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:14:13 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.217: preferred, colored; next MAIN 1.218: preferred, colored
Changes since revision 1.217: +9 -9 lines
sync with head.

Revision 1.209.6.3: download - view: text, markup, annotated - select for diffs
Thu Jun 5 19:14:34 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.209.6.2: preferred, colored; branchpoint 1.209: preferred, colored
Changes since revision 1.209.6.2: +7 -7 lines
Sync with HEAD.

Also fix build.

Revision 1.218: download - view: text, markup, annotated - select for diffs
Wed Jun 4 12:41:41 2008 UTC (16 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4
Branch point for: simonb-wapbl
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +9 -9 lines
vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both.

Revision 1.209.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:22:44 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.209.6.1: preferred, colored; branchpoint 1.209: preferred, colored
Changes since revision 1.209.6.1: +44 -19 lines
Sync with HEAD.

Revision 1.217: download - view: text, markup, annotated - select for diffs
Sun Apr 13 15:01:55 2008 UTC (16 years, 8 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base3, 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
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +46 -21 lines
Don't allocate or free pv_entry_t with pmap_lock held. Requested by martin@.
Untested.

Revision 1.209.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:26 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +315 -138 lines
Sync with HEAD.

Revision 1.216: download - view: text, markup, annotated - select for diffs
Fri Mar 28 18:22:59 2008 UTC (16 years, 8 months ago) by martin
Branches: MAIN
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +54 -13 lines
Now that we have per-cpu-contexts, checking the context on the local cpu
to find out if a pmap is on some mmu does not realy work any more.

Revision 1.215: download - view: text, markup, annotated - select for diffs
Tue Mar 25 20:44:12 2008 UTC (16 years, 8 months ago) by martin
Branches: MAIN
CVS tags: ad-socklock-base1
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +6 -3 lines
Make the debug message that triggered in PR 38297 slightly more verbose

Revision 1.164.2.9: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:38:40 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.164.2.8: preferred, colored; branchpoint 1.164: preferred, colored; next MAIN 1.165: preferred, colored
Changes since revision 1.164.2.8: +12 -14 lines
sync with head.

Revision 1.209.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:05 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.209: preferred, colored; next MAIN 1.210: preferred, colored
Changes since revision 1.209: +272 -137 lines
sync with head.

Revision 1.193.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:24 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.193.2.2: preferred, colored; next MAIN 1.194: preferred, colored
Changes since revision 1.193.2.2: +278 -137 lines
sync with HEAD

Revision 1.214: download - view: text, markup, annotated - select for diffs
Sat Mar 22 16:51:30 2008 UTC (16 years, 8 months ago) by nakayama
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +3 -2 lines
Add more assertion.

Revision 1.213: download - view: text, markup, annotated - select for diffs
Sat Mar 22 04:15:49 2008 UTC (16 years, 8 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +11 -14 lines
Lock also on freeing own context, and add assertion.

Revision 1.164.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:28 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.164.2.7: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.7: +272 -137 lines
sync with head.

Revision 1.212: download - view: text, markup, annotated - select for diffs
Fri Mar 14 15:40:02 2008 UTC (16 years, 9 months ago) by nakayama
Branches: MAIN
CVS tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +137 -46 lines
Complete per-CPU TSBs and MMU contexts changes.

Revision 1.211: download - view: text, markup, annotated - select for diffs
Sun Mar 2 15:28:26 2008 UTC (16 years, 9 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +3 -2 lines
- make interrupt pending list per-CPU.
- make tickintr() MP-safe.
- remove unused port-sparc derived interrupt code.

Ok by martin@.

Revision 1.210: download - view: text, markup, annotated - select for diffs
Thu Feb 28 11:50:40 2008 UTC (16 years, 9 months ago) by martin
Branches: MAIN
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +176 -133 lines
Make TSBs and MMU contexts per-cpu.

Revision 1.201.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:07 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.201: preferred, colored; next MAIN 1.202: preferred, colored
Changes since revision 1.201: +84 -71 lines
Sync with HEAD.

Revision 1.184.2.4: download - view: text, markup, annotated - select for diffs
Fri Feb 1 05:35:12 2008 UTC (16 years, 10 months ago) by riz
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.184.2.3: preferred, colored; branchpoint 1.184: preferred, colored
Changes since revision 1.184.2.3: +23 -5 lines
Pull up following revision(s) (requested by martin in ticket #983):
	sys/arch/sparc64/include/kcore.h: revision 1.5
	lib/libkvm/kvm_sparc64.c: revision 1.11
	sys/arch/sparc64/sparc64/pmap.c: revision 1.201
Extend the sparc64 cpu kcore segment so that it records all kernel mappings
done via locked 4 MB pages. The old format could only record physically
continous kernel text mappings.
For compatibility reasons, just extend the structure and fill in all the
old fields as well.
Use the new sparc64 kcore cpu segment extensions to properly map VA/PAs
on kernels with more then 4 MB text/rodata segment.

Revision 1.164.2.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:39:36 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.164.2.6: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.6: +85 -71 lines
sync with head

Revision 1.202.2.3: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:14:47 2008 UTC (16 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.202.2.2: preferred, colored; branchpoint 1.202: preferred, colored; next MAIN 1.203: preferred, colored
Changes since revision 1.202.2.2: +6 -0 lines
Sync with HEAD

Revision 1.184.2.1.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 18 16:28:05 2008 UTC (16 years, 10 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.184.2.1.2.3: preferred, colored; next MAIN 1.184.2.2: preferred, colored
Changes since revision 1.184.2.1.2.3: +8 -2 lines
Backported version of martin's changes to:

Extend the MD kernel core header, so that crashdumps record enough
information to recover all per-cpu mappings. This provides access to
the interrupt stack for example.

Revision 1.209: download - view: text, markup, annotated - select for diffs
Fri Jan 18 16:24:43 2008 UTC (16 years, 10 months ago) by martin
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +8 -2 lines
Extend the MD kernel core header, so that crashdumps record enough
information to recover all per-cpu mappings. This provides access to
the interrupt stack for example.

Revision 1.193.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:49:08 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.193.2.1: preferred, colored
Changes since revision 1.193.2.1: +79 -71 lines
sync with HEAD

Revision 1.202.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:10:30 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.202.2.1: preferred, colored; branchpoint 1.202: preferred, colored
Changes since revision 1.202.2.1: +4 -4 lines
Sync with HEAD

Revision 1.208: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:45:23 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
CVS tags: matt-armv6-base
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +3 -3 lines
pmap_destroy: cast return of atomic_dec_uint_nv to (int) to avoid leaking
pmaps. The refcount can be zero due to pmap_remove_all. Problem found by
tnn@.

Revision 1.207: download - view: text, markup, annotated - select for diffs
Sun Jan 6 18:24:06 2008 UTC (16 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +2 -3 lines
Remove superflouse extern decls.

Revision 1.206: download - view: text, markup, annotated - select for diffs
Sun Jan 6 18:07:16 2008 UTC (16 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +4 -8 lines
Move the mutex_init of pmap_lock even later into pmap_init().
This makes LOCKDEBUG kernels work again.

Revision 1.205: download - view: text, markup, annotated - select for diffs
Sun Jan 6 13:41:28 2008 UTC (16 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +9 -3 lines
We can not mutex_init() before setting up the per-CPU mappings needed
by curcpu() - a LOCKDEBUG kernel will die otherwise.

Revision 1.204: download - view: text, markup, annotated - select for diffs
Sat Jan 5 00:21:12 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +2 -3 lines
Don't need sys/lock.h

Revision 1.202.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:50:32 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +76 -69 lines
Sync with HEAD

Revision 1.203: download - view: text, markup, annotated - select for diffs
Wed Jan 2 11:48:30 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +76 -69 lines
Merge vmlocking2 to head.

Revision 1.184.2.1.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 30 14:31:22 2007 UTC (16 years, 11 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.184.2.1.2.2: preferred, colored
Changes since revision 1.184.2.1.2.2: +23 -5 lines
Apply changes from ticket #983.

Modified Files:
	src/sys/arch/sparc64/include: kcore.h
	src/sys/arch/sparc64/sparc64: pmap.c

Log Message:
Extend the sparc64 cpu kcore segment so that it records all kernel mappings
done via locked 4 MB pages. The old format could only record physically
continous kernel text mappings.
For compatibility reasons, just extend the structure and fill in all the
old fields as well.

Modified Files:
	src/lib/libkvm: kvm_sparc64.c

Log Message:
Use the new sparc64 kcore cpu segment extensions to properly map VA/PAs
on kernels with more then 4 MB text/rodata segment.

Revision 1.201.4.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:38:47 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.201.4.1: preferred, colored; branchpoint 1.201: preferred, colored; next MAIN 1.202: preferred, colored
Changes since revision 1.201.4.1: +3 -2 lines
Sync with head.

Revision 1.201.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:20:48 2007 UTC (17 years ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.201: preferred, colored; next MAIN 1.202: preferred, colored
Changes since revision 1.201: +3 -2 lines
sync with head.

Revision 1.201.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 10 19:26:28 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +76 -69 lines
Checkpoint work in progress.

Revision 1.202: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:12:55 2007 UTC (17 years ago) by martin
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +3 -2 lines
Provide cpu_intr_p(), at least for non-MULTIPROCESSOR kernels.
Based on suggestions by Andrew Doran.

Revision 1.186.2.6: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:39:33 2007 UTC (17 years ago) by ad
Branches: vmlocking
Diff to: previous 1.186.2.5: preferred, colored; next MAIN 1.187: preferred, colored
Changes since revision 1.186.2.5: +26 -8 lines
Sync with HEAD.

Revision 1.164.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:43:31 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.164.2.5: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.5: +26 -8 lines
sync with head.

Revision 1.198.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 15:59:50 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.198: preferred, colored; next MAIN 1.199: preferred, colored
Changes since revision 1.198: +26 -8 lines
Sync with HEAD

Revision 1.193.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:22:53 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +38 -32 lines
sync with HEAD

Revision 1.190.8.5: download - view: text, markup, annotated - select for diffs
Tue Nov 6 19:25:13 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.190.8.4: preferred, colored; branchpoint 1.190: preferred, colored; next MAIN 1.191: preferred, colored
Changes since revision 1.190.8.4: +23 -5 lines
Sync with HEAD.

Revision 1.201: download - view: text, markup, annotated - select for diffs
Mon Nov 5 00:43:41 2007 UTC (17 years, 1 month ago) by martin
Branches: 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
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +23 -5 lines
Extend the sparc64 cpu kcore segment so that it records all kernel mappings
done via locked 4 MB pages. The old format could only record physically
continous kernel text mappings.
For compatibility reasons, just extend the structure and fill in all the
old fields as well.

Revision 1.190.8.4: download - view: text, markup, annotated - select for diffs
Sun Nov 4 21:03:14 2007 UTC (17 years, 1 month ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.190.8.3: preferred, colored; branchpoint 1.190: preferred, colored
Changes since revision 1.190.8.3: +5 -5 lines
Sync with HEAD.

Revision 1.200: download - view: text, markup, annotated - select for diffs
Sun Nov 4 14:32:42 2007 UTC (17 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +5 -5 lines
cosmetics: use the "extern char ..[]" idiom for linker supplied addresses.

Revision 1.164.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:28:43 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.164.2.4: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.4: +14 -26 lines
sync with head.

Revision 1.199: download - view: text, markup, annotated - select for diffs
Wed Oct 17 19:57:31 2007 UTC (17 years, 2 months ago) by garbled
Branches: MAIN
CVS tags: yamt-x86pmap-base4
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +2 -2 lines
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.186.2.5: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:38:35 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.186.2.4: preferred, colored
Changes since revision 1.186.2.4: +14 -29 lines
Sync with head.

Revision 1.196.2.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:34:30 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.196: preferred, colored; next MAIN 1.197: preferred, colored
Changes since revision 1.196: +6 -4 lines
sync with head.

Revision 1.188.4.3: download - view: text, markup, annotated - select for diffs
Wed Oct 3 19:25:28 2007 UTC (17 years, 2 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.188.4.2: preferred, colored; branchpoint 1.188: preferred, colored; next MAIN 1.189: preferred, colored
Changes since revision 1.188.4.2: +18 -29 lines
Sync with HEAD

Revision 1.190.8.3: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:27:46 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.190.8.2: preferred, colored; branchpoint 1.190: preferred, colored
Changes since revision 1.190.8.2: +14 -26 lines
Sync with HEAD.

Revision 1.198: download - view: text, markup, annotated - select for diffs
Mon Oct 1 08:53:35 2007 UTC (17 years, 2 months ago) by martin
Branches: MAIN
CVS tags: yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, ppcoea-renovation-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +4 -6 lines
On second thought: a valid mapping is a valid mapping, period.
No need to special case the kernel pmap here.

Revision 1.197: download - view: text, markup, annotated - select for diffs
Sun Sep 30 13:54:00 2007 UTC (17 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +9 -5 lines
Add support to pmap_extract() for kernal mappings with PA 0.

Revision 1.196: download - view: text, markup, annotated - select for diffs
Tue Sep 11 16:00:06 2007 UTC (17 years, 3 months ago) by martin
Branches: MAIN
CVS tags: yamt-x86pmap-base
Branch point for: yamt-x86pmap
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +3 -5 lines
Cleanup cpu_info: get rid of ci_number and ci_upaid, use ci_index
and ci_cpuid instead.

Revision 1.190.4.3: download - view: text, markup, annotated - select for diffs
Mon Sep 10 10:54:40 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.190.4.2: preferred, colored; branchpoint 1.190: preferred, colored; next MAIN 1.191: preferred, colored
Changes since revision 1.190.4.2: +9 -21 lines
Sync with HEAD.

Revision 1.195: download - view: text, markup, annotated - select for diffs
Thu Sep 6 20:22:52 2007 UTC (17 years, 3 months ago) by martin
Branches: MAIN
CVS tags: nick-csl-alignment-base5
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +7 -15 lines
Remove the (now unused) second 64k page mapped per CPU.
From matthew green, with small changes by me. All bugs are mine.

Revision 1.194: download - view: text, markup, annotated - select for diffs
Thu Sep 6 19:36:33 2007 UTC (17 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +2 -6 lines
Do not call smp_tlb_flush_all() on every pmap_update() - it is too big
a hammer and papers over other problems. We need to revisit this and
fix it correctly soon.

Revision 1.190.8.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:47:43 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.190.8.1: preferred, colored; branchpoint 1.190: preferred, colored
Changes since revision 1.190.8.1: +4 -7 lines
Sync with HEAD.

Revision 1.164.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:30:24 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.164.2.3: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.3: +18 -15 lines
sync with head.

Revision 1.190.4.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:19:38 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.190.4.1: preferred, colored; branchpoint 1.190: preferred, colored
Changes since revision 1.190.4.1: +4 -7 lines
Sync with HEAD.

Revision 1.184.2.1.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 07:04:07 2007 UTC (17 years, 3 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.184.2.1.2.1: preferred, colored
Changes since revision 1.184.2.1.2.1: +3 -3 lines
Sync w/ NetBSD-4-RC_1

Revision 1.184.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 31 09:26:11 2007 UTC (17 years, 3 months ago) by liamjfoy
Branches: netbsd-4
CVS tags: wrstuden-fixsa-base-1, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.184.2.2: preferred, colored; branchpoint 1.184: preferred, colored
Changes since revision 1.184.2.2: +3 -3 lines
Pull up following (requested by martin in ticket #854):

Now that we have fixed the per-cpu mappings, adapt pmap_extract() accordingly.
No equivalent change on head, second per-cpu page is not used there any more.

Revision 1.193: download - view: text, markup, annotated - select for diffs
Sat Aug 25 19:16:11 2007 UTC (17 years, 3 months ago) by martin
Branches: MAIN
Branch point for: matt-armv6
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +2 -5 lines
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.186.2.4: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:39:05 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.186.2.3: preferred, colored
Changes since revision 1.186.2.3: +6 -2 lines
Sync with HEAD.

Revision 1.192: download - view: text, markup, annotated - select for diffs
Thu Aug 16 18:42:09 2007 UTC (17 years, 4 months ago) by rjs
Branches: MAIN
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +4 -4 lines
Explicitly use trapframe64 instead of trapframe.

Revision 1.190.8.1: download - view: text, markup, annotated - select for diffs
Thu Aug 16 11:02:34 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +6 -2 lines
Sync with HEAD.

Revision 1.190.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:47:47 2007 UTC (17 years, 4 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +6 -2 lines
Sync with HEAD.

Revision 1.191: download - view: text, markup, annotated - select for diffs
Tue Aug 14 14:16:17 2007 UTC (17 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +6 -2 lines
Complete initialization of lwp0 in pmap_bootstrap()

Revision 1.187.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:02:42 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.187: preferred, colored; next MAIN 1.188: preferred, colored
Changes since revision 1.187: +7 -5 lines
Sync with head.

Revision 1.188.4.2: download - view: text, markup, annotated - select for diffs
Tue Jun 26 18:13:44 2007 UTC (17 years, 5 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.188.4.1: preferred, colored; branchpoint 1.188: preferred, colored
Changes since revision 1.188.4.1: +4 -2 lines
Sync with HEAD.

Revision 1.184.2.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 4 01:54:18 2007 UTC (17 years, 6 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.184.2.1: preferred, colored
Changes since revision 1.184.2.1: +4 -2 lines
Update to today's netbsd-4.

Revision 1.186.2.3: download - view: text, markup, annotated - select for diffs
Sun May 27 12:28:27 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.186.2.2: preferred, colored
Changes since revision 1.186.2.2: +4 -3 lines
Sync with head.

Revision 1.184.2.2: download - view: text, markup, annotated - select for diffs
Fri May 25 08:04:35 2007 UTC (17 years, 6 months ago) by pavel
Branches: netbsd-4
Diff to: previous 1.184.2.1: preferred, colored; branchpoint 1.184: preferred, colored
Changes since revision 1.184.2.1: +2 -0 lines
Pull up following revision(s) (requested by martin in ticket #669):
	sys/arch/sparc64/sparc64/pmap.c: revision 1.190
In pmap_kenter_pa honour VM_PROT_EXECUTE - otherwise LKMs are not mapped
executable.
Fixes PR port-sparc64/36376.

Revision 1.190: download - view: text, markup, annotated - select for diffs
Wed May 23 09:36:22 2007 UTC (17 years, 6 months ago) by martin
Branches: 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
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +4 -2 lines
In pmap_kenter_pa honour VM_PROT_EXECUTE - otherwise LKMs are not mapped
executable.
Fixes PR port-sparc64/36376.

Revision 1.188.4.1: download - view: text, markup, annotated - select for diffs
Tue May 22 17:27:35 2007 UTC (17 years, 6 months ago) by matt
Branches: ppcoea-renovation
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +2 -3 lines
Update to HEAD.

Revision 1.189: download - view: text, markup, annotated - select for diffs
Thu May 17 14:51:32 2007 UTC (17 years, 7 months ago) by yamt
Branches: MAIN
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +2 -3 lines
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.184.4.5: download - view: text, markup, annotated - select for diffs
Sat Apr 28 03:57:15 2007 UTC (17 years, 7 months ago) by mrg
Branches: yamt-idlelwp
Diff to: previous 1.184.4.4: preferred, colored; branchpoint 1.184: preferred, colored; next MAIN 1.185: preferred, colored
Changes since revision 1.184.4.4: +2 -3 lines
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.186.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 10 13:23:18 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.186.2.1: preferred, colored
Changes since revision 1.186.2.1: +5 -4 lines
Sync with head.

Revision 1.184.4.4: download - view: text, markup, annotated - select for diffs
Mon Apr 2 01:32:53 2007 UTC (17 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.184.4.3: preferred, colored; branchpoint 1.184: preferred, colored
Changes since revision 1.184.4.3: +5 -4 lines
Pull up to the branch:
	cvs rdiff -r1.42 -r1.43 src/sys/arch/sparc64/include/ctlreg.h
	cvs rdiff -r1.187 -r1.188 src/sys/arch/sparc64/sparc64/pmap.c
Requested by mrg@

Revision 1.184.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 31 16:42:09 2007 UTC (17 years, 8 months ago) by bouyer
Branches: netbsd-4
Branch point for: wrstuden-fixsa
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +5 -4 lines
Pull up following revision(s) (requested by martin in ticket #547):
	sys/arch/sparc64/sparc64/pmap.c: revision 1.188
	sys/arch/sparc64/include/ctlreg.h: revision 1.43
When invalidating a context, make sure to flush user windows upfront.
Do not set the DMMU secondary context to 0 (that would be kernel), and
add a few required membars after switching the secondary dmmu context.
This avoids SIRs caused by double kernel_data_faults, caused by spills
of obsolete user windows after the context for that user pmap is gone.

Revision 1.188: download - view: text, markup, annotated - select for diffs
Fri Mar 30 21:14:13 2007 UTC (17 years, 8 months ago) by martin
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic
Branch point for: ppcoea-renovation
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +5 -4 lines
When invalidating a context, make sure to flush user windows upfront.
Do not set the DMMU secondary context to 0 (that would be kernel), and
add a few required membars after switching the secondary dmmu context.

This avoids SIRs caused by double kernel_data_faults, caused by spills
of obsolete user windows after the context for that user pmap is gone.

Revision 1.184.4.3: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:55:02 2007 UTC (17 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.184.4.2: preferred, colored; branchpoint 1.184: preferred, colored
Changes since revision 1.184.4.2: +4 -4 lines
sync with head.

Revision 1.186.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:50:06 2007 UTC (17 years, 9 months ago) by ad
Branches: vmlocking
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +4 -4 lines
Sync with head.

Revision 1.187: download - view: text, markup, annotated - select for diffs
Mon Mar 12 18:18:28 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +4 -4 lines
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.184.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:50:49 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.184.4.1: preferred, colored; branchpoint 1.184: preferred, colored
Changes since revision 1.184.4.1: +7 -7 lines
Sync with HEAD.

Revision 1.186: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:00:51 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
Branch point for: vmlocking
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +7 -7 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.184.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:53:15 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +13 -13 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.164.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:08:28 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.164.2.2: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.2: +13 -13 lines
sync with head.

Revision 1.185: download - view: text, markup, annotated - select for diffs
Wed Feb 21 22:59:53 2007 UTC (17 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +13 -13 lines
Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.172.6.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:01:00 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.172.6.1: preferred, colored; branchpoint 1.172: preferred, colored; next MAIN 1.173: preferred, colored
Changes since revision 1.172.6.1: +3 -3 lines
Sync with head.

Revision 1.164.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:05 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.164.2.1: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.1: +63 -44 lines
sync with head.

Revision 1.173.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:41 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.173.2.1: preferred, colored; branchpoint 1.173: preferred, colored; next MAIN 1.174: preferred, colored
Changes since revision 1.173.2.1: +9 -3 lines
sync with head.

Revision 1.184: download - view: text, markup, annotated - select for diffs
Fri Nov 24 22:52:16 2006 UTC (18 years ago) by wiz
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base
Branch point for: yamt-idlelwp, netbsd-4
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +3 -3 lines
s/existance/existence/, from Zafer.

Revision 1.172.6.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:29:33 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +62 -43 lines
Sync with head.

Revision 1.183: download - view: text, markup, annotated - select for diffs
Tue Oct 24 21:11:58 2006 UTC (18 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +8 -2 lines
In the INTSTACK and KSTACK_VA special case treatment in pmap_exctract,
do not add the offset to the result - the calculated PA is the right
value - not the start of the page as in the other cases.
This fixes DMA to kernel stack, and avoids "fabricating a geometry"
warnings.

Revision 1.173.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:12 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +55 -42 lines
sync with head

Revision 1.182: download - view: text, markup, annotated - select for diffs
Sun Oct 22 00:24:23 2006 UTC (18 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +3 -3 lines
correct a debug statement.

Revision 1.181: download - view: text, markup, annotated - select for diffs
Fri Oct 20 22:12:57 2006 UTC (18 years, 1 month ago) by mrg
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +3 -3 lines
avoid yet another GCC uninitialised warning at -O3.

Revision 1.180: download - view: text, markup, annotated - select for diffs
Wed Oct 18 15:28:39 2006 UTC (18 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +9 -8 lines
Ooops, array initialization for the page size map differs in DEBUG and
other kernels - hide details in a macro.
Pointed out by Matthias Scheler.

Revision 1.179: download - view: text, markup, annotated - select for diffs
Wed Oct 18 09:18:22 2006 UTC (18 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +8 -8 lines
Initializers

Revision 1.178: download - view: text, markup, annotated - select for diffs
Tue Oct 17 22:26:06 2006 UTC (18 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +25 -27 lines
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.177: download - view: text, markup, annotated - select for diffs
Sun Oct 15 21:07:45 2006 UTC (18 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +11 -7 lines
Make -Wextra save

Revision 1.176: download - view: text, markup, annotated - select for diffs
Tue Oct 3 23:39:03 2006 UTC (18 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +3 -3 lines
redo previous: print these int64_t with PRIx64.

Revision 1.175: download - view: text, markup, annotated - select for diffs
Tue Oct 3 22:36:21 2006 UTC (18 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +14 -11 lines
in pmap_mp_init(), tag & data are 64 bit int's, print them as such.
also, fix up some comments and function names.

Revision 1.174: download - view: text, markup, annotated - select for diffs
Mon Sep 18 23:56:54 2006 UTC (18 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +13 -6 lines
pmap_bootstrap() gets a bit of SMP help:
	- initialise bootcpu->ci_{cpcb,initstack}/proc0paddr from the
	  idle u area.
pmap_extract():
	- make this work on the kernel interrupt stack as well

both of these are from petrov@ via martin@.

pmap_update(): XXX mark the MULTIPROCESSOR call to smp_tlb_flush_all().

Revision 1.171.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:18 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.171.2.1: preferred, colored; branchpoint 1.171: preferred, colored; next MAIN 1.172: preferred, colored
Changes since revision 1.171.2.1: +3 -3 lines
sync with head.

Revision 1.173: download - view: text, markup, annotated - select for diffs
Wed Sep 13 11:35:53 2006 UTC (18 years, 3 months ago) by mrg
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +3 -3 lines
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.169.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:43:47 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.169: preferred, colored; next MAIN 1.170: preferred, colored
Changes since revision 1.169: +40 -62 lines
sync with head

Revision 1.171.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:45:29 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +3 -2 lines
sync with head.

Revision 1.164.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:56:48 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +301 -503 lines
sync with head.

Revision 1.171.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 03:45:14 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.171: preferred, colored; next MAIN 1.172: preferred, colored
Changes since revision 1.171: +3 -2 lines
Sync with head.

Revision 1.172: download - view: text, markup, annotated - select for diffs
Sat Jun 10 06:47:43 2006 UTC (18 years, 6 months ago) by rjs
Branches: MAIN
CVS tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +3 -2 lines
Add opt_multiprocessor.h.

Revision 1.169.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:02 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.169: preferred, colored; next MAIN 1.170: preferred, colored
Changes since revision 1.169: +39 -62 lines
Sync with head.

Revision 1.166.2.4: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:06 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.166.2.3: preferred, colored; next MAIN 1.167: preferred, colored
Changes since revision 1.166.2.3: +9 -17 lines
sync with head.

Revision 1.171: download - view: text, markup, annotated - select for diffs
Mon Feb 20 19:00:27 2006 UTC (18 years, 9 months ago) by cdi
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, chap-midi
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +9 -17 lines
Use ANSI-style function definitions and declarations.

Revision 1.166.2.3: download - view: text, markup, annotated - select for diffs
Sat Feb 18 15:38:51 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.166.2.2: preferred, colored
Changes since revision 1.166.2.2: +33 -48 lines
sync with head.

Revision 1.170: download - view: text, markup, annotated - select for diffs
Sat Feb 11 17:57:32 2006 UTC (18 years, 10 months ago) by cdi
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +33 -48 lines
ANSIfication: u_intN_t -> uintN_t, use ANSI function declarations/definitions
instead of K&R ones.

Revision 1.166.2.2: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:51:38 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.166.2.1: preferred, colored
Changes since revision 1.166.2.1: +262 -443 lines
sync with head.

Revision 1.169: download - view: text, markup, annotated - select for diffs
Tue Jan 31 20:18:40 2006 UTC (18 years, 10 months ago) by nakayama
Branches: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +3 -3 lines
Fix the new ofwboot boot problem with kernels where .text segment is smaller
than 4MB.

Unless this fix, boot failed with the message as below.

| panic: pmap_kextract: Address 0x1400000 is not from kernel space.
| Data segment is too small?

Revision 1.168: download - view: text, markup, annotated - select for diffs
Fri Jan 27 18:37:50 2006 UTC (18 years, 10 months ago) by cdi
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +262 -443 lines
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.166.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 15 10:02:39 2006 UTC (18 years, 11 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +3 -2 lines
sync with head.

Revision 1.167: download - view: text, markup, annotated - select for diffs
Thu Jan 12 18:04:09 2006 UTC (18 years, 11 months ago) by cdi
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +3 -2 lines
Fix 'memsize' value. pmap_bootstrap() calculates it as a PROM property
length but it is expected to contain a number of available memory regions
(e.g. in pmap_dumpsize() and pmap_dumpmmu()).

Revision 1.166: download - view: text, markup, annotated - select for diffs
Sat Dec 24 20:07:37 2005 UTC (18 years, 11 months ago) by perry
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +7 -7 lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.165: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:19:15 2005 UTC (19 years ago) by christos
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +2 -2 lines
merge ktrace-lwp.

Revision 1.141.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 13:59:34 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.141.2.6: preferred, colored; next MAIN 1.142: preferred, colored
Changes since revision 1.141.2.6: +21 -21 lines
Sync with HEAD. Here we go again...

Revision 1.164: download - view: text, markup, annotated - select for diffs
Thu Jun 16 04:17:50 2005 UTC (19 years, 6 months ago) by briggs
Branches: 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
Branch point for: yamt-lazymbuf
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +3 -3 lines
Rename 'ncpus' to 'sparc_ncpus' to avoid shadow warnings in m.i. code.
Also sprinkle an __UNVOLATILE() for sparc.
n.b. sparc64 'cpus' should probably be renamed to 'cpu_info_list' to
     match i386 et al.

Revision 1.163: download - view: text, markup, annotated - select for diffs
Wed Jun 1 21:05:36 2005 UTC (19 years, 6 months ago) by jdc
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +4 -4 lines
Add const (catching up with additions to MI ddb code).

Revision 1.162: download - view: text, markup, annotated - select for diffs
Tue May 31 00:53:02 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +18 -18 lines
- sprinkle const
- avoid shadowed variables

Revision 1.159.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:24 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.159: preferred, colored; next MAIN 1.160: preferred, colored
Changes since revision 1.159: +9 -35 lines
sync with -current

Revision 1.141.2.6: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:28:41 2005 UTC (19 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.141.2.5: preferred, colored
Changes since revision 1.141.2.5: +3 -3 lines
Sync with HEAD.

Revision 1.161: download - view: text, markup, annotated - select for diffs
Fri Apr 1 11:59:35 2005 UTC (19 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: kent-audio2-base
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +3 -3 lines
merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
  save some resources like pv_entry.  also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.

Revision 1.159.6.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:14 2005 UTC (19 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.159.6.1: preferred, colored; branchpoint 1.159: preferred, colored; next MAIN 1.160: preferred, colored
Changes since revision 1.159.6.1: +8 -34 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.141.2.5: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:39:12 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.141.2.4: preferred, colored
Changes since revision 1.141.2.4: +8 -34 lines
Sync with HEAD.

Hi Perry!

Revision 1.160: download - view: text, markup, annotated - select for diffs
Tue Feb 22 16:21:07 2005 UTC (19 years, 9 months ago) by martin
Branches: 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-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +8 -34 lines
Cleanup: the PG_SZ macro was buggy (pointed out by Tim Newsham).
It was only used by (the also buggy/not ready for prime time) PMAP_PAGE_SIZE,
which in turn only was used in one place.

Get rid of all this and hardcode the result at the single place of use.

Revision 1.159.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 26 11:55:08 2005 UTC (19 years, 10 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +3 -3 lines
convert arch/sparc64 to new apis.

Revision 1.156.4.2: download - view: text, markup, annotated - select for diffs
Fri Jan 7 14:28:33 2005 UTC (19 years, 11 months ago) by jdc
Branches: 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, netbsd-2-1
Diff to: previous 1.156.4.1: preferred, colored; branchpoint 1.156: preferred, colored; next MAIN 1.157: preferred, colored
Changes since revision 1.156.4.1: +86 -68 lines
Pull up revision 1.158 (requested by martin in ticket #1014).

Better return value checking for pseg_get/pseg_set. Turn Debugger() calls
into proper panics and sprinkle some KASSERTs. Closes PR 27288.

Revision 1.156.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 7 14:28:19 2005 UTC (19 years, 11 months ago) by jdc
Branches: netbsd-2-0
CVS tags: netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Diff to: previous 1.156.2.1: preferred, colored; branchpoint 1.156: preferred, colored; next MAIN 1.157: preferred, colored
Changes since revision 1.156.2.1: +86 -68 lines
Pull up revision 1.158 (requested by martin in ticket #1014).

Better return value checking for pseg_get/pseg_set. Turn Debugger() calls
into proper panics and sprinkle some KASSERTs. Closes PR 27288.

Revision 1.156.4.1: download - view: text, markup, annotated - select for diffs
Fri Jan 7 14:22:09 2005 UTC (19 years, 11 months ago) by jdc
Branches: netbsd-2
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +3 -3 lines
Pull up revision 1.157 (requested by martin in ticket #1013).

do the invalidation of the (virtually-addressed) L1 cache in pmap_remove_all()
(ie. just before we skip the per-page cache invalidations while tearing down
each context) instead of just before we recycle all the contexts in ctx_alloc().
the latter is not good enough since a (physically tagged) L1 cache line is
valid for all contexts, not just the one that was used to instantiate it.
fixes PRs 24126, 25669 and 27730.

Revision 1.156.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 7 14:21:57 2005 UTC (19 years, 11 months ago) by jdc
Branches: netbsd-2-0
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +3 -3 lines
Pull up revision 1.157 (requested by martin in ticket #1013).

do the invalidation of the (virtually-addressed) L1 cache in pmap_remove_all()
(ie. just before we skip the per-page cache invalidations while tearing down
each context) instead of just before we recycle all the contexts in ctx_alloc().
the latter is not good enough since a (physically tagged) L1 cache line is
valid for all contexts, not just the one that was used to instantiate it.
fixes PRs 24126, 25669 and 27730.

Revision 1.141.2.4: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:31:35 2004 UTC (19 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.141.2.3: preferred, colored
Changes since revision 1.141.2.3: +91 -100 lines
Sync with HEAD.

Revision 1.159: download - view: text, markup, annotated - select for diffs
Fri Dec 3 01:54:14 2004 UTC (20 years ago) by chs
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +6 -33 lines
remove dead code and other minor cleaning.

Revision 1.158: download - view: text, markup, annotated - select for diffs
Wed Dec 1 09:48:03 2004 UTC (20 years ago) by martin
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +86 -68 lines
Better return value checking for pseg_get/pseg_set. Turn Debugger() calls
into proper panics and sprinkle some KASSERTs. Closes PR 27288.

Revision 1.157: download - view: text, markup, annotated - select for diffs
Wed Dec 1 08:05:26 2004 UTC (20 years ago) by chs
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +3 -3 lines
do the invalidation of the (virtually-addressed) L1 cache in pmap_remove_all()
(ie. just before we skip the per-page cache invalidations while tearing down
each context) instead of just before we recycle all the contexts in ctx_alloc().
the latter is not good enough since a (physically tagged) L1 cache line is
valid for all contexts, not just the one that was used to instantiate it.
fixes PRs 24126, 25669 and 27730.

Revision 1.141.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:22:58 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.141.2.2: preferred, colored
Changes since revision 1.141.2.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.141.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:41:17 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.141.2.1: preferred, colored
Changes since revision 1.141.2.1: +0 -0 lines
Sync with HEAD.

Revision 1.141.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:41:37 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +447 -492 lines
Sync with HEAD

Revision 1.156: download - view: text, markup, annotated - select for diffs
Sun Mar 21 14:19:30 2004 UTC (20 years, 8 months ago) by pk
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1
Branch point for: netbsd-2-0, netbsd-2
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +231 -251 lines
Mostly switch to promlib interface. Postpone the use of prom_makememarr()
since the sparc64 memory range properties aren't compatible yet.

Fix pmap_calculate_colors() in the process.

Revision 1.155: download - view: text, markup, annotated - select for diffs
Sun Mar 14 18:18:56 2004 UTC (20 years, 9 months ago) by chs
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +29 -7 lines
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.154: download - view: text, markup, annotated - select for diffs
Thu Feb 12 03:25:48 2004 UTC (20 years, 10 months ago) by chs
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +6 -2 lines
pmap_activate() on pmap_kernel() should be a no-op.
needed for now while exiting processes "borrow" vmspace0,
but it's reasonable to check anyway.

Revision 1.153: download - view: text, markup, annotated - select for diffs
Fri Jan 9 08:49:42 2004 UTC (20 years, 11 months ago) by chs
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +3 -2 lines
make sure we free the context for the pmap in pmap_destroy().
this usually isn't necessary since we freed it earlier in pmap_remove_all(),
but since uvmspace_free() is now called in the context of the exiting
process, a new context might be allocated if uvm_unmap_detach() decides
to sleep (since cpu_switch() will allocate a new context when it switches
back to the exiting process).

Revision 1.152: download - view: text, markup, annotated - select for diffs
Tue Jan 6 09:38:20 2004 UTC (20 years, 11 months ago) by petrov
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +38 -22 lines
Spinup secondary cpus. Based on codes sent to me by Dennis Chernoivanov
and Chuck Silvers.

Revision 1.151: download - view: text, markup, annotated - select for diffs
Wed Dec 3 17:58:47 2003 UTC (21 years ago) by petrov
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +6 -22 lines
Use pmap_get_page return code instead, remove unused pmap_stats,
delete incorrect KASSERT in pmap_kenter_pa.

Revision 1.150: download - view: text, markup, annotated - select for diffs
Tue Nov 25 05:14:58 2003 UTC (21 years ago) by cdi
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +5 -4 lines
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.149: download - view: text, markup, annotated - select for diffs
Sun Nov 9 16:41:53 2003 UTC (21 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +15 -15 lines
bzero/bcopy -> memset/memcpy

Revision 1.148: download - view: text, markup, annotated - select for diffs
Sun Oct 26 19:18:16 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +3 -3 lines
Fix uninitialized variable warning.

Revision 1.147: download - view: text, markup, annotated - select for diffs
Tue Oct 21 12:08:11 2003 UTC (21 years, 1 month ago) by kleink
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +3 -3 lines
Don't use NULL in integer-type assignments/comparisons.

Revision 1.146: download - view: text, markup, annotated - select for diffs
Tue Oct 21 08:43:32 2003 UTC (21 years, 1 month ago) by petrov
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +6 -6 lines
don't assign/compare integer and NULL.

Revision 1.120.2.5: download - view: text, markup, annotated - select for diffs
Tue Oct 14 09:59:02 2003 UTC (21 years, 2 months ago) by tron
Branches: 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
Diff to: previous 1.120.2.4: preferred, colored; branchpoint 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120.2.4: +3 -6 lines
Pull up revision 1.145 via patch (requested by martin in ticket #1522):
cache_flush_virt() is buggy, just use blast_dcache() instead.
this should fix PR 23093.

Revision 1.145: download - view: text, markup, annotated - select for diffs
Sun Oct 12 19:06:29 2003 UTC (21 years, 2 months ago) by chs
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +4 -7 lines
cache_flush_virt() is buggy, just use blast_dcache() instead.
this should fix PR 23093.

Revision 1.144: download - view: text, markup, annotated - select for diffs
Fri Sep 26 03:59:33 2003 UTC (21 years, 2 months ago) by chs
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +5 -12 lines
in pmap_enter(), invalidate the TSBs before pre-loading the new values,
since we only pre-load one and the other one could be stale.
also, remove the bogus dcache_flush_page() from pmap_clear_modify() again,
since the problem it was intended to mask seems to have disappeared.

Revision 1.143: download - view: text, markup, annotated - select for diffs
Sun Aug 24 17:52:39 2003 UTC (21 years, 3 months ago) by chs
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +133 -180 lines
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.142: download - view: text, markup, annotated - select for diffs
Tue Jul 15 03:36:09 2003 UTC (21 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +7 -3 lines
__KERNEL_RCSID()

Revision 1.141: download - view: text, markup, annotated - select for diffs
Sat May 17 01:38:40 2003 UTC (21 years, 7 months ago) by nakayama
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +2 -2 lines
Avoid strict-alias warnings in gcc 3.3.

Revision 1.140: download - view: text, markup, annotated - select for diffs
Tue May 13 08:39:25 2003 UTC (21 years, 7 months ago) by martin
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +19 -11 lines
Backout previous, it was apparently ovelooked when backing out the
change in other places.

Revision 1.139: download - view: text, markup, annotated - select for diffs
Thu May 8 18:13:25 2003 UTC (21 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +12 -20 lines
Simplify the way the bounds of the managed kernel virtual address
space is advertised to UVM by making virtual_avail and virtual_end
first-class exported variables by UVM.  Machine-dependent code is
responsible for initializing them before main() is called.  Anything
that steals KVA must adjust these variables accordingly.

This reduces the number of instances of this info from 3 to 1, and
simplifies the pmap(9) interface by removing the pmap_virtual_space()
function call, and removing two arguments from pmap_steal_memory().

This also eliminates some kludges such as having to burn kernel_map
entries on space used by the kernel and stolen KVA.

This also eliminates use of VM_{MIN,MAX}_KERNEL_ADDRESS from MI code,
this giving MD code greater flexibility over the bounds of the managed
kernel virtual address space if a given port's specific platforms can
vary in this regard (this is especially true of the evb* ports).

Revision 1.138: download - view: text, markup, annotated - select for diffs
Tue Apr 1 16:34:59 2003 UTC (21 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +33 -34 lines
Use PAGE_SIZE rather than NBPG.

Revision 1.137: download - view: text, markup, annotated - select for diffs
Sun Mar 30 00:28:19 2003 UTC (21 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +3 -2 lines
Add some braces to make a block of code a bit easier to read.

Revision 1.136: download - view: text, markup, annotated - select for diffs
Tue Mar 11 21:28:23 2003 UTC (21 years, 9 months ago) by martin
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +11 -1 lines
Band aid - the infamous dcache_flush_page change independently suggested
by Andrey Petrov and Jason Thorpje (AFAIK).

This is a hack that covers some symptoms while we have no idea where
the real problem is. Anyway, since this avoids random data corruption
we better be safe and have this in-tree until the problem is solved the
right way.

Revision 1.135: download - view: text, markup, annotated - select for diffs
Fri Jan 31 19:05:57 2003 UTC (21 years, 10 months ago) by martin
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +14 -1 lines
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.134: download - view: text, markup, annotated - select for diffs
Mon Jan 27 14:53:08 2003 UTC (21 years, 10 months ago) by martin
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +1 -36 lines
Remove #if 0'd pmap_zero_page and pmap_copy_page, which are now
implemented in assembler in locore.s.

Revision 1.133: download - view: text, markup, annotated - select for diffs
Sat Jan 18 06:55:25 2003 UTC (21 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +9 -9 lines
Merge the nathanw_sa branch.

Revision 1.113.4.17: download - view: text, markup, annotated - select for diffs
Wed Jan 15 18:41:34 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.113.4.16: preferred, colored; branchpoint 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113.4.16: +4 -7 lines
Sync with HEAD.

Revision 1.132: download - view: text, markup, annotated - select for diffs
Wed Jan 15 06:15:06 2003 UTC (21 years, 11 months ago) by chs
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +4 -7 lines
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.113.4.16: download - view: text, markup, annotated - select for diffs
Tue Jan 7 21:23:33 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.113.4.15: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.15: +2 -2 lines
Sync with HEAD.

Revision 1.131: download - view: text, markup, annotated - select for diffs
Mon Jan 6 20:30:35 2003 UTC (21 years, 11 months ago) by wiz
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +2 -2 lines
writable, not writeable.

Revision 1.113.4.15: download - view: text, markup, annotated - select for diffs
Wed Nov 20 22:37:09 2002 UTC (22 years ago) by petrov
Branches: nathanw_sa
Diff to: previous 1.113.4.14: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.14: +1 -3 lines
remove extra bits in previous commit.

Revision 1.113.4.14: download - view: text, markup, annotated - select for diffs
Wed Nov 20 21:56:06 2002 UTC (22 years ago) by petrov
Branches: nathanw_sa
Diff to: previous 1.113.4.13: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.13: +4 -2 lines
catch-up lossage fixed.

Revision 1.113.4.13: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:04:57 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.113.4.12: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.12: +1 -10 lines
Catch up to -current

Revision 1.130: download - view: text, markup, annotated - select for diffs
Mon Nov 11 10:15:46 2002 UTC (22 years, 1 month ago) by chs
Branches: MAIN
CVS tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +1 -10 lines
remove some leftover debug code.

Revision 1.113.4.12: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:40:11 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.113.4.11: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.11: +1022 -1314 lines
Catch up to -current.

Revision 1.101.2.8: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:36:46 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.101.2.7: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.2.7: +1020 -1312 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.129: download - view: text, markup, annotated - select for diffs
Tue Oct 1 20:41:22 2002 UTC (22 years, 2 months ago) by provos
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +2 -2 lines
more trailing \r cleanup; pointed out by wiz

Revision 1.128: download - view: text, markup, annotated - select for diffs
Fri Sep 27 15:36:51 2002 UTC (22 years, 2 months ago) by provos
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +5 -5 lines
remove trailing \n in panic().  approved perry.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Sun Sep 22 07:19:51 2002 UTC (22 years, 2 months ago) by chs
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +1017 -1309 lines
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.113.4.11: download - view: text, markup, annotated - select for diffs
Fri Sep 6 19:23:22 2002 UTC (22 years, 3 months ago) by petrov
Branches: nathanw_sa
Diff to: previous 1.113.4.10: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.10: +6 -1 lines
Catch up.

Revision 1.101.2.7: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:41:51 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.101.2.6: preferred, colored
Changes since revision 1.101.2.6: +50 -59 lines
sync kqueue branch with HEAD

Revision 1.120.2.4: download - view: text, markup, annotated - select for diffs
Wed Sep 4 14:01:41 2002 UTC (22 years, 3 months ago) by lukem
Branches: netbsd-1-6
CVS tags: netbsd-1-6-RELEASE, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Diff to: previous 1.120.2.3: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.2.3: +6 -1 lines
Pull up rev 1.126 via patch (requested by chuq in ticket #761):
add back some cache flushes that are actually necessary.
any time we remove all access to a given virtual page,
we must invalidate the (write-through) L1 dcache.
pmap_remove() still had it, but pmap_kremove(), pmap_clear_reference()
and pmap_page_protect(VM_PROT_NONE) didn't and needed it.
fixes PR 18040.

Revision 1.126: download - view: text, markup, annotated - select for diffs
Tue Sep 3 05:08:21 2002 UTC (22 years, 3 months ago) by chs
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +6 -1 lines
add back some cache flushes that are actually necessary.
any time we remove all access to a given virtual page,
we must invalidate the (write-through) L1 dcache.
pmap_remove() still had it, but pmap_kremove(), pmap_clear_reference()
and pmap_page_protect(VM_PROT_NONE) didn't and needed it.
fixes PR 18040.

Revision 1.119.2.4: download - view: text, markup, annotated - select for diffs
Sat Aug 31 14:52:38 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.119.2.3: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119.2.3: +36 -50 lines
catch up with -current.

Revision 1.113.4.10: download - view: text, markup, annotated - select for diffs
Tue Aug 13 02:18:57 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.113.4.9: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.9: +36 -50 lines
Catch up to -current.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Mon Aug 12 12:04:31 2002 UTC (22 years, 4 months ago) by mrg
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +36 -50 lines
general clean up.  should not affect anything.  (this is part of a patch
from eeh to reduce frivolous cache flushes.)

Revision 1.113.4.9: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:43:49 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.113.4.8: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.8: +10 -10 lines
Catch up to -current.

Revision 1.119.2.3: download - view: text, markup, annotated - select for diffs
Wed Jul 17 02:11:32 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.119.2.2: preferred, colored
Changes since revision 1.119.2.2: +10 -10 lines
catch up with -current.

Revision 1.119.2.2: download - view: text, markup, annotated - select for diffs
Mon Jul 15 01:21:58 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.119.2.1: preferred, colored
Changes since revision 1.119.2.1: +2 -3 lines
catch up with -current.

Revision 1.120.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 24 23:00:02 2002 UTC (22 years, 5 months ago) by lukem
Branches: netbsd-1-6
CVS tags: netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Diff to: previous 1.120.2.2: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.2.2: +2 -2 lines
Pull up revision 1.124 (requested by eeh in ticket #361):
Fix compilation problems in DEBUG code.

Revision 1.113.4.8: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:08:10 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.113.4.7: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.7: +3 -3 lines
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: download - view: text, markup, annotated - select for diffs
Mon Jun 24 18:48:15 2002 UTC (22 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +2 -2 lines
Fix compilation problems in DEBUG code.

Revision 1.101.2.6: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:42:23 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.101.2.5: preferred, colored
Changes since revision 1.101.2.5: +18 -40 lines
catch up with -current on kqueue branch

Revision 1.120.2.2: download - view: text, markup, annotated - select for diffs
Fri Jun 21 06:46:25 2002 UTC (22 years, 5 months ago) by lukem
Branches: netbsd-1-6
Diff to: previous 1.120.2.1: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.2.1: +10 -10 lines
Pull up revision 1.123 (requested by eeh in ticket #339):
Use paddr_t for avail_start and avail_end so we can handle machines with
RAM above the 2GB mark.

Revision 1.123: download - view: text, markup, annotated - select for diffs
Fri Jun 21 02:57:29 2002 UTC (22 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +10 -10 lines
Use paddr_t for avail_start and avail_end so we can handle machines with
RAM above the 2GB mark.

Revision 1.113.4.7: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:41:33 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.113.4.6: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.6: +13 -39 lines
Catch up to -current.

Revision 1.120.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 12 01:23:47 2002 UTC (22 years, 6 months ago) by lukem
Branches: netbsd-1-6
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +2 -2 lines
Pull up revision 1.122 (requested by eeh in ticket #253):
Do not truncate the kernel pmap physical address to an `int' before
sticking it in the context lookup table.  Fixes a booting issue on
Netra T1125s.

Revision 1.122: download - view: text, markup, annotated - select for diffs
Tue Jun 11 21:10:03 2002 UTC (22 years, 6 months ago) by eeh
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +2 -2 lines
Do not truncate the kernel pmap physical address to an `int' before
sticking it in the context lookup table.  Fixes a booting issue on
Netra T1125s.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Sun Jun 2 14:44:41 2002 UTC (22 years, 6 months ago) by drochner
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +1 -2 lines
move initialization of the "struct pglist" returned by uvm_pglistalloc()
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling

Revision 1.119.2.1: download - view: text, markup, annotated - select for diffs
Thu May 30 15:35:57 2002 UTC (22 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +2 -2 lines
Catch up with -current.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Sat May 18 00:51:15 2002 UTC (22 years, 7 months ago) by eeh
Branches: MAIN
CVS tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +2 -2 lines
Fix inverted comparison.  We only wan to flush the I$ on *userland* executable
mappings.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Thu Apr 18 17:19:12 2002 UTC (22 years, 8 months ago) by eeh
Branches: MAIN
Branch point for: gehenna-devsw
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +12 -37 lines
Cleanup a bit and get rid of unnecessary cache flushes.

Revision 1.113.4.6: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:43:14 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.113.4.5: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.5: +7 -4 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.101.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:00:02 2002 UTC (22 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.101.2.4: preferred, colored
Changes since revision 1.101.2.4: +9 -4 lines
Catch up with -current.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Thu Mar 14 20:59:19 2002 UTC (22 years, 9 months ago) by eeh
Branches: MAIN
CVS tags: eeh-devprop-base, eeh-devprop
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +6 -2 lines
Make pmap_protect() on wired mappings DTRT.  Needed to toggle write protection
on the clock registers.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Fri Mar 8 20:48:35 2002 UTC (22 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: newlock-base, newlock
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +2 -3 lines
Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map).  Try to deal with this:

* Group all information about the backend allocator for a pool in a
  separate structure.  The pool references this structure, rather than
  the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
  to become available, but will still fail if it cannot callocate KVA
  space for the pages.  If this happens, carefully drain all pools using
  the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
  some pages, and use that information to make draining easier and more
  efficient.
* Get rid of PR_URGENT.  There was only one use of it, and it could be
  dealt with by the caller.

From art@openbsd.org.

Revision 1.113.4.5: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:12:18 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.113.4.4: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.4: +8 -2 lines
Catch up to -current.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Wed Feb 27 16:09:51 2002 UTC (22 years, 9 months ago) by pk
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +7 -1 lines
Calling pmap_zero_page() (in #if DEBUG section) from pmap_bootstrap() hangs
an E250; comment it out.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Tue Feb 26 15:13:28 2002 UTC (22 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +2 -2 lines
Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
  are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).

Revision 1.101.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:49:31 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.101.2.3: preferred, colored
Changes since revision 1.101.2.3: +126 -126 lines
Sync kqueue branch with -current.

Revision 1.113.4.4: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:28:04 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.113.4.3: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.3: +1 -11 lines
Catch up to -current.

Revision 1.113.4.3: download - view: text, markup, annotated - select for diffs
Fri Jan 4 19:12:31 2002 UTC (22 years, 11 months ago) by eeh
Branches: nathanw_sa
Diff to: previous 1.113.4.2: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.2: +3 -4 lines
Cleanup.

Revision 1.113.4.2: download - view: text, markup, annotated - select for diffs
Thu Jan 3 06:42:36 2002 UTC (22 years, 11 months ago) by petrov
Branches: nathanw_sa
Diff to: previous 1.113.4.1: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.4.1: +4056 -0 lines
make kernel compile

Revision 1.114: download - view: text, markup, annotated - select for diffs
Wed Jan 2 00:51:37 2002 UTC (22 years, 11 months ago) by chs
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +1 -11 lines
pmap_page_protect(VM_PROT_NONE) must remove all mappings in the PV list,
even if they are wired.  we need to be able to remove all mappings to
pages that are being freed due to (eg.) file truncation.

Revision 1.107.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:42:39 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107: +134 -124 lines
Catch up with -current.

Revision 1.113.4.1
Fri Sep 28 11:59:54 2001 UTC (23 years, 2 months ago) by petrov
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.113: +0 -4055 lines
file pmap.c was added on branch nathanw_sa on 2002-01-03 06:42:36 +0000

Revision 1.113: download - view: text, markup, annotated - select for diffs
Fri Sep 28 11:59:54 2001 UTC (23 years, 2 months ago) by chs
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: nathanw_sa
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +2 -1 lines
don't depend on other headers to include sys/proc.h for us.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Sun Sep 23 09:01:13 2001 UTC (23 years, 2 months ago) by chs
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +34 -1 lines
implement pmap_wired_count().

Revision 1.111: download - view: text, markup, annotated - select for diffs
Fri Sep 21 03:02:32 2001 UTC (23 years, 2 months ago) by eeh
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +90 -114 lines
Clean up page allocations.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Sep 18 02:23:14 2001 UTC (23 years, 3 months ago) by chs
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +2 -2 lines
in pmap_clear_modify(), we need to clear the TLB_W bit (ie. the hardware
write-enable bit) to re-enable modify-bit emulation even if we're doing HWREF.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Sat Sep 15 07:12:22 2001 UTC (23 years, 3 months ago) by eeh
Branches: MAIN
CVS tags: pre-chs-ubcperf, post-chs-ubcperf
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +2 -2 lines
Fix locking problem.

Revision 1.101.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 13 01:14:44 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.101.2.2: preferred, colored
Changes since revision 1.101.2.2: +29 -17 lines
Update the kqueue branch to HEAD.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Sep 10 21:19:26 2001 UTC (23 years, 3 months ago) by chris
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +9 -9 lines
Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.

Currently this is a no-op on most platforms, so they should see no difference.

Reviewed by Jason.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Fri Aug 31 16:47:41 2001 UTC (23 years, 3 months ago) by eeh
Branches: MAIN
CVS tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +21 -9 lines
Change data segment size calculations so we don't need to resize if the
bootloader did it for us.

Revision 1.101.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 25 06:15:58 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.101.2.1: preferred, colored
Changes since revision 1.101.2.1: +12 -23 lines
Merge Aug 24 -current into the kqueue branch.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Thu Aug 9 01:01:31 2001 UTC (23 years, 4 months ago) by eeh
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +12 -23 lines
pmap_kenter_pa() always creates privileged mappings.
No need to enter a no-fault mapping any more.

Revision 1.101.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:12:31 2001 UTC (23 years, 4 months ago) by lukem
Branches: kqueue
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +144 -107 lines
update to -current

Revision 1.105: download - view: text, markup, annotated - select for diffs
Tue Jul 31 06:55:47 2001 UTC (23 years, 4 months ago) by eeh
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +78 -78 lines
Dump some enums that make lint unhappy and we never really use anyway.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Tue Jul 24 16:50:41 2001 UTC (23 years, 4 months ago) by wiz
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +2 -2 lines
s/accellerate/accelerate/

Revision 1.103: download - view: text, markup, annotated - select for diffs
Thu Jul 12 23:13:15 2001 UTC (23 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +39 -7 lines
Set up proper cache colors.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Wed Jul 11 23:00:02 2001 UTC (23 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +34 -29 lines
Fix math calculating the number of pages the kernel takes up.
Add some more asserts.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Jul 5 08:38:25 2001 UTC (23 years, 5 months ago) by toshii
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -3 lines
Fix typo. s/extention/extension/

Revision 1.100: download - view: text, markup, annotated - select for diffs
Tue Jul 3 07:34:27 2001 UTC (23 years, 5 months ago) by chs
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -59 lines
change pmap_extract() to deal with unmapped addresses.
remove some unnecessary checks for unmanaged pages.

Revision 1.91.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 19:36:28 2001 UTC (23 years, 5 months ago) by nathanw
Diff to: previous 1.91.2.1: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91.2.1: +32 -65 lines
Catch up to -current.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Thu Jun 21 01:17:18 2001 UTC (23 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +2 -1 lines
Prevent a hang if trying to pmap_protect a page with wired mappings.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Thu Jun 21 00:24:22 2001 UTC (23 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +152 -91 lines
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.97: download - view: text, markup, annotated - select for diffs
Sat May 26 21:27:16 2001 UTC (23 years, 6 months ago) by chs
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +19 -19 lines
replace vm_page_t with struct vm_page *.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Thu May 17 02:31:26 2001 UTC (23 years, 7 months ago) by chs
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +4 -9 lines
the call to uvm_km_valloc() in pmap_init() can end up triggering a call to
pmap_growkernel() on large memory machines.  at this point we've already
called uvm_page_init(), so we can no longer use uvm_page_physget().
but the flag we use to decide whether to use uvm_page_physget() vs.
uvm_pagealloc() is only set at the end of pmap_init(), so we use
uvm_page_physget() anyway.  switch to using uvm.page_init_done to decide
how to allocate pages, since that's the real indicator of when we have to
change methods.

Revision 1.56.2.5: download - view: text, markup, annotated - select for diffs
Wed May 2 23:02:21 2001 UTC (23 years, 7 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.56.2.4: preferred, colored; branchpoint 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.2.4: +3 -1 lines
Apply patch (requested by martin):
  Fix build problem without DEBUG defined.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Tue Apr 24 04:31:13 2001 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_beforemerge
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +9 -1 lines
Sprinkle pmap_update() calls after calls to:
- pmap_enter()
- pmap_remove()
- pmap_protect()
- pmap_kenter_pa()
- pmap_kremove()
as described in pmap(9).

These calls are relatively conservative.  It may be possible to
optimize these a little more.

Revision 1.44.2.9: download - view: text, markup, annotated - select for diffs
Mon Apr 23 09:42:07 2001 UTC (23 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.44.2.8: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.2.8: +3 -39 lines
Sync with HEAD.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sun Apr 22 23:42:17 2001 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_base
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -30 lines
Remove pmap_kenter_pgs().  It was never really adopted by
anything, and the interface itself wasn't as flexible as
callers would have probably liked.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sat Apr 21 23:51:21 2001 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +1 -10 lines
#define away pmap_update() in <machine/pmap.h> so that no function
call overhead is incurred as we start sprinkling pmap_update() calls
throughout the source tree (no pmaps currently defer operations, but
we are adding the infrastructure to allow them to do so).

Revision 1.91.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:55:07 2001 UTC (23 years, 8 months ago) by nathanw
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +4 -4 lines
Catch up with -current.

Revision 1.44.2.8: download - view: text, markup, annotated - select for diffs
Tue Mar 27 15:31:36 2001 UTC (23 years, 8 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.44.2.7: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.7: +4 -4 lines
Sync with HEAD.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Mar 15 06:10:50 2001 UTC (23 years, 9 months ago) by chs
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +4 -4 lines
eliminate the KERN_* error codes in favor of the traditional E* codes.
the mapping is:

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

Revision 1.44.2.7: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:12:40 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.44.2.6: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.6: +5 -12 lines
Sync with HEAD.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Jan 22 22:10:09 2001 UTC (23 years, 10 months ago) by eeh
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +5 -12 lines
Only panic if we can't allocate a PT page for the kernel pmap.

Revision 1.44.2.6: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:04 2001 UTC (23 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.44.2.5: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.5: +25 -25 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Jan 14 03:25:17 2001 UTC (23 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +24 -24 lines
splimp() -> splvm()

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun Jan 14 02:03:49 2001 UTC (23 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -3 lines
splpmap() -> splvm()

Revision 1.44.2.5: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:35:09 2001 UTC (23 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.44.2.4: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.4: +82 -159 lines
Sync with HEAD

Revision 1.88: download - view: text, markup, annotated - select for diffs
Wed Jan 3 23:05:22 2001 UTC (23 years, 11 months ago) by eeh
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +2 -2 lines
Fix faults caused by incorrect cacheing information in the pv_entry.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sat Dec 30 07:42:42 2000 UTC (23 years, 11 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -1 lines
more missing #ifdef DEBUG goop

Revision 1.86: download - view: text, markup, annotated - select for diffs
Fri Dec 29 18:29:19 2000 UTC (23 years, 11 months ago) by eeh
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +59 -144 lines
Fix LOCKDEBUG issues.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Dec 18 15:57:15 2000 UTC (24 years ago) by mrg
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +21 -21 lines
s/%qx/%llx/

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sun Dec 17 21:43:54 2000 UTC (24 years ago) by pk
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +24 -18 lines
Fix printf() pointer formats & make them work with a 32-bit compiler.

Revision 1.44.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:49:36 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.44.2.3: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.3: +1 -0 lines
Sync with HEAD (for UBC fixes).

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sun Dec 10 19:33:02 2000 UTC (24 years ago) by eeh
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +2 -1 lines
Zero proc 0 stack pages so the pcb is cleared out before use.

Revision 1.44.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:30:41 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.44.2.2: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.2: +61 -53 lines
Sync with HEAD.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Dec 6 01:47:51 2000 UTC (24 years ago) by mrg
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +53 -50 lines
fix warnings in DEBUG & DIAGNSTIC code.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Mon Dec 4 16:01:19 2000 UTC (24 years ago) by fvdl
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +7 -5 lines
Warning police. Mostly useless format warnings. Switch Makefile for
kernel compiles to the warning flags that other ports also use.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Dec 1 17:17:29 2000 UTC (24 years ago) by eeh
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +4 -1 lines
Don't allow pmap_collect() to run on the kernel pmap since it will
undo the work of pmap_growkernel().

Revision 1.44.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:01:56 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.44.2.1: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.1: +70 -10 lines
Sync with HEAD.

Revision 1.44.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 20:26:57 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1102 -640 lines
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.79: download - view: text, markup, annotated - select for diffs
Fri Nov 10 11:57:53 2000 UTC (24 years, 1 month ago) by mrg
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +1 -2 lines
remove unused variable

Revision 1.78: download - view: text, markup, annotated - select for diffs
Thu Nov 2 00:24:05 2000 UTC (24 years, 1 month ago) by eeh
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +2 -1 lines
pmap_growkernel() needs to return the new end of kernel.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Oct 29 23:30:36 2000 UTC (24 years, 1 month ago) by eeh
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +70 -10 lines
Add pmap_growkernel().

Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu Oct 19 05:44:39 2000 UTC (24 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -1 lines
#if 0 unused code.

Revision 1.56.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 17 02:06:49 2000 UTC (24 years, 2 months ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.56.2.3: preferred, colored; branchpoint 1.56: preferred, colored
Changes since revision 1.56.2.3: +406 -66 lines
Pullup 1.72-1.75 [eeh]:
Add -V and -D bootflags to print out debug info in pmap_bootstrap() and
a fix for non-DEBUG kernels.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Sep 27 18:20:33 2000 UTC (24 years, 2 months ago) by eeh
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +46 -2 lines
Add -V and -D bootflags to print out debug info in pmap_bootstrap() and
a fix for non-DEBUG kernels.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Sep 12 19:42:26 2000 UTC (24 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +32 -30 lines
This really does seem to fix the ref/mod issues.  (Yeah, like were did we hear that before?)

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Sep 11 23:27:23 2000 UTC (24 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +342 -48 lines
Add locking to pmap operations and support multiple physical memory segments.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Aug 30 14:59:48 2000 UTC (24 years, 3 months ago) by soren
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3 lines
Typo.

Revision 1.56.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 7 01:09:24 2000 UTC (24 years, 4 months ago) by mrg
Branches: netbsd-1-5
CVS tags: netbsd-1-5-ALPHA2
Diff to: previous 1.56.2.2: preferred, colored; branchpoint 1.56: preferred, colored
Changes since revision 1.56.2.2: +30 -168 lines
pull up 1.70, 1.71 (approved by thorpej):
>Overhaul cache flush code and coredump code.

>PDB_BOOT and PDB_BOOT1 should not be the same value.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Aug 2 22:25:45 2000 UTC (24 years, 4 months ago) by eeh
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -6 lines
PDB_BOOT and PDB_BOOT1 should not be the same value.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Aug 1 00:40:20 2000 UTC (24 years, 4 months ago) by eeh
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +27 -163 lines
Overhaul cache flush code and coredump code.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon Jul 31 05:40:22 2000 UTC (24 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -1 lines
define BDPRINTF in the !DEBUG case to nothing. PR#10688.

Revision 1.56.2.2: download - view: text, markup, annotated - select for diffs
Mon Jul 31 02:01:43 2000 UTC (24 years, 4 months ago) by mrg
Branches: netbsd-1-5
Diff to: previous 1.56.2.1: preferred, colored; branchpoint 1.56: preferred, colored
Changes since revision 1.56.2.1: +5 -5 lines
pull up 1.67 (approved by thorpej):
>address casts: long -> u_long

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Jul 27 13:59:26 2000 UTC (24 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -2 lines
fix warnings.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Jul 18 20:19:56 2000 UTC (24 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +5 -5 lines
address casts: long -> u_long

Revision 1.56.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 18 16:23:31 2000 UTC (24 years, 5 months ago) by mrg
Branches: netbsd-1-5
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +219 -280 lines
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.66: download - view: text, markup, annotated - select for diffs
Sat Jul 15 14:26:39 2000 UTC (24 years, 5 months ago) by eeh
Branches: MAIN
CVS tags: mrg-merge-1-5-top
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +171 -235 lines
#ifdef BOOT_DEBUG --> BDPRINTF(PDB_BOOT, (...))

Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Jul 14 09:58:52 2000 UTC (24 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -2 lines
Back out previous for now; it requires a system wide prototype change.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Jul 14 00:02:35 2000 UTC (24 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -2 lines
Make `physmem' an `unsigned int', so it can properly represent large memory
configurations.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Jun 30 22:17:53 2000 UTC (24 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -1 lines
Reserve a page for dumping the kernel.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Jun 29 07:37:58 2000 UTC (24 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +1 -3 lines
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Jun 26 19:45:54 2000 UTC (24 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -2 lines
We want prom_claim_phys() to return the address passed into it.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Jun 26 14:21:01 2000 UTC (24 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +1 -2 lines
remove/move more mach vm header files:

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

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

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Jun 25 13:49:35 2000 UTC (24 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +1 -2 lines
<vm/vm_pageout.h> is already empty; kill it totally.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Jun 24 20:48:44 2000 UTC (24 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +36 -35 lines
With these changes the kernel seems almost stable again.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Jun 24 04:38:20 2000 UTC (24 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +14 -14 lines
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.53.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:04:38 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +516 -212 lines
Sync w/ netbsd-1-5-base.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Jun 19 23:30:36 2000 UTC (24 years, 5 months ago) by eeh
Branches: MAIN
CVS tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +425 -254 lines
Have separate data and text segments, make text read-only.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Jun 15 15:51:07 2000 UTC (24 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -4 lines
fix a couple of errors in the previous. from eeh.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Jun 12 23:32:48 2000 UTC (24 years, 6 months ago) by eeh
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +166 -33 lines
Start reorganizing the kernel for MULTIPROCESSOR support.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed May 17 09:12:10 2000 UTC (24 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2 lines
fix another warning.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Apr 22 16:42:25 2000 UTC (24 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -2 lines
s#\b#\n# so an error message appears correctly.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Apr 14 04:08:26 2000 UTC (24 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +5 -1 lines
two more compiler warnings killed.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Apr 8 04:45:41 2000 UTC (24 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +18 -18 lines
add casts to stop gcc complaining

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Apr 6 12:49:00 2000 UTC (24 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +26 -22 lines
add some more casts to shut up gcc.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Mar 16 02:37:00 2000 UTC (24 years, 9 months ago) by eeh
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +9 -9 lines
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.47: download - view: text, markup, annotated - select for diffs
Thu Dec 30 16:31:18 1999 UTC (24 years, 11 months ago) by eeh
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +10 -3 lines
Mark page table pages as wired rather than busy.

Revision 1.44.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:34:01 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +15 -13 lines
Pull up to last week's -current.

Revision 1.44.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:39:33 1999 UTC (25 years, 1 month ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +15 -13 lines
Sync with -current

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Nov 14 17:25:01 1999 UTC (25 years, 1 month ago) by eeh
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -2 lines
Change one more instance of `access_type' to `flags' in pmap_enter().

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Nov 13 00:32:17 1999 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +14 -12 lines
Update for pmap_enter() API change.  No functional difference.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Sep 12 01:17:23 1999 UTC (25 years, 3 months ago) by chs
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -188 lines
eliminate the PMAP_NEW option by making it required for all ports.
ports which previously had no support for PMAP_NEW now implement
the pmap_k* interfaces as wrappers around the non-k versions.

Revision 1.31.2.1.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 2 21:43:55 1999 UTC (25 years, 4 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.31.2.1.2.2: preferred, colored; branchpoint 1.31.2.1: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.1.2.2: +244 -14 lines
Update from trunk.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Jul 18 23:55:57 1999 UTC (25 years, 5 months ago) by eeh
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +236 -10 lines
More fun with pmap.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Jul 8 18:11:00 1999 UTC (25 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +9 -5 lines
Change the pmap_extract() interface to:
	boolean_t pmap_extract(pmap_t, vaddr_t, paddr_t *);
This makes it possible for the pmap to map physical address 0.

Revision 1.31.2.1.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 1 23:23:20 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.31.2.1.2.1: preferred, colored; branchpoint 1.31.2.1: preferred, colored
Changes since revision 1.31.2.1.2.1: +380 -121 lines
Sync w/ -current.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:44:14 1999 UTC (25 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +380 -121 lines
Clean this up a little.  More later.  (Gee, this really is becoming a huge
mess).

Revision 1.31.2.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:02:36 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.31.2.1: preferred, colored
Changes since revision 1.31.2.1: +64 -245 lines
Sync w/ -current.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Jun 17 19:23:27 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +8 -12 lines
pmap_change_wiring() -> pmap_unwire().

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Jun 17 18:21:35 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +1 -14 lines
Remove pmap_pageable(); no pmap implements it, and it is not really useful,
because pmap_enter()/pmap_change_wiring() (soon to be pmap_unwire())
communicate the information in greater detail.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Jun 7 05:28:04 1999 UTC (25 years, 6 months ago) by eeh
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +43 -37 lines
Another general cleanup:

Remove the entire idea of fasttrap interrupts since V9 traps are really cheap,
the CPUs are really fast, and the completely different trap frames would make
these handlers really difficult to implement.

pmap_changeprot() was only used by the clock and one other place; deprecate it.

probeget() and probeset() now take 64-bit addresses even in 32-bit mode so we
can probe IO locations by physical addresses.

Some pmap cleanup.

Some more copyright cleanup.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon May 31 00:14:01 1999 UTC (25 years, 6 months ago) by eeh
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -179 lines
Garbage collect.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun May 30 18:52:51 1999 UTC (25 years, 6 months ago) by eeh
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +10 -7 lines
Handle little-endian mapin requests.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun May 23 11:41:39 1999 UTC (25 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
KNF nit.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun May 9 19:24:20 1999 UTC (25 years, 7 months ago) by eeh
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -1 lines
Fixup non-DEBUG kernels.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Apr 25 17:23:04 1999 UTC (25 years, 7 months ago) by eeh
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -1 lines
Fix uninitialized variable bug in pmap_enter().

Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 16 16:24:41 1999 UTC (25 years, 8 months ago) by chs
Branches: netbsd-1-4
CVS tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +2 -2 lines
pull up 1.31 -> 1.32:
add a `flags' argument to uvm_pagealloc_strat().
define a flag UVM_PGA_USERESERVE to allow non-kernel object
allocations to use pages from the reserve.
use the new flag for allocations in pmap modules.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Apr 11 04:04:10 1999 UTC (25 years, 8 months ago) by chs
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
add a `flags' argument to uvm_pagealloc_strat().
define a flag UVM_PGA_USERESERVE to allow non-kernel object
allocations to use pages from the reserve.
use the new flag for allocations in pmap modules.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Mar 28 19:01:03 1999 UTC (25 years, 8 months ago) by eeh
Branches: MAIN
CVS tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +23 -40 lines
Fix fault handling code to correctly report access_type and fault_type
and get rid of pmap_enter_phys().

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Mar 28 16:01:19 1999 UTC (25 years, 8 months ago) by eeh
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +40 -1 lines
Fix ref counting.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Mar 26 23:41:36 1999 UTC (25 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -2 lines
Changes for modified pmap_enter() API:
* Map the message buffer with access_type = VM_PROT_READ|VM_PROT_WRITE `just
  because'.
* Map the file system buffers with access_type = VM_PROT_READ|VM_PROT_WRITE to
  avoid possible problems with pagemove().
* Do not use VM_PROT_EXEC with either of the above.
* Map pages for /dev/mem with access_type = prot.  Also, DO NOT use
  pmap_kenter() for this, as we DO NOT want to lose modification information.
* Map pages in dumpsys() with VM_PROT_READ.
* Map pages in m68k mappedcopyin()/mappedcopyout() and writeback() with
  access_type = prot.
* For now, bus_dma*(), pmap_map(), vmapbuf(), and similar functions still use
  access_type = 0.  This should probably be revisited.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Mar 26 04:29:23 1999 UTC (25 years, 8 months ago) by eeh
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +17 -17 lines
COMPAT_SPARC32 -> COMPAT_NETBSD32

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Mar 24 05:51:13 1999 UTC (25 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -135 lines
completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Mar 22 05:35:40 1999 UTC (25 years, 8 months ago) by eeh
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -9 lines
Flush D$ on bypass accesses.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Mar 10 01:54:16 1999 UTC (25 years, 9 months ago) by eeh
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +85 -43 lines
PMAP_PGARG doesn't do the right thing for us.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Feb 28 00:26:46 1999 UTC (25 years, 9 months ago) by eeh
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +7 -2 lines
Use block load/store in pmap_zero_page()/pmap_copy_page().

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Jan 16 20:45:58 1999 UTC (25 years, 11 months ago) by chuck
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -85 lines
MNN is no longer optional, remove dead code

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Jan 10 15:01:32 1999 UTC (25 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +135 -87 lines
KNF nits i have sat on for too long.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Nov 27 20:02:57 1998 UTC (26 years ago) by eeh
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Calculate the size of the TSB correctly.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Nov 24 12:55:06 1998 UTC (26 years ago) by mrg
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +9 -5 lines
#if 0 pv_syncflags as it is not used.  avoid comments in comments.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Nov 22 23:56:49 1998 UTC (26 years ago) by mrg
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +5 -3 lines
fix some warnings, and some not DEBUG problems.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Nov 22 23:38:53 1998 UTC (26 years ago) by eeh
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +1 -29 lines
Move allocsys() back to cpu_startup().  We're no longer allocating it from
the locked 4MB TLB entry, but it solves the problem where large memory machines
overflow the 4MB TLB entry.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Nov 22 17:22:50 1998 UTC (26 years ago) by eeh
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +45 -3 lines
ofwboot.elf is now ofwboot.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Sep 22 02:48:44 1998 UTC (26 years, 2 months ago) by eeh
Branches: MAIN
CVS tags: chs-ubc-base, chs-ubc
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -21 lines
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.15: download - view: text, markup, annotated - select for diffs
Sun Sep 13 16:02:49 1998 UTC (26 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +21 -1 lines
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.14: download - view: text, markup, annotated - select for diffs
Wed Sep 9 02:49:56 1998 UTC (26 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +11 -5 lines
Fix problems in global pagewalks.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Sep 7 23:59:08 1998 UTC (26 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -4 lines
Misc. cleanup.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Sep 6 21:53:43 1998 UTC (26 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
32-bit fixup.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Sep 5 23:57:29 1998 UTC (26 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -7 lines
It slices.  It dices.  It does everything except exec a sparc32_compat init.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Sep 2 05:51:39 1998 UTC (26 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +52 -61 lines
Periodic update: now starts probing devices.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Aug 30 02:12:02 1998 UTC (26 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +36 -36 lines
Some more 64-bit ification and I think I finally fixed the vref() panic.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Aug 27 06:23:32 1998 UTC (26 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +221 -117 lines
Add 64-bit pmap support:

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

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Aug 26 12:41:47 1998 UTC (26 years, 3 months ago) by mrg
Branches: MAIN
CVS tags: PMAP32
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -1 lines
deal with no DDB

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Aug 26 07:55:10 1998 UTC (26 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -1 lines
put pmapdebug usage inside #ifdef DEBUG

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Aug 23 15:51:23 1998 UTC (26 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +80 -1 lines
Added pv_syncflags() (unused) and debug stuff.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Aug 13 02:10:47 1998 UTC (26 years, 4 months ago) by eeh
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +587 -398 lines
Merge paddr_t changes into the main branch.

Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Sun Aug 9 05:46:36 1998 UTC (26 years, 4 months ago) by eeh
Branches: eeh-paddr_t
Diff to: previous 1.3.2.3: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.3: +419 -128 lines
General pmap and debug cleanup.  Added PMAP_NEW support, but it doesn't work too well yet.

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Sat Aug 8 03:06:44 1998 UTC (26 years, 4 months ago) by eeh
Branches: eeh-paddr_t
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.2: +14 -92 lines
Revert cdevsw mmap routines to return int.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 2 00:06:49 1998 UTC (26 years, 4 months ago) by eeh
Branches: eeh-paddr_t
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +11 -10 lines
Cleanup work:

	Sync up with sys/dev/sbus
	get cgsix to work right

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 30 14:03:56 1998 UTC (26 years, 4 months ago) by eeh
Branches: eeh-paddr_t
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +151 -176 lines
Split vm_offset_t and vm_size_t into paddr_t, psize_t, vaddr_t, and vsize_t.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Jul 8 04:43:21 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
Define one page free list, and put all pages on it.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jul 7 03:05:05 1998 UTC (26 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +104 -17 lines
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.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Jun 20 04:58:52 1998 UTC (26 years, 6 months ago) by eeh
Branches: eeh
CVS tags: eeh-19980609
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Import of sparc64.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Jun 20 04:58:52 1998 UTC (26 years, 6 months ago) by eeh
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>