The NetBSD Project

CVS log for src/sys/arch/m68k/m68k/pmap_motorola.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.89 / (download) - annotate - [select for diffs], Fri Jan 19 03:35:31 2024 UTC (2 months, 1 week ago) by thorpej
Branch: MAIN
CVS Tags: HEAD
Changes since 1.88: +47 -2 lines
Diff to previous 1.88 (colored) to selected 1.5.2.2 (colored)

Move physaccess(), physunaccess(), and kvtop() from vm_machdep.c to
pmap_motorola.c.  They're legacy functions tied to that pmap implementation.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Jan 18 14:39:06 2024 UTC (2 months, 1 week ago) by thorpej
Branch: MAIN
Changes since 1.87: +6 -2 lines
Diff to previous 1.87 (colored) to selected 1.5.2.2 (colored)

Make the M68K_MMU_* defines real kernel options, available in opt_m68k_arch.h.
For 68030, 68040, and 68060, infer M68K_MMU_MOTOROLA.  For 68010 and 68020, it
must be an explicit option (set in std.${MACHINE} or, in the case of hp300,
inferred from the specific model option).

Revision 1.87 / (download) - annotate - [select for diffs], Tue Jan 9 07:28:26 2024 UTC (2 months, 2 weeks ago) by thorpej
Branch: MAIN
Changes since 1.86: +4 -2 lines
Diff to previous 1.86 (colored) to selected 1.5.2.2 (colored)

Statically-initialize the '851 / '030 protorp with MMU51_SRP_BITS.  In
pmap_init(), re-initialize protorp with MMU51_CRP_BITS.  Remove the now-
redundant code that does this in each of the m68k platforms.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Jan 9 04:16:25 2024 UTC (2 months, 2 weeks ago) by thorpej
Branch: MAIN
Changes since 1.85: +60 -5 lines
Diff to previous 1.85 (colored) to selected 1.5.2.2 (colored)

Remove duplicated / slightly-tweaked loadustp() (load user segment table)
routines from all of the m68k ports using the shared pmap.  Instead, in
pmap_init(), set up a function pointer to the appropriate mmu_load_urp*()
function in mmu_subr.s.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Dec 31 21:59:24 2023 UTC (2 months, 4 weeks ago) by thorpej
Branch: MAIN
Changes since 1.84: +18 -2 lines
Diff to previous 1.84 (colored) to selected 1.5.2.2 (colored)

Provide a vtophys() function like other platforms do, and implement
kvtop() (which will be g/c'd shortly) in terms of it.

Revision 1.84 / (download) - annotate - [select for diffs], Thu Dec 28 15:33:12 2023 UTC (3 months ago) by thorpej
Branch: MAIN
Changes since 1.83: +6 -4 lines
Diff to previous 1.83 (colored) to selected 1.5.2.2 (colored)

Missed 2 68060-specific cases in previous.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Dec 28 01:33:05 2023 UTC (3 months ago) by thorpej
Branch: MAIN
Changes since 1.82: +17 -13 lines
Diff to previous 1.82 (colored) to selected 1.5.2.2 (colored)

Be more careful with the types used for PTEs.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Dec 26 17:48:38 2023 UTC (3 months ago) by thorpej
Branch: MAIN
Changes since 1.81: +9 -2 lines
Diff to previous 1.81 (colored) to selected 1.5.2.2 (colored)

Move active_pmap() and active_user_pmap() macros into pmap_motorola.c

Revision 1.81 / (download) - annotate - [select for diffs], Tue Dec 26 17:42:43 2023 UTC (3 months ago) by thorpej
Branch: MAIN
Changes since 1.80: +21 -15 lines
Diff to previous 1.80 (colored) to selected 1.5.2.2 (colored)

- G/C the PMAP_ACTIVATE() macro, just call loadustp() directly.
- In pmap_activate(), rather than checking for an idle LWP and skipping
  the loadustp() in that case, just check if the pmap being activate is
  the kernel pmap.  Also, KASSERT() that the specified lwp is the current
  lwp.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Dec 20 00:40:43 2023 UTC (3 months, 1 week ago) by thorpej
Branch: MAIN
Changes since 1.79: +2 -3 lines
Diff to previous 1.79 (colored) to selected 1.5.2.2 (colored)

Remove unnecessary <sys/malloc.h> include.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Sep 26 14:33:55 2023 UTC (6 months ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored) to selected 1.5.2.2 (colored)

TAB/space cleanup.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Sep 26 12:46:30 2023 UTC (6 months ago) by tsutsui
Branch: MAIN
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) to selected 1.5.2.2 (colored)

Remove trailing spaces and TABs.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Jul 31 17:11:41 2022 UTC (19 months, 4 weeks ago) by chs
Branch: 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
Changes since 1.76: +6 -2 lines
Diff to previous 1.76 (colored) to selected 1.5.2.2 (colored)

in pmap_enter_ptpage(), if we are allowed to fail then fail rather than
waiting for memory to be available.  when we are mapping an anon or uobj page
then we will be holding the lock for that page owner, and sleeping to wait
for memory with a page owner lock held is illegal because the pagedaemon
can wait for that lock, which will lead to deadlock.  fixes PR 56932.

Revision 1.76 / (download) - annotate - [select for diffs], Sat Apr 16 18:15:21 2022 UTC (23 months, 1 week ago) by andvar
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) to selected 1.5.2.2 (colored)

fix various typos in comments and log messages.

Revision 1.75 / (download) - annotate - [select for diffs], Tue Oct 12 08:36:28 2021 UTC (2 years, 5 months ago) by andvar
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.5.2.2 (colored)

fix various typos, mainly in comments.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Sat Apr 17 17:26:14 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.73: +7 -3 lines
Diff to previous 1.73 (colored) next main 1.74 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Apr 16 00:13:48 2021 UTC (2 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.73: +7 -3 lines
Diff to previous 1.73 (colored) to selected 1.5.2.2 (colored)

check the result value of pmap_extract() and panic if it fails.
this is a "should never fail" case, and GCC 10 noticed that it
allows an uninitialised variable use.

tested by rin@ on amiga and mac68k.

Revision 1.72.6.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:28 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) next main 1.73 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Feb 1 19:02:27 2021 UTC (3 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: thorpej-futex-base
Branch point for: thorpej-cfargs
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.5.2.2 (colored)

"as appropos" -> "as appropriate" in comments

Revision 1.70.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:43 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.70.4.1: +12 -12 lines
Diff to previous 1.70.4.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored) to selected 1.5.2.2 (colored)

Merge changes from current as of 20200406

Revision 1.71.6.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:18:26 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.71: +12 -12 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.5.2.2 (colored)

Sync with head.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Feb 23 15:46:39 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Branch point for: thorpej-futex
Changes since 1.71: +12 -12 lines
Diff to previous 1.71 (colored) to selected 1.5.2.2 (colored)

UVM locking changes, proposed on tech-kern:

- Change the lock on uvm_object, vm_amap and vm_anon to be a RW lock.
- Break v_interlock and vmobjlock apart.  v_interlock remains a mutex.
- Do partial PV list locking in the x86 pmap.  Others to follow later.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:26 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:36 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) next main 1.71 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.71 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:25 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.5.2.2 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.69.8.1 / (download) - annotate - [select for diffs], Tue Feb 27 09:07:32 2018 UTC (6 years, 1 month ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.69: +31 -15 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.5.2.2 (colored)

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.70 / (download) - annotate - [select for diffs], Sat Jan 27 23:07:36 2018 UTC (6 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, 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
Changes since 1.69: +31 -15 lines
Diff to previous 1.69 (colored) to selected 1.5.2.2 (colored)

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.66.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:24 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.66.2.1: +24 -15 lines
Diff to previous 1.66.2.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored) to selected 1.5.2.2 (colored)

update from HEAD

Revision 1.67.6.1 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:14 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.67: +26 -17 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD

Revision 1.67.10.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:20 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.67: +26 -17 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.5.2.2 (colored)

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

Revision 1.69 / (download) - annotate - [select for diffs], Fri Dec 23 07:15:27 2016 UTC (7 years, 3 months ago) by cherry
Branch: 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, pgoyette-localcount-20170107, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.68: +25 -16 lines
Diff to previous 1.68 (colored) to selected 1.5.2.2 (colored)

"Make NetBSD great again!"

Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Dec 22 14:47:58 2016 UTC (7 years, 3 months ago) by cherry
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) to selected 1.5.2.2 (colored)

switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:11 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.5.2.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.63.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:39:56 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.63.2.3: +3 -3 lines
Diff to previous 1.63.2.3 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored) to selected 1.5.2.2 (colored)

sync with head.

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

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

Revision 1.66.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:16 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) next main 1.67 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.67 / (download) - annotate - [select for diffs], Fri Oct 25 20:51:14 2013 UTC (10 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914
Branch point for: pgoyette-localcount, nick-nhusb
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.5.2.2 (colored)

Mark a potentialy unused variable

Revision 1.65.8.1 / (download) - annotate - [select for diffs], Sat Sep 7 16:16:10 2013 UTC (10 years, 6 months ago) by bouyer
Branch: netbsd-6-1
CVS Tags: netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE
Changes since 1.65: +5 -3 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.5.2.2 (colored)

Pull up following revision(s) (requested by rkujawa in ticket #935):
	sys/arch/amiga/amiga/amiga_init.c: revision 1.127
	sys/arch/m68k/m68k/pmap_motorola.c: revision 1.66
Set user page table base address dynamically on amiga. This unbreaks =
machines
with large Zorro III I/O spaces. Patch originally by Michael L. Hitch.
Test on an A4000.
=20
=20

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Sat Sep 7 16:16:00 2013 UTC (10 years, 6 months ago) by bouyer
Branch: netbsd-6
Changes since 1.65: +5 -3 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.5.2.2 (colored)

Pull up following revision(s) (requested by rkujawa in ticket #935):
	sys/arch/amiga/amiga/amiga_init.c: revision 1.127
	sys/arch/m68k/m68k/pmap_motorola.c: revision 1.66
Set user page table base address dynamically on amiga. This unbreaks =
machines
with large Zorro III I/O spaces. Patch originally by Michael L. Hitch.
Test on an A4000.
=20
=20

Revision 1.63.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 17:19:54 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.63.2.2: +5 -3 lines
Diff to previous 1.63.2.2 (colored) to branchpoint 1.63 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.66 / (download) - annotate - [select for diffs], Mon Jul 9 19:23:45 2012 UTC (11 years, 8 months ago) by rkujawa
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.65: +5 -3 lines
Diff to previous 1.65 (colored) to selected 1.5.2.2 (colored)

Set user page table base address dynamically on amiga. This unbreaks machines
with large Zorro III I/O spaces. Patch originally by Michael L. Hitch.
Test on an A4000.

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:36 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.63.2.1: +3 -3 lines
Diff to previous 1.63.2.1 (colored) to branchpoint 1.63 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.64.4.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:32:30 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored) next main 1.65 (colored) to selected 1.5.2.2 (colored)

merge to -current.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jan 27 19:48:38 2012 UTC (12 years, 2 months ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, 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-1-RELEASE, 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: netbsd-6-1, netbsd-6
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored) to selected 1.5.2.2 (colored)

extending vmem(9) to be able to allocated resources for it's own needs.
simplifying uvm_map handling (no special kernel entries anymore no relocking)
make malloc(9) a thin wrapper around kmem(9)
(with private interface for interrupt safety reasons)

releng@ acknowledged

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Thu Nov 10 14:31:41 2011 UTC (12 years, 4 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.64 / (download) - annotate - [select for diffs], Thu Nov 3 14:39:05 2011 UTC (12 years, 4 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.5.2.2 (colored)

Use pool_allocator_meta rather than pool_allocator_nointr to allocate
struct pv_entry pool in the previous fix for PR port-m68k/45519.
Per comment from yamt@ on source-changes-d@:
http://mail-index.NetBSD.org/source-changes-d/2011/10/31/msg004211.html

Revision 1.63 / (download) - annotate - [select for diffs], Sat Oct 29 18:26:19 2011 UTC (12 years, 5 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.62: +12 -145 lines
Diff to previous 1.62 (colored) to selected 1.5.2.2 (colored)

Use pool(9) for struct pv_entry allocations rather than
uvm_km_alloc(9)/uvm_km_free(9) and ancient homegrown pv_page_info structures.

Calling uvm_km_free(9) during pmap_remove(9) could cause rw_lock error
in uvm_unmap1() as noted in PR port-m68k/45519.

NetBSD/x68k (both real X68030 and XM6i emulator) still gets weird panic
(corrupted kernel stack pointer?) on some heavy load:
---
panic: MMU fault
Stopped in pid 363.1 (X68k) at  netbsd:cpu_Debugger+0x6:	unlk	a6
db> tr
cpu_Debugger(4012004,8,1cbb528,2a618e0,2a5b000) + 6
db>
---
but it also occurs without this change so there might be some more bugs
in m68k pmap...

Revision 1.60.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:18 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.60: +15 -21 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.5.2.2 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:43 2011 UTC (12 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.61: +12 -12 lines
Diff to previous 1.61 (colored) to selected 1.5.2.2 (colored)

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.55.4.4 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:00 2011 UTC (12 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.55.4.3: +3 -9 lines
Diff to previous 1.55.4.3 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:05:57 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.60: +5 -11 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Jun 3 17:03:52 2011 UTC (12 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.60: +5 -11 lines
Diff to previous 1.60 (colored) to selected 1.5.2.2 (colored)

- remove simple_lock(9) and use atomic_ops(3) to account pmap reference count,
  perrequest from rmind@
- while here no need to export struct pmap on sun2/sun3/sun3x

No particular problem for a week on hp300 and sun3x kernels with disabled
tcp_vtw which has been broken for a month on low memory machines.

Revision 1.55.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:50:54 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.55.4.2: +32 -31 lines
Diff to previous 1.55.4.2 (colored) to branchpoint 1.55 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.60 / (download) - annotate - [select for diffs], Fri Jan 14 02:06:27 2011 UTC (13 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base7, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr, cherry-xenmp
Changes since 1.59: +4 -3 lines
Diff to previous 1.59 (colored) to selected 1.5.2.2 (colored)

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

Various #include fixes and review by matt@.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jan 6 13:49:17 2011 UTC (13 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.58: +23 -23 lines
Diff to previous 1.58 (colored) to selected 1.5.2.2 (colored)

Use #ifdef CACHE_HAVE_VAC rather than #ifdef M68K_MMU_HP where
the pmap code indends.
(though currently only MMU_HP machines have VAC in pmap_motorola ports)

Revision 1.58 / (download) - annotate - [select for diffs], Sun Jan 2 05:21:11 2011 UTC (13 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.5.2.2 (colored)

Make pmap_aliasmask unsigned and declare it in <m68k/pmap_motorola.h>.

XXX: does anyone still have working HP320 or HP350 with 020+HP_MMU+VAC?

Revision 1.57 / (download) - annotate - [select for diffs], Wed Nov 10 09:27:22 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: MAIN
CVS Tags: uebayasi-xip-base6
Changes since 1.56: +8 -8 lines
Diff to previous 1.56 (colored) to selected 1.5.2.2 (colored)

Use more VM_PHYSMEM_*() accessors.  No functional changes.

Revision 1.55.2.7 / (download) - annotate - [select for diffs], Sat Nov 6 06:10:55 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.55.2.6: +1 -1 lines
Diff to previous 1.55.2.6 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.5.2.2 (colored)

Fix build.

Revision 1.55.2.6 / (download) - annotate - [select for diffs], Thu Nov 4 08:47:36 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.55.2.5: +2 -1 lines
Diff to previous 1.55.2.5 (colored) to branchpoint 1.55 (colored) to selected 1.5.2.2 (colored)

Split physical device segment pages from "managed" to "managed
device".  Cache that information as a flag PG_DEVICE so that callers
don't need to walk physsegs everytime.

Remove PQ_FIXED, which means that page daemon doesn't need to know
device segment pages at all.  But still fault handlers need to know
them.

I think this is what I can do best now.

Revision 1.55.2.5 / (download) - annotate - [select for diffs], Sun Oct 31 03:46:17 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.55.2.4: +1 -1 lines
Diff to previous 1.55.2.4 (colored) to branchpoint 1.55 (colored) to selected 1.5.2.2 (colored)

We already have a flag PMAP_NOCACHE.  s/PMAP_UNMANAGED/PMAN_NOCACHE/.
Pointed out by Chuck Silvers, thanks.

Revision 1.55.2.4 / (download) - annotate - [select for diffs], Sat Oct 30 08:41:08 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.55.2.3: +13 -0 lines
Diff to previous 1.55.2.3 (colored) to branchpoint 1.55 (colored) to selected 1.5.2.2 (colored)

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.55.2.3 / (download) - annotate - [select for diffs], Tue Aug 17 06:44:48 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.55.2.2: +2 -0 lines
Diff to previous 1.55.2.2 (colored) to branchpoint 1.55 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.36.2.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:52:19 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.36.2.5: +4 -2 lines
Diff to previous 1.36.2.5 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.55.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:22 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.55.4.1: +4 -2 lines
Diff to previous 1.55.4.1 (colored) to branchpoint 1.55 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jun 6 04:50:07 2010 UTC (13 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.55: +4 -2 lines
Diff to previous 1.55 (colored) to selected 1.5.2.2 (colored)

fix PR 6724 - convert m68k options to defflag's.  this means that
M680[12346] are now available from opt_m68k_arch.h.  FPSP meantioned
in the PR has already been fixed, and i could not find any more.

i built these kernels to ensure i did not break their builds:

amiga: GENERIC DRACO
atari: HADES FALCON MILAN-PCIIDE
mac68k: GENERIC
sun2: GENERIC
sun3: GENERIC GENERIC3X
cesfic: attempted GENERIC, does not build due to lack of machine/bus.h
hp300: GENERIC
luna68k: GENERIC
mvme68k: GENERIC
news68k: GENERIC
next68k: GENERIC
x68k: GENERIC

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Wed Apr 28 08:31:06 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.55.2.1: +6 -6 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored) to selected 1.5.2.2 (colored)

Always use struct vm_physseg *vm_physmem_ptrs[] in MD code.

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Tue Apr 27 07:19:28 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) to selected 1.5.2.2 (colored)

Support PMAP_UNMANAGED in some pmaps.

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

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:03 2010 UTC (14 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.55: +12 -12 lines
Diff to previous 1.55 (colored) to selected 1.5.2.2 (colored)

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.36.2.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:02:34 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.36.2.4: +102 -71 lines
Diff to previous 1.36.2.4 (colored) to branchpoint 1.36 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.55 / (download) - annotate - [select for diffs], Fri Dec 11 18:28:35 2009 UTC (14 years, 3 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.54: +12 -2 lines
Diff to previous 1.54 (colored) to selected 1.5.2.2 (colored)

Move uvm_setpagesize() calls from locore.s to pmap_bootstrap_finalize().
Also explicitly set uvmexp.pagesize to prepare 8KB/page settings.

XXX: There is #ifdef !defined(amiga) && !defined(atari) workaround
XXX: because they have different pmap initialization functions.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Dec 6 06:41:30 2009 UTC (14 years, 3 months ago) by tsutsui
Branch: MAIN
Changes since 1.53: +32 -2 lines
Diff to previous 1.53 (colored) to selected 1.5.2.2 (colored)

Move initialization of protection_codes[] and kernel_pmap()
from MD pmap bootstrap sources to common pmap_bootstrap_finalize().

Tested on atari, hp300, mac68k, and news68k.

XXX: Why is protection_codes[] array initialized at run time?

Revision 1.53 / (download) - annotate - [select for diffs], Sun Dec 6 00:33:58 2009 UTC (14 years, 3 months ago) by tsutsui
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) to selected 1.5.2.2 (colored)

pm_stfree in struct pmap is a bitmap value so make it unsigned.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Dec 2 15:47:45 2009 UTC (14 years, 3 months ago) by tsutsui
Branch: MAIN
Changes since 1.51: +20 -2 lines
Diff to previous 1.51 (colored) to selected 1.5.2.2 (colored)

Add a common pmap_bootstrap_finalize() function which initializes
lwp0 uarea, curlwp, and curpcb after MMU is turned on, using
lwp0uarea variable saved during pmap_bootstrap() (or equivalent functions)
for pmap_motorola based ports.  Discussed with rmind@.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Nov 23 00:11:44 2009 UTC (14 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.50: +2 -3 lines
Diff to previous 1.50 (colored) to selected 1.5.2.2 (colored)

Use lwp_getpcb() on m68k ports, clean from struct user usage.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Nov 7 07:27:45 2009 UTC (14 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) to selected 1.5.2.2 (colored)

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.49 / (download) - annotate - [select for diffs], Thu Oct 22 19:50:55 2009 UTC (14 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.48: +41 -64 lines
Diff to previous 1.48 (colored) to selected 1.5.2.2 (colored)

Simplify pmap_remove() a little by avoiding pmap_do_remove() layer, since
possibility to skip wired mappings is not needed anymore.  Apart from that,
no functional differences are intended.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:00 2009 UTC (14 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.47: +6 -8 lines
Diff to previous 1.47 (colored) to selected 1.5.2.2 (colored)

Remove uarea swap-out functionality:

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

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

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

Revision 1.47 / (download) - annotate - [select for diffs], Sun Oct 11 20:37:47 2009 UTC (14 years, 5 months ago) by mhitch
Branch: MAIN
Changes since 1.46: +4 -5 lines
Diff to previous 1.46 (colored) to selected 1.5.2.2 (colored)

Fix DEBUG build - pv_flags does not exist anymore.

Revision 1.36.2.4 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:40 2009 UTC (14 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.36.2.3: +78 -65 lines
Diff to previous 1.36.2.3 (colored) to branchpoint 1.36 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Wed Aug 26 00:30:02 2009 UTC (14 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8
Changes since 1.45: +78 -65 lines
Diff to previous 1.45 (colored) to selected 1.5.2.2 (colored)

Minor tweak to the pv_table management in the Hibler-derived m68k pmaps:
The head of the list is now a pv_header, which contains the first pv_entry
as well as a 16-bit attributes field (replaces the pmap_attributes array
plus the pv_entry::pv_flags field) as a 16-bit count of caller-specified
cache-inhibited mappings.

Tested on hp300 (shared pmap_motorola.c), changes to atari and amiga copies
are purely mechanical.

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:46:28 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.36.2.2: +3 -4 lines
Diff to previous 1.36.2.2 (colored) to branchpoint 1.36 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Aug 18 18:06:53 2009 UTC (14 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7
Changes since 1.44: +3 -4 lines
Diff to previous 1.44 (colored) to selected 1.5.2.2 (colored)

Add a real API for testing if a page is a managed page, and adjust callers
to stop relying on vm_physseg_find() for this purpose.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:18:00 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.42: +4 -5 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

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

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:11:26 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.36.2.1: +40 -35 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.39.4.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:34:18 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.39.4.1: +4 -5 lines
Diff to previous 1.39.4.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Apr 21 21:29:59 2009 UTC (14 years, 11 months ago) by cegger
Branch: 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
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored) to selected 1.5.2.2 (colored)

change pmap flags argument from int to u_int.
discussed with christos@ on source-changes-d@

Revision 1.43 / (download) - annotate - [select for diffs], Sat Mar 14 21:04:11 2009 UTC (15 years ago) by dsl
Branch: MAIN
Changes since 1.42: +3 -4 lines
Diff to previous 1.42 (colored) to selected 1.5.2.2 (colored)

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.39.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:16:24 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.39: +5 -4 lines
Diff to previous 1.39 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.35.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:11 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.35.6.2: +3 -2 lines
Diff to previous 1.35.6.2 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Jan 17 07:17:36 2009 UTC (15 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.5.2.2 (colored)

Move extern decls for Sysseg, Sysptmap, Sysptsize, mem_size, virtual_avail,
virtual_end, and protection_codes[] to common <m68k/pmap_motorola.h>,
and also make protection_codes[] unsigned.

XXX: avail_start and avail_end should also be moved, but it causes
XXX: -Wshadow warnings in uvm/uvm_page.c:uvm_page_physload() and
XXX: I don't have a good idea of alternative names for now.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Dec 28 05:15:59 2008 UTC (15 years, 3 months ago) by tsutsui
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored) to selected 1.5.2.2 (colored)

Use the global kernel_pmap_ptr pointer in each MD pmap_bootstrap.c
(where MMU is not enabled yet) and make kernel_pmap_store static again.
Also consistently use uintptr_t on address conversion in RELOC() macro.

Tested on hp300 (PA != VA) and news68k (PA == VA).

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:13:16 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.5.2.2 (colored)

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

Revision 1.40 / (download) - annotate - [select for diffs], Wed Dec 10 17:13:53 2008 UTC (15 years, 3 months ago) by tsutsui
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored) to selected 1.5.2.2 (colored)

Prepare kernel_pmap_ptr as well as other m68k ports which have own pmap.c.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:33:29 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.37: +35 -30 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.5.2.2 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Thu Sep 4 08:46:43 2008 UTC (15 years, 6 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.21: +32 -11 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.5.2.2 (colored)

Sync with netbsd-4.

Revision 1.37.4.2 / (download) - annotate - [select for diffs], Thu Jul 3 18:37:54 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.37.4.1: +15 -15 lines
Diff to previous 1.37.4.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored) to selected 1.5.2.2 (colored)

Sync with head.

Revision 1.35.6.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:32:58 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.35.6.1: +33 -28 lines
Diff to previous 1.35.6.1 (colored) to branchpoint 1.35 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Jun 28 13:22:14 2008 UTC (15 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, 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, 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, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, haad-dm
Changes since 1.38: +15 -15 lines
Diff to previous 1.38 (colored) to selected 1.5.2.2 (colored)

- use TAILQ macro
- use NULL rather than 0 for pointers
No binary change.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:17 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.37: +22 -17 lines
Diff to previous 1.37 (colored) to selected 1.5.2.2 (colored)

Sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jun 27 13:05:12 2008 UTC (15 years, 9 months ago) by tsutsui
Branch: MAIN
Changes since 1.37: +22 -17 lines
Diff to previous 1.37 (colored) to selected 1.5.2.2 (colored)

Remove ({ }) gcc extensions and use static inline functions instead.

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Sun Jun 8 20:10:00 2008 UTC (15 years, 9 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.21: +32 -11 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.5.2.2 (colored)

Pull up following revision(s) (requested by hauke in ticket #1158):
	sys/arch/m68k/m68k/pmap_motorola.c: revision 1.22
Allow pmap_enter_ptpage to fail, sometimes. Pass WAIT/NOWAIT flags and
fix some obvious locking problems. This allows us to run a LOCKDEBUG
kernel now.
No objection from mhitch and chs.

Revision 1.35.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:22 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.35: +12 -19 lines
Diff to previous 1.35 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.35.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:22 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.35: +12 -19 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:22:44 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.36: +2 -9 lines
Diff to previous 1.36 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:27 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.36: +2 -9 lines
Diff to previous 1.36 (colored) to selected 1.5.2.2 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.36 / (download) - annotate - [select for diffs], Sun Apr 27 12:34:54 2008 UTC (15 years, 11 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.35: +12 -12 lines
Diff to previous 1.35 (colored) to selected 1.5.2.2 (colored)

Use mutex(9) for uvm_kernel_object.  From Greg Oster.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:45 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.34: +2 -43 lines
Diff to previous 1.34 (colored) next main 1.35 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.17.2.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:37:22 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.17.2.3: +2 -43 lines
Diff to previous 1.17.2.3 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.33.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:47:02 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.33.6.1: +2 -43 lines
Diff to previous 1.33.6.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.5.2.2 (colored)

sync with HEAD

Revision 1.34.8.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:48:32 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.34: +2 -43 lines
Diff to previous 1.34 (colored) next main 1.35 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD

Revision 1.35 / (download) - annotate - [select for diffs], Mon Dec 31 13:38:51 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.34: +2 -43 lines
Diff to previous 1.34 (colored) to selected 1.5.2.2 (colored)

Remove COMPAT_HPUX.

Revision 1.33.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:18:13 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored) to selected 1.5.2.2 (colored)

sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Wed Oct 17 19:55:12 2007 UTC (16 years, 5 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs, bouyer-xeni386
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored) to selected 1.5.2.2 (colored)

Merge the ppcoea-renovation branch to HEAD.

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

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

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

Revision 1.29.4.3 / (download) - annotate - [select for diffs], Wed Oct 3 19:24:04 2007 UTC (16 years, 5 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.29.4.2: +16 -16 lines
Diff to previous 1.29.4.2 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD

Revision 1.17.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:27:14 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.17.2.2: +24 -29 lines
Diff to previous 1.17.2.2 (colored) to branchpoint 1.17 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.27.2.5 / (download) - annotate - [select for diffs], Mon Aug 20 18:38:21 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.27.2.4: +16 -16 lines
Diff to previous 1.27.2.4 (colored) next main 1.28 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:47:27 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.32: +15 -15 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Aug 7 18:05:23 2007 UTC (16 years, 7 months ago) by matt
Branch: matt-mips64
Changes since 1.32: +15 -15 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jul 23 19:21:03 2007 UTC (16 years, 8 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, matt-mips64-base, jmcneill-pm, hpcarm-cleanup, bouyer-xenamd64
Branch point for: matt-armv6
Changes since 1.32: +15 -15 lines
Diff to previous 1.32 (colored) to selected 1.5.2.2 (colored)

Same change as -r1.133 of src/sys/arch/amiga/amiga/pmap.c :
  As per hint from ad@, change uvm.kernel_object to uvm_kernel_object,
  to adapt to the recent uvm changes.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jul 16 23:48:05 2007 UTC (16 years, 8 months ago) by macallan
Branch: MAIN
CVS Tags: nick-csl-alignment-base
Branch point for: nick-csl-alignment, matt-mips64
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) to selected 1.5.2.2 (colored)

change pmap_phys_address()s parameter to paddr_t since that's what it gets
fed from mmap*() anyway
approved by gimpy

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:00:25 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.28: +5 -8 lines
Diff to previous 1.28 (colored) next main 1.29 (colored) to selected 1.5.2.2 (colored)

Sync with head.

Revision 1.29.4.2 / (download) - annotate - [select for diffs], Tue Jun 26 18:12:49 2007 UTC (16 years, 9 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.29.4.1: +2 -6 lines
Diff to previous 1.29.4.1 (colored) to branchpoint 1.29 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.27.2.4 / (download) - annotate - [select for diffs], Sat Jun 9 23:55:15 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.27.2.3: +2 -6 lines
Diff to previous 1.27.2.3 (colored) to selected 1.5.2.2 (colored)

Sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jun 7 15:54:09 2007 UTC (16 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.30: +2 -6 lines
Diff to previous 1.30 (colored) to selected 1.5.2.2 (colored)

Enable _pmap_set_page_cacheable(), _pmap_set_page_cacheinhibit() and
_pmap_page_is_cacheable() on all pmap_motorola.c ports and add
BUS_DMA_COHERENT support (from mvme68k) to common m68k bus_dma.c.

Tested with (not-yet-integrated) MI Sonic Ethernet driver on mac68k
http://mail-index.netbsd.org/port-mac68k/2007/06/07/0000.html
and ok'ed by thorpej.

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Sun May 27 12:27:39 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.27.2.2: +4 -3 lines
Diff to previous 1.27.2.2 (colored) to selected 1.5.2.2 (colored)

Sync with head.

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Tue May 22 17:27:04 2007 UTC (16 years, 10 months ago) by matt
Branch: ppcoea-renovation
Changes since 1.29: +4 -3 lines
Diff to previous 1.29 (colored) to selected 1.5.2.2 (colored)

Update to HEAD.

Revision 1.30 / (download) - annotate - [select for diffs], Fri May 18 01:46:40 2007 UTC (16 years, 10 months ago) by mhitch
Branch: MAIN
Changes since 1.29: +4 -3 lines
Diff to previous 1.29 (colored) to selected 1.5.2.2 (colored)

Common m68k changes for idlelwp.

Revision 1.22.2.4 / (download) - annotate - [select for diffs], Sun Apr 15 16:02:49 2007 UTC (16 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.22.2.3: +3 -3 lines
Diff to previous 1.22.2.3 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Tue Apr 10 13:23:07 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.27.2.1: +3 -3 lines
Diff to previous 1.27.2.1 (colored) to selected 1.5.2.2 (colored)

Sync with head.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Apr 5 13:17:11 2007 UTC (16 years, 11 months ago) by tnn
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic
Branch point for: ppcoea-renovation
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored) to selected 1.5.2.2 (colored)

protectoin -> protection

Revision 1.22.2.3 / (download) - annotate - [select for diffs], Sat Mar 24 14:54:47 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.22.2.2: +3 -3 lines
Diff to previous 1.22.2.2 (colored) to branchpoint 1.22 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:00 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored) to selected 1.5.2.2 (colored)

Sync with head.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:25 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored) to selected 1.5.2.2 (colored)

Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:48:54 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.22.2.1: +6 -8 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Mar 4 11:09:39 2007 UTC (17 years, 1 month ago) by tsutsui
Branch: MAIN
Branch point for: vmlocking
Changes since 1.26: +2 -4 lines
Diff to previous 1.26 (colored) to selected 1.5.2.2 (colored)

Move declarations of CADDR1 and CADDR2 from m68k/pmap_motorola.c
to <m68k/pmap_motorola.h>.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Mar 4 06:00:05 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.25: +7 -7 lines
Diff to previous 1.25 (colored) to selected 1.5.2.2 (colored)

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

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:51:58 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.22: +51 -51 lines
Diff to previous 1.22 (colored) to selected 1.5.2.2 (colored)

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

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Mon Feb 26 09:07:13 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.17.2.1: +51 -51 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Feb 22 17:09:44 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.24: +35 -35 lines
Diff to previous 1.24 (colored) to selected 1.5.2.2 (colored)

TRUE -> true, FALSE -> false

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 22 13:50:36 2007 UTC (17 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored) to selected 1.5.2.2 (colored)

Fix lossage on bool changes.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Feb 21 22:59:46 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.22: +23 -23 lines
Diff to previous 1.22 (colored) to selected 1.5.2.2 (colored)

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.20.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:00:52 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.20.4.1: +32 -11 lines
Diff to previous 1.20.4.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored) to selected 1.5.2.2 (colored)

Sync with head.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Dec 30 20:46:25 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.17: +146 -199 lines
Diff to previous 1.17 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Dec 30 01:28:57 2006 UTC (17 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.21: +32 -11 lines
Diff to previous 1.21 (colored) to selected 1.5.2.2 (colored)

Allow pmap_enter_ptpage to fail, sometimes. Pass WAIT/NOWAIT flags and
fix some obvious locking problems. This allows us to run a LOCKDEBUG
kernel now.
No objection from mhitch and chs.

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:29:23 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.20: +6 -5 lines
Diff to previous 1.20 (colored) to selected 1.5.2.2 (colored)

Sync with head.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Sat Sep 23 22:58:33 2006 UTC (17 years, 6 months ago) by snj
Branch: abandoned-netbsd-4
Changes since 1.20: +6 -5 lines
Diff to previous 1.20 (colored) next main 1.21 (colored) to selected 1.5.2.2 (colored)

Pull up following revision(s) (requested by mhitch in ticket #177):
	sys/arch/m68k/m68k/pmap_motorola.c: revision 1.21
Common m68k pmap has same problem with 68060 after 17 month old uvm changes.
Tested and verified on my Amiga (yes, I'm hoping to switch amiga to using
the common pmp_motorola.c).
Uvm changes over 17 months ago resulted in the 68040/060 segment table
page being entered with pmap_kenter(), which does not record the mapping
in the pv table.  Attempting to inhibit caching of that page as required
by the 68060 hardware no longer changes the PTE and caused varying degrees
of multiple faulting, sometimes resulting in an unusable system.  Apparently
very few people attempted to run a 68060 based system since that change.
Fix to to change the caching bits directly rather than using pmap_changebit().

Revision 1.21 / (download) - annotate - [select for diffs], Sat Sep 16 17:31:13 2006 UTC (17 years, 6 months ago) by mhitch
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, wrstuden-fixsa-base-1, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.20: +6 -5 lines
Diff to previous 1.20 (colored) to selected 1.5.2.2 (colored)

Common m68k pmap has same problem with 68060 after 17 month old uvm changes.
Tested and verified on my Amiga (yes, I'm hoping to switch amiga to using
the common pmp_motorola.c).

Uvm changes over 17 months ago resulted in the 68040/060 segment table
page being entered with pmap_kenter(), which does not record the mapping
in the pv table.  Attempting to inhibit caching of that page as required
by the 68060 hardware no longer changes the PTE and caused varying degrees
of multiple faulting, sometimes resulting in an unusable system.  Apparently
very few people attempted to run a 68060 based system since that change.
Fix to to change the caching bits directly rather than using pmap_changebit().

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:40:59 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.18: +114 -189 lines
Diff to previous 1.18 (colored) next main 1.19 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.18.8.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:42:01 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.18.8.1: +112 -187 lines
Diff to previous 1.18.8.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored) to selected 1.5.2.2 (colored)

sync with head

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jul 22 06:37:27 2006 UTC (17 years, 8 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base
Branch point for: newlock2, abandoned-netbsd-4
Changes since 1.19: +112 -187 lines
Diff to previous 1.19 (colored) to selected 1.5.2.2 (colored)

remove __P(), ANSIfy, KNF, use pmap_t rather than struct pmap *

Revision 1.18.16.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:48:56 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored) next main 1.19 (colored) to selected 1.5.2.2 (colored)

Merge from HEAD.

Revision 1.18.8.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:44:54 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored) to selected 1.5.2.2 (colored)

sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 25 14:19:56 2006 UTC (17 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored) to selected 1.5.2.2 (colored)

XXX: Appease gcc4 -Wuninitialized warnings.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 11 12:17:59 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb, gdamore-uart
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.5.2.2 (colored)

merge ktrace-lwp.

Revision 1.5.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 13:57:10 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.5.2.6: +17 -16 lines
Diff to previous 1.5.2.6 (colored) next main 1.6 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD. Here we go again...

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 3 08:55:33 2005 UTC (18 years, 10 months ago) by scw
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored) to selected 1.5.2.2 (colored)

Fix const fallout when DEBUG is defined.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jun 2 16:47:42 2005 UTC (18 years, 10 months ago) by tsutsui
Branch: MAIN
Changes since 1.15: +10 -9 lines
Diff to previous 1.15 (colored) to selected 1.5.2.2 (colored)

Fix one more shadow warning in #ifdef DIAGNOSTIC.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jun 2 14:56:58 2005 UTC (18 years, 10 months ago) by tsutsui
Branch: MAIN
Changes since 1.14: +8 -8 lines
Diff to previous 1.14 (colored) to selected 1.5.2.2 (colored)

Fix a shadow warning.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:14 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.12: +20 -47 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.5.2.2 (colored)

sync with -current

Revision 1.5.2.6 / (download) - annotate - [select for diffs], Fri Apr 1 14:27:54 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.5.2.5: +19 -45 lines
Diff to previous 1.5.2.5 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Apr 1 11:59:32 2005 UTC (19 years ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.13: +19 -45 lines
Diff to previous 1.13 (colored) to selected 1.5.2.2 (colored)

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.12.4.5 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:05 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.12.4.4: +3 -4 lines
Diff to previous 1.12.4.4 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored) to selected 1.5.2.2 (colored)

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

Revision 1.12.4.4 / (download) - annotate - [select for diffs], Wed Feb 23 07:48:23 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.12.4.3: +2 -23 lines
Diff to previous 1.12.4.3 (colored) to branchpoint 1.12 (colored) to selected 1.5.2.2 (colored)

change mac68k's kernel address space layout in order to simplify
interaction between upper layer of the vm during bootstrap.
- move Sysmap to the end of address space.
- move IOBase etc immediately after proc0 uarea.
- tweak virtual_avail/end accordingly.

tested by Chuck Silvers, on his quadra 950.
XXX this breaks other m68k platforms.  i'll fix them later.

Revision 1.12.4.3 / (download) - annotate - [select for diffs], Fri Feb 18 14:38:29 2005 UTC (19 years, 1 month ago) by chs
Branch: yamt-km
Changes since 1.12.4.2: +2 -7 lines
Diff to previous 1.12.4.2 (colored) to branchpoint 1.12 (colored) to selected 1.5.2.2 (colored)

with the new km API, we must longer explicitly unmap and free the
st_map pages, so don't.  also, use the correct km type for freeing the
st_map space on amiga.

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Tue Feb 15 21:32:42 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.5.2.4: +3 -4 lines
Diff to previous 1.5.2.4 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 14 02:15:43 2005 UTC (19 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-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
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored) to selected 1.5.2.2 (colored)

fix an off-by-on in pmap_check_wiring():  we increment the PTP refcount
before calling this, so it's ok to see the max value here.

Revision 1.12.4.2 / (download) - annotate - [select for diffs], Thu Jan 27 14:30:33 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.12.4.1: +4 -6 lines
Diff to previous 1.12.4.1 (colored) to branchpoint 1.12 (colored) to selected 1.5.2.2 (colored)

follow uvm_km_pgremove prototype change.

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Wed Jan 26 12:10:35 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.12: +17 -15 lines
Diff to previous 1.12 (colored) to selected 1.5.2.2 (colored)

convert arch/m68k to new apis.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Mon Jan 17 19:29:29 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.5.2.3: +3 -3 lines
Diff to previous 1.5.2.3 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jan 1 21:02:13 2005 UTC (19 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.5.2.2 (colored)

introduce vm_map_kernel, a subclass of vm_map, and
move some kernel-only members of vm_map to it.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:17:56 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.5.2.2: +2 -2 lines
Diff to previous 1.5.2.2 (colored)

Fix the sync with head I botched.

Revision 1.5.2.2 / (download) - annotate - [selected], Sat Sep 18 14:36:38 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.5.2.1: +0 -0 lines
Diff to previous 1.5.2.1 (colored)

Sync with HEAD.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:36:59 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.5: +14 -18 lines
Diff to previous 1.5 (colored) to selected 1.5.2.2 (colored)

Sync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 1 17:16:30 2003 UTC (20 years, 5 months ago) by he
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio1-base, kent-audio1
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored) to selected 1.5.2.2 (colored)

Based on the historic hp300 pmap, initialize firstpage to TRUE, and
negate that after processing the first page.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Nov 1 15:32:47 2003 UTC (20 years, 5 months ago) by he
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) to selected 1.5.2.2 (colored)

Initialize needcflush to FALSE in pmap_do_remove().

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 28 20:43:00 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +10 -15 lines
Diff to previous 1.8 (colored) to selected 1.5.2.2 (colored)

Remove bogus initializer.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 27 02:03:10 2003 UTC (20 years, 5 months ago) by cl
Branch: MAIN
Changes since 1.7: +6 -2 lines
Diff to previous 1.7 (colored) to selected 1.5.2.2 (colored)

initialize uninitialized

Revision 1.7 / (download) - annotate - [select for diffs], Sat Sep 27 20:01:59 2003 UTC (20 years, 6 months ago) by cl
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) to selected 1.5.2.2 (colored)

Cast through (void *) to appease gcc3.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Aug 7 16:28:17 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.5: +3 -7 lines
Diff to previous 1.5 (colored) to selected 1.5.2.2 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.5 / (download) - annotate - [select for diffs], Sat May 10 21:10:32 2003 UTC (20 years, 10 months ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.4: +64 -50 lines
Diff to previous 1.4 (colored) to selected 1.5.2.2 (colored)

Back out the following chagne:
    http://mail-index.netbsd.org/source-changes/2003/05/08/0068.html

There were some side-effects that I didn't anticipate, and fixing them
is proving to be more difficult than I thought, do just eject for now.
Maybe one day we can look at this again.

Fixes PR kern/21517.

Revision 1.4 / (download) - annotate - [select for diffs], Thu May 8 18:13:18 2003 UTC (20 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.3: +52 -66 lines
Diff to previous 1.3 (colored) to selected 1.5.2.2 (colored)

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.3 / (download) - annotate - [select for diffs], Wed Apr 2 00:00:46 2003 UTC (21 years ago) by thorpej
Branch: MAIN
Changes since 1.2: +20 -22 lines
Diff to previous 1.2 (colored) to selected 1.5.2.2 (colored)

Use PAGE_SIZE rather than NBPG.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jan 17 23:18:29 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +9 -9 lines
Diff to previous 1.1 (colored) to selected 1.5.2.2 (colored)

Merge the nathanw_sa branch.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Nov 13 15:35:36 2002 UTC (21 years, 4 months ago) by skrll
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.1.2.2: +9 -9 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.5.2.2 (colored)

LWPify. Taken from the work done on the machine specific files.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Nov 11 21:59:41 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.1: +3049 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) to selected 1.5.2.2 (colored)

Catch up to -current

Revision 1.1.2.1, Tue Nov 5 07:41:25 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1: +0 -3049 lines
FILE REMOVED

file pmap_motorola.c was added on branch nathanw_sa on 2002-11-11 21:59:41 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Tue Nov 5 07:41:25 2002 UTC (21 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: nathanw_sa
Diff to selected 1.5.2.2 (colored)

merge pmap.c for all 4k-page motorola-MMU (or compatible) m68k platforms.

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




CVSweb <webmaster@jp.NetBSD.org>