The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.94 / (download) - annotate - [select for diffs], Wed Sep 8 12:00:50 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, 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, HEAD
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)

Hmm, remove one more parentheses from return.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Sep 8 11:59:43 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.92: +7 -5 lines
Diff to previous 1.92 (colored)

Restore braces for if/else statements which have logically single line,
but physically multiple lines.

This is recommended by an example in style:
http://cvsweb.netbsd.org/bsdweb.cgi/src/share/misc/style#rev1.58

Thanks tsutsui@ for pointing it out.

Revision 1.92 / (download) - annotate - [select for diffs], Wed Sep 8 07:25:55 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.91: +7 -7 lines
Diff to previous 1.91 (colored)

Redo a part of rev 1.89:
- Improve uniformity of panic messages. Also, use __func__ instead of
  hard-coded function names.

Revision 1.91 / (download) - annotate - [select for diffs], Wed Sep 8 07:22:56 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.90: +47 -55 lines
Diff to previous 1.90 (colored)

Redo a part of rev 1.89:

- Remove redundant parentheses/braces/comments.
- Fix indents.

No binary changes confirmed this time.

Revision 1.90 / (download) - annotate - [select for diffs], Wed Sep 8 07:13:18 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.89: +62 -54 lines
Diff to previous 1.89 (colored)

Revert rev 1.89:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sh3/sh3/pmap.c#rev1.89

I misunderstood evaluation order of ? operator.

I should have split the commit into two parts, i.e., with and without
binary diffs, in order to avoid such a serious mistake.

Thanks rillig@ so much for careful check!!!!

Revision 1.89 / (download) - annotate - [select for diffs], Wed Sep 8 00:35:56 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.88: +56 -64 lines
Diff to previous 1.88 (colored)

Misc cosmetic fixes:
- Remove redundant parentheses/braces/comments.
- Improve uniformity of panic messages. Also, use __func__ instead of
  hard-coded function names.
- Fix indents.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Sep 8 00:24:29 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.87: +5 -5 lines
Diff to previous 1.87 (colored)

Turn KASSERT's added for PR port-sh3/56381 into KDASSERT's;
they are less likely expected to fire again.

Revision 1.87 / (download) - annotate - [select for diffs], Thu Sep 2 08:02:33 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.86: +15 -7 lines
Diff to previous 1.86 (colored)

Add missing NULL check for __pmap_pv_alloc() (== pool_get() with
PR_NOWAIT) in __pmap_pv_enter().

Then, handle this failure in pmap_enter(); return ENOMEM if
PMAP_CANFAIL, and panic otherwise.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Sep 2 07:55:56 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.85: +14 -5 lines
Diff to previous 1.85 (colored)

PR port-sh3/56381

pmap_enter() returns ENOMEM if __pmap_pte_alloc() fails and PMAP_CANFAIL
flag is specified. In this case, remove pv via __pmap_pv_remove() if it is
added to p-v map list via __pmap_pv_enter().

Otherwise, pmap becomes an inconsistent state, which results in an infinite
loop in pmap_page_protect(), as reported in the PR.

Also, KASSERT's are added for sure, in order to detect the infinite loops.

Great thanks to chs@ for finding out this bug!!

Revision 1.83.6.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:16 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

Sync with HEAD.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Jul 26 21:43:11 2021 UTC (2 years, 8 months ago) by andvar
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.84: +6 -6 lines
Diff to previous 1.84 (colored)

Revert rename back to OFSET, since the name follows historical PGOFSET definition. Noted by tsutsui.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Jul 24 21:31:35 2021 UTC (2 years, 8 months ago) by andvar
Branch: MAIN
Changes since 1.83: +6 -6 lines
Diff to previous 1.83 (colored)

Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Aug 1 20:54:23 2020 UTC (3 years, 8 months ago) by uwe
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.82: +8 -5 lines
Diff to previous 1.82 (colored)

pmap_unwire - deobfuscate.

Don't hide assignments inside if ().  Remove redundant entry == 0 test
b/c _PG_WIRED test afterwards covers that and the compiler actually
elimiates it anyway.  Same object code is generated.

Revision 1.77.18.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:42 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.77: +26 -29 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

update from HEAD

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:36 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.80: +5 -4 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

Sync with HEAD

Revision 1.77.40.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:19 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.77.40.1: +5 -4 lines
Diff to previous 1.77.40.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

Sync with HEAD

Revision 1.77.36.2 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:20 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.77.36.1: +16 -25 lines
Diff to previous 1.77.36.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

Sync with HEAD

Revision 1.82 / (download) - annotate - [select for diffs], Thu Feb 2 21:35:29 2017 UTC (7 years, 2 months ago) by uwe
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, 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, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.81: +4 -3 lines
Diff to previous 1.81 (colored)

pmap_steal_memory - a few more s/start/avail_start/ fixes for the
hotplug conversion.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Feb 2 21:17:40 2017 UTC (7 years, 2 months ago) by uwe
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

pmap_steal_memory - s/start/avail_start/ to fix mistake in the hotplug
conversion.  The kernel now panics (can't unplug memory from the
middle of a segment) instead of triggering a reset.

Revision 1.77.40.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:25 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.77: +15 -25 lines
Diff to previous 1.77 (colored)

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

Revision 1.80 / (download) - annotate - [select for diffs], Sat Dec 24 17:18:00 2016 UTC (7 years, 3 months ago) by cherry
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

Use the correct page frame number to steal pages during boot.

Fixes the related sh3 kernel build breakage.

Revision 1.79 / (download) - annotate - [select for diffs], Fri Dec 23 07:15:28 2016 UTC (7 years, 3 months ago) by cherry
Branch: MAIN
Changes since 1.78: +15 -25 lines
Diff to previous 1.78 (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.77.36.1 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:35 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.77: +14 -8 lines
Diff to previous 1.77 (colored)

Sync with HEAD

Revision 1.78 / (download) - annotate - [select for diffs], Sat Sep 3 09:07:54 2016 UTC (7 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914
Changes since 1.77: +14 -8 lines
Diff to previous 1.77 (colored)

Fix pmap_prefer for topdown and turn topdown on.

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:51:57 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.74: +28 -20 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

sync with head

Revision 1.77 / (download) - annotate - [select for diffs], Fri Nov 12 07:59:27 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, uebayasi-xip-base7, uebayasi-xip-base6, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, 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, 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, matt-mips64-premerge-20101231, khorben-n900, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, 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, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: tls-maxphys, pgoyette-localcount, nick-nhusb
Changes since 1.76: +0 -2 lines
Diff to previous 1.76 (colored)

Put VM_PAGE_TO_MD() definition in one place.  No functional changes.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Nov 10 09:27:24 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.75: +8 -4 lines
Diff to previous 1.75 (colored)

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

Revision 1.74.2.8 / (download) - annotate - [select for diffs], Wed Nov 10 08:59:14 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.74.2.7: +6 -2 lines
Diff to previous 1.74.2.7 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

Fix thinko; make vm_physseg ptr swap really work.

Revision 1.74.2.7 / (download) - annotate - [select for diffs], Wed Nov 10 03:36:28 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.74.2.6: +3 -3 lines
Diff to previous 1.74.2.6 (colored) to branchpoint 1.74 (colored)

Always use VM_PHYSMEM_PTR().

Revision 1.74.2.6 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:22 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.74.2.5: +4 -2 lines
Diff to previous 1.74.2.5 (colored) to branchpoint 1.74 (colored)

Sync with HEAD.

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

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

Revision 1.75 / (download) - annotate - [select for diffs], Sat Oct 30 18:15:04 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: MAIN
CVS Tags: uebayasi-xip-base5, uebayasi-xip-base4
Changes since 1.74: +22 -16 lines
Diff to previous 1.74 (colored)

Use VM_PAGE_TO_MD() to locate struct vm_page_md.  No functional
changes.

Revision 1.74.2.4 / (download) - annotate - [select for diffs], Sat Oct 30 08:41:11 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.74.2.3: +7 -0 lines
Diff to previous 1.74.2.3 (colored) to branchpoint 1.74 (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.74.2.3 / (download) - annotate - [select for diffs], Wed Apr 28 08:31:07 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.74.2.2: +4 -4 lines
Diff to previous 1.74.2.2 (colored) to branchpoint 1.74 (colored)

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

Revision 1.74.2.2 / (download) - annotate - [select for diffs], Tue Apr 27 07:19:29 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.74.2.1: +4 -1 lines
Diff to previous 1.74.2.1 (colored) to branchpoint 1.74 (colored)

Support PMAP_UNMANAGED in some pmaps.

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

Revision 1.66.20.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:02:56 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.66.20.3: +3 -3 lines
Diff to previous 1.66.20.3 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

sync with head

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Thu Feb 25 05:05:23 2010 UTC (14 years, 1 month ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.74: +20 -16 lines
Diff to previous 1.74 (colored)

Use VM_PAGE_TO_MD().  Only compile tested.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Nov 7 07:27:46 2009 UTC (14 years, 5 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (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.66.20.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:08 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.66.20.2: +20 -19 lines
Diff to previous 1.66.20.2 (colored) to branchpoint 1.66 (colored)

sync with head

Revision 1.73 / (download) - annotate - [select for diffs], Tue Jun 9 02:38:27 2009 UTC (14 years, 10 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.72: +20 -19 lines
Diff to previous 1.72 (colored)

In pmap_protect(), compute the bitmask to set in the ptes only once, instead
of every iteration.  From OpenBSD.

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:18:22 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.70: +7 -7 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with HEAD.

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

Revision 1.66.20.2 / (download) - annotate - [select for diffs], Mon May 4 08:11:52 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.66.20.1: +8 -7 lines
Diff to previous 1.66.20.1 (colored) to branchpoint 1.66 (colored)

sync with head.

Revision 1.67.8.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:34:39 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.67.8.2: +7 -7 lines
Diff to previous 1.67.8.2 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

Sync with HEAD.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Apr 21 21:30:00 2009 UTC (15 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

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

Revision 1.71 / (download) - annotate - [select for diffs], Wed Mar 18 10:22:36 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.70: +6 -6 lines
Diff to previous 1.70 (colored)

Ansify function definitions w/o arguments. Generated with sed.

Revision 1.67.8.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:29:25 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.67.8.1: +3 -3 lines
Diff to previous 1.67.8.1 (colored) to branchpoint 1.67 (colored)

Sync with HEAD.

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jan 23 16:46:51 2009 UTC (15 years, 2 months ago) by uwe
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

Unhide __pmap_kernel for the benefit of fast tlb miss handlers.

Revision 1.67.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:16:43 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.67: +4 -3 lines
Diff to previous 1.67 (colored)

Sync with HEAD.

Revision 1.66.16.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:29 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.66.16.1: +2 -1 lines
Diff to previous 1.66.16.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

Sync with HEAD.

Revision 1.67.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:13:25 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.67: +4 -3 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

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

Revision 1.69 / (download) - annotate - [select for diffs], Wed Dec 10 11:10:19 2008 UTC (15 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

Make kernel_pmap_ptr a const.  Requested by steve_martin.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Dec 9 20:45:45 2008 UTC (15 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.67: +4 -3 lines
Diff to previous 1.67 (colored)

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.58.6.1 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:14 2008 UTC (15 years, 10 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.58: +7 -2 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Sync with netbsd-4.

Revision 1.66.16.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:39 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.66: +2 -9 lines
Diff to previous 1.66 (colored)

Sync with HEAD.

Revision 1.66.18.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:44 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.66: +2 -9 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

sync with head.

Revision 1.66.20.1 / (download) - annotate - [select for diffs], Fri May 16 02:23:08 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.66: +2 -9 lines
Diff to previous 1.66 (colored)

sync with head.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:35 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-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, 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, hpcarm-cleanup-nbase, haad-dm-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, haad-dm
Changes since 1.66: +2 -9 lines
Diff to previous 1.66 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Fri Feb 22 21:36:53 2008 UTC (16 years, 1 month ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.58: +7 -2 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Pull up following revision(s) (requested by uwe in ticket #1075):
	sys/arch/sh3/sh3/exception_vector.S: revision 1.21 - 1.30
	sys/arch/sh3/sh3/genassym.cf: revision 1.11 - 1.12
	sys/arch/sh3/sh3/pmap.c: revision 1.63
Implement fast path TLB miss handling.  Walk the page table without
creating a trapframe, with exceptions disabled and using only BANK1
registers.  If a valid pte is found, load it and return.  Otherwise
create a trapframe and proceed to the full-blown C handler.

Revision 1.65.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:22:08 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

sync with HEAD

Revision 1.66 / (download) - annotate - [select for diffs], Wed Oct 17 19:57:08 2007 UTC (16 years, 6 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (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.62.8.3 / (download) - annotate - [select for diffs], Wed Oct 3 19:25:02 2007 UTC (16 years, 6 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.62.8.2: +3 -3 lines
Diff to previous 1.62.8.2 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored)

Sync with HEAD

Revision 1.50.16.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:29:30 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50.16.3: +14 -9 lines
Diff to previous 1.50.16.3 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

sync with head.

Revision 1.61.2.3 / (download) - annotate - [select for diffs], Mon Aug 20 18:38:49 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.61.2.2: +3 -3 lines
Diff to previous 1.61.2.2 (colored) next main 1.62 (colored)

Sync with HEAD.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Jul 16 23:48:05 2007 UTC (16 years, 9 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, matt-mips64-base, matt-mips64, jmcneill-pm, hpcarm-cleanup, bouyer-xenamd64
Branch point for: matt-armv6
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (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.62.2.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:01:56 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.62: +9 -4 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Sync with head.

Revision 1.62.8.2 / (download) - annotate - [select for diffs], Tue Jun 26 18:13:30 2007 UTC (16 years, 9 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.62.8.1: +4 -4 lines
Diff to previous 1.62.8.1 (colored) to branchpoint 1.62 (colored)

Sync with HEAD.

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

Sync with head.

Revision 1.64 / (download) - annotate - [select for diffs], Fri May 25 23:55:13 2007 UTC (16 years, 10 months ago) by uwe
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.63: +4 -4 lines
Diff to previous 1.63 (colored)

Clarify comments in pmap_enter.

Revision 1.62.8.1 / (download) - annotate - [select for diffs], Tue May 22 17:27:27 2007 UTC (16 years, 11 months ago) by matt
Branch: ppcoea-renovation
Changes since 1.62: +7 -2 lines
Diff to previous 1.62 (colored)

Update to HEAD.

Revision 1.63 / (download) - annotate - [select for diffs], Fri May 18 02:31:06 2007 UTC (16 years, 11 months ago) by uwe
Branch: MAIN
Changes since 1.62: +7 -2 lines
Diff to previous 1.62 (colored)

Implement fast path TLB miss handling.  Walk the page table without
creating a trapframe, with exceptions disabled and using only BANK1
registers.  If a valid pte is found, load it and return.  Otherwise
create a trapframe and proceed to the full-blown C handler.

Revision 1.58.4.3 / (download) - annotate - [select for diffs], Sat Mar 24 14:54:59 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.58.4.2: +4 -4 lines
Diff to previous 1.58.4.2 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

sync with head.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:04 2007 UTC (17 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.61: +4 -4 lines
Diff to previous 1.61 (colored)

Sync with head.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:26 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: ppcoea-renovation, mjf-ufs-trans
Changes since 1.61: +4 -4 lines
Diff to previous 1.61 (colored)

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

Revision 1.58.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:50:14 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.58.4.1: +4 -4 lines
Diff to previous 1.58.4.1 (colored) to branchpoint 1.58 (colored)

Sync with HEAD.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Mar 4 06:00:41 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Branch point for: vmlocking
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored)

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

Revision 1.58.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:53:01 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.58: +31 -31 lines
Diff to previous 1.58 (colored)

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

Revision 1.50.16.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:08:08 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50.16.2: +31 -31 lines
Diff to previous 1.50.16.2 (colored) to branchpoint 1.50 (colored)

sync with head.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Feb 22 16:52:56 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.59: +18 -18 lines
Diff to previous 1.59 (colored)

TRUE -> true, FALSE -> false

Revision 1.59 / (download) - annotate - [select for diffs], Wed Feb 21 22:59:51 2007 UTC (17 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.58: +15 -15 lines
Diff to previous 1.58 (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.55.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:00:58 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.55.4.1: +20 -2 lines
Diff to previous 1.55.4.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

Sync with head.

Revision 1.50.16.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:46:55 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50.16.1: +78 -11 lines
Diff to previous 1.50.16.1 (colored) to branchpoint 1.50 (colored)

sync with head.

Revision 1.55.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:34 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.55.6.1: +26 -5 lines
Diff to previous 1.55.6.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

sync with head.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:29:31 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.55: +45 -9 lines
Diff to previous 1.55 (colored)

Sync with head.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Nov 18 14:25:39 2006 UTC (17 years, 5 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-base-1, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Changes since 1.57: +20 -2 lines
Diff to previous 1.57 (colored)

Disable sosend_loan() in sys/kern/uipc_socket.c temporarily on CPUs
which have virtual address indexed cache and whose pmaps don't always
allow normal shared mappings even for read only pages.

In future, these pmaps should be rewritten to handle such read only
shared mappings properly like ARM pmap, but currently we just disable
sosend_loan() to avoid unnecessary uncached mappings and cache flushes
on MIPS3 CPUs, or map/unmap thrashing on SH4.

Discussed with thorpej a while ago.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Oct 24 01:56:33 2006 UTC (17 years, 5 months ago) by uwe
Branch: MAIN
Changes since 1.56: +8 -5 lines
Diff to previous 1.56 (colored)

__pmap_kpte_lookup: verify that ptp is not NULL.

Revision 1.55.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:04:59 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.55: +39 -6 lines
Diff to previous 1.55 (colored)

sync with head

Revision 1.56 / (download) - annotate - [select for diffs], Sun Sep 24 00:43:44 2006 UTC (17 years, 6 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.55: +39 -6 lines
Diff to previous 1.55 (colored)

Allow shared PV mappings in pmap_enter(9) even on SH4 if VAs of shared pages
have the same virtual cache indexes (i.e. they won't cause virtual cache
aliases). Also prepare PMAP_PREFER(9) for SH4 to avoid some possible virtual
cache aliases.
More stuff should be added in pmap_enter(9), but at least this changes
should fix some existing problems. See discussion on port-sh3 ML for details.

OK'ed by uwe and chs, and closes PR port-sh3/34243.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:42:59 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.52: +27 -6 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

sync with head

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Fri Aug 11 15:42:47 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.54: +17 -4 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

sync with head

Revision 1.55 / (download) - annotate - [select for diffs], Mon Aug 7 23:19:36 2006 UTC (17 years, 8 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.54: +17 -4 lines
Diff to previous 1.54 (colored)

uvm_pagealloc(9) can fail, so handle that case in pmap_enter(9).

Revision 1.50.16.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:55:39 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50: +15 -4 lines
Diff to previous 1.50 (colored)

sync with head.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:37:56 2006 UTC (18 years ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.52: +12 -4 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Sync with head.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Mar 4 01:13:35 2006 UTC (18 years, 1 month ago) by uwe
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: yamt-pdpolicy
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

s/u_intN_t/uintN_t/

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Sat Feb 18 15:38:45 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.51.2.1: +11 -3 lines
Diff to previous 1.51.2.1 (colored) next main 1.52 (colored)

sync with head.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Feb 9 10:08:32 2006 UTC (18 years, 2 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Changes since 1.52: +11 -3 lines
Diff to previous 1.52 (colored)

pmap_extract: handle P1 and P2 (MMU bypass) addresses specially.
PMAP_MAP_POOLPAGE maps pa -> P1 va, so we must handle this case here.
PR port-sh3/26569 by Nick Hudson.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:51:32 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.51: +5 -2 lines
Diff to previous 1.51 (colored)

sync with head.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Jan 21 00:56:05 2006 UTC (18 years, 3 months ago) by uwe
Branch: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.51: +5 -2 lines
Diff to previous 1.51 (colored)

Add NOTREACHED after calls to panic().

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

merge ktrace-lwp.

Revision 1.47.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:21:34 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.2: +2 -2 lines
Diff to previous 1.47.2.2 (colored) next main 1.48 (colored)

Fix the sync with head I botched.

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:40:02 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.1: +0 -0 lines
Diff to previous 1.47.2.1 (colored)

Sync with HEAD.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:40:18 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47: +6 -11 lines
Diff to previous 1.47 (colored)

Sync with HEAD

Revision 1.50 / (download) - annotate - [select for diffs], Tue Dec 30 12:33:19 2003 UTC (20 years, 3 months ago) by pk
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, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, 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, 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, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.49: +2 -10 lines
Diff to previous 1.49 (colored)

Replace the traditional buffer memory management -- based on fixed per buffer
virtual memory reservation and a private pool of memory pages -- by a scheme
based on memory pools.

This allows better utilization of memory because buffers can now be allocated
with a granularity finer than the system's native page size (useful for
filesystems with e.g. 1k or 2k fragment sizes).  It also avoids fragmentation
of virtual to physical memory mappings (due to the former fixed virtual
address reservation) resulting in better utilization of MMU resources on some
platforms.  Finally, the scheme is more flexible by allowing run-time decisions
on the amount of memory to be used for buffers.

On the other hand, the effectiveness of the LRU queue for buffer recycling
may be somewhat reduced compared to the traditional method since, due to the
nature of the pool based memory allocation, the actual least recently used
buffer may release its memory to a pool different from the one needed by a
newly allocated buffer. However, this effect will kick in only if the
system is under memory pressure.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Aug 10 02:03:31 2003 UTC (20 years, 8 months ago) by chs
Branch: MAIN
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (colored)

fix typos in comments.

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

__KERNEL_RCSID()

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jun 14 16:27:36 2003 UTC (20 years, 10 months ago) by tsutsui
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.46: +10 -4 lines
Diff to previous 1.46 (colored)

Allow user pmap to pmap_enter device (bus-space) memory.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jun 14 16:21:31 2003 UTC (20 years, 10 months ago) by tsutsui
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Fix lack of parentheses bug which causes wrong pte settings.

Revision 1.45 / (download) - annotate - [select for diffs], Sat May 10 21:10:37 2003 UTC (20 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +9 -8 lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Thu May 8 18:13:22 2003 UTC (20 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +9 -10 lines
Diff to previous 1.43 (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.43 / (download) - annotate - [select for diffs], Wed Apr 2 02:56:41 2003 UTC (21 years ago) by thorpej
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Use PAGE_SIZE rather than NBPG.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Jan 18 06:33:44 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

Merge the nathanw_sa branch.

Revision 1.40.6.3 / (download) - annotate - [select for diffs], Mon Dec 16 07:20:41 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.40.6.2: +7 -9 lines
Diff to previous 1.40.6.2 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

Sync with HEAD; makes kernel boot on my Dreamcast again.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Dec 16 07:18:30 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.40: +7 -9 lines
Diff to previous 1.40 (colored)

Initialize pools in pmap_init(); the low-water mark must be set when
it is safe to allocate pages via the normal mechanism.

Revision 1.24.2.5 / (download) - annotate - [select for diffs], Sun Jun 23 17:40:52 2002 UTC (21 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.24.2.4: +774 -3269 lines
Diff to previous 1.24.2.4 (colored) next main 1.25 (colored)

catch up with -current on kqueue branch

Revision 1.40.6.2 / (download) - annotate - [select for diffs], Fri Jun 21 21:26:33 2002 UTC (21 years, 10 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.40.6.1: +1025 -0 lines
Diff to previous 1.40.6.1 (colored) to branchpoint 1.40 (colored)

Add support for scheduler activations on SuperH.  Boots multi-user
on Dreamcast (SH4) with stock userland.

Revision 1.40.6.1, Thu May 9 12:28:08 2002 UTC (21 years, 11 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.40: +0 -1025 lines
FILE REMOVED

file pmap.c was added on branch nathanw_sa on 2002-06-21 21:26:33 +0000

Revision 1.40 / (download) - annotate - [select for diffs], Thu May 9 12:28:08 2002 UTC (21 years, 11 months ago) by uch
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gehenna-devsw-base, gehenna-devsw
Branch point for: nathanw_sa
Changes since 1.39: +780 -2822 lines
Diff to previous 1.39 (colored)

new pmap designed for SH3/SH4.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Apr 28 17:10:39 2002 UTC (21 years, 11 months ago) by uch
Branch: MAIN
Changes since 1.38: +18 -18 lines
Diff to previous 1.38 (colored)

Use "#define<tab>", white space nits.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Apr 4 18:12:23 2002 UTC (22 years ago) by uch
Branch: MAIN
Changes since 1.37: +1 -466 lines
Diff to previous 1.37 (colored)

remove obsolete functions, decralations and structure.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Apr 3 10:37:48 2002 UTC (22 years ago) by msaitoh
Branch: MAIN
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

sync with i386/i386/pmap.c rev. 1.94:

make dangerous pmap_copy() and pmap_move() no-op.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Thu Mar 28 22:45:59 2002 UTC (22 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.8: +24 -12 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Pull up revision 1.36 (via patch, requested by chs):
  Avoid accounting errors in pmap_enter() by only updating the counters
  once the operation can no longer fail.  Fixes PR#16028.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 27 04:47:31 2002 UTC (22 years ago) by chs
Branch: MAIN
Changes since 1.35: +24 -12 lines
Diff to previous 1.35 (colored)

avoid accounting errors in pmap_enter() by only updating the counters
once the operation can no longer fail.  fixes PR 16028.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Mar 17 17:55:25 2002 UTC (22 years, 1 month ago) by uch
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.34: +4 -6 lines
Diff to previous 1.34 (colored)

cosmetic changes, fix comments.

Revision 1.24.2.4 / (download) - annotate - [select for diffs], Sat Mar 16 15:59:42 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.24.2.3: +327 -353 lines
Diff to previous 1.24.2.3 (colored)

Catch up with -current.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Mar 8 20:48:34 2002 UTC (22 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: newlock-base, newlock
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

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.33 / (download) - annotate - [select for diffs], Sun Feb 17 20:55:57 2002 UTC (22 years, 2 months ago) by uch
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.32: +96 -36 lines
Diff to previous 1.32 (colored)

Add new MMU API.  for detail, see sh3/mmu.h's comment.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Feb 12 15:26:50 2002 UTC (22 years, 2 months ago) by uch
Branch: MAIN
Changes since 1.31: +216 -302 lines
Diff to previous 1.31 (colored)

ANSIfy KNF.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Feb 11 18:05:17 2002 UTC (22 years, 2 months ago) by uch
Branch: MAIN
Changes since 1.30: +22 -22 lines
Diff to previous 1.30 (colored)

clean up redundant PTE PG_* defines.
PG_RO     -> PG_KR
PG_RW     -> PG_KW
PG_u      -> PG_URKR
PG_PROT   -> PG_UW
PG_AVAIL1 -> PG_PVLIST

Revision 1.24.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 19:48:41 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.24.2.2: +26 -67 lines
Diff to previous 1.24.2.2 (colored)

Sync kqueue branch with -current.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jan 2 00:51:37 2002 UTC (22 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.29: +1 -13 lines
Diff to previous 1.29 (colored)

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.29 / (download) - annotate - [select for diffs], Thu Nov 15 05:16:41 2001 UTC (22 years, 5 months ago) by chs
Branch: MAIN
Changes since 1.28: +14 -11 lines
Diff to previous 1.28 (colored)

fix pmap_extract() to handle addresses with a PTP but an invalid PTE.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:41:53 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.25: +16 -48 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Catch up with -current.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Sep 19 07:54:48 2001 UTC (22 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

Fix kern/13049: missing unlock on failure exit from pmap_enter()

Revision 1.27 / (download) - annotate - [select for diffs], Sat Sep 15 20:36:34 2001 UTC (22 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: post-chs-ubcperf
Changes since 1.26: +11 -44 lines
Diff to previous 1.26 (colored)

a whole bunch of changes to improve performance and robustness under load:

 - remove special treatment of pager_map mappings in pmaps.  this is
   required now, since I've removed the globals that expose the address range.
   pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
   no longer any need to special-case it.
 - eliminate struct uvm_vnode by moving its fields into struct vnode.
 - rewrite the pageout path.  the pager is now responsible for handling the
   high-level requests instead of only getting control after a bunch of work
   has already been done on its behalf.  this will allow us to UBCify LFS,
   which needs tighter control over its pages than other filesystems do.
   writing a page to disk no longer requires making it read-only, which
   allows us to write wired pages without causing all kinds of havoc.
 - use a new PG_PAGEOUT flag to indicate that a page should be freed
   on behalf of the pagedaemon when it's unlocked.  this flag is very similar
   to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
   pageout fails due to eg. an indirect-block buffer being locked.
   this allows us to remove the "version" field from struct vm_page,
   and together with shrinking "loan_count" from 32 bits to 16,
   struct vm_page is now 4 bytes smaller.
 - no longer use PG_RELEASED for swap-backed pages.  if the page is busy
   because it's being paged out, we can't release the swap slot to be
   reallocated until that write is complete, but unlike with vnodes we
   don't keep a count of in-progress writes so there's no good way to
   know when the write is done.  instead, when we need to free a busy
   swap-backed page, just sleep until we can get it busy ourselves.
 - implement a fast-path for extending writes which allows us to avoid
   zeroing new pages.  this substantially reduces cpu usage.
 - encapsulate the data used by the genfs code in a struct genfs_node,
   which must be the first element of the filesystem-specific vnode data
   for filesystems which use genfs_{get,put}pages().
 - eliminate many of the UVM pagerops, since they aren't needed anymore
   now that the pager "put" operation is a higher-level operation.
 - enhance the genfs code to allow NFS to use the genfs_{get,put}pages
   instead of a modified copy.
 - clean up struct vnode by removing all the fields that used to be used by
   the vfs_cluster.c code (which we don't use anymore with UBC).
 - remove kmem_object and mb_object since they were useless.
   instead of allocating pages to these objects, we now just allocate
   pages with no object.  such pages are mapped in the kernel until they
   are freed, so we can use the mapping to find the page to free it.
   this allows us to remove splvm() protection in several places.

The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Thu Sep 13 01:14:32 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.24.2.1: +4 -4 lines
Diff to previous 1.24.2.1 (colored)

Update the kqueue branch to HEAD.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Sep 10 21:19:23 2001 UTC (22 years, 7 months ago) by chris
Branch: MAIN
CVS Tags: pre-chs-ubcperf
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

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.24.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:12:19 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

update to -current

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jul 20 14:19:59 2001 UTC (22 years, 9 months ago) by ichiro
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

use definition of memory size for physical area
0x20000000 -> SH3_P1234SEG_SIZE

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 19:34:10 2001 UTC (22 years, 10 months ago) by nathanw
Changes since 1.14.2.1: +37 -41 lines
Diff to previous 1.14.2.1 (colored) next main 1.15 (colored)

Catch up to -current.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jun 2 18:09:20 2001 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Branch point for: kqueue
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

replace vm_map{,_entry}_t with struct vm_map{,_entry} *.

Revision 1.23 / (download) - annotate - [select for diffs], Sat May 26 21:27:14 2001 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

replace vm_page_t with struct vm_page *.

Revision 1.22 / (download) - annotate - [select for diffs], Sat May 26 16:32:44 2001 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

replace {simple_,}lock{_data,}_t with struct {simple,}lock {,*}.

Revision 1.21 / (download) - annotate - [select for diffs], Fri May 25 23:34:44 2001 UTC (22 years, 10 months ago) by sommerfeld
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Replicate pte unmap change from i386 pmap.c
(fix kern/12554 workaround).

Revision 1.20 / (download) - annotate - [select for diffs], Sun May 13 19:41:17 2001 UTC (22 years, 11 months ago) by tshiozak
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Correct a simple bug in the recent commit (pmap.c:1.19) by thopej.
I guess he indents to prepare a temporary variable for saving the next
pointer of a list element, but he seems to forget to substitute the
pointer for the variable.  This often causes my dreamcast panic.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Apr 25 16:18:26 2001 UTC (22 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_beforemerge
Changes since 1.18: +19 -4 lines
Diff to previous 1.18 (colored)

Work around the problem that causes kern/12554.  Basically,
there are some pathological cases that cause pmap_page_protect()
to be called on a wired page to revoke all mappings.  We
need to skip mappings that are actually wired to prevent Bad
things from happening later.

THIS IS JUST A WORK-AROUND.  We need to prevent the pathological
behavior from happening in UVM to begin with.  But it's unclear
what the right solution is there, right now.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Apr 24 04:31:09 2001 UTC (23 years ago) by thorpej
Branch: MAIN
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored)

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.2.2.6 / (download) - annotate - [select for diffs], Mon Apr 23 09:42:02 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.5: +8 -32 lines
Diff to previous 1.2.2.5 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Apr 22 23:42:16 2001 UTC (23 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_base
Changes since 1.16: +3 -27 lines
Diff to previous 1.16 (colored)

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.16 / (download) - annotate - [select for diffs], Sat Apr 21 17:32:20 2001 UTC (23 years ago) by thorpej
Branch: MAIN
Changes since 1.15: +6 -6 lines
Diff to previous 1.15 (colored)

pmap_update() should not be equated with "flush entire TLB", it is
used to process deferred pmap operations.  Since these pmaps don't
defer anything, pmap_update() is a noop.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:54:45 2001 UTC (23 years ago) by nathanw
Changes since 1.14: +6 -6 lines
Diff to previous 1.14 (colored)

Catch up with -current.

Revision 1.2.2.5 / (download) - annotate - [select for diffs], Tue Mar 27 15:31:26 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.4: +6 -6 lines
Diff to previous 1.2.2.4 (colored) to branchpoint 1.2 (colored)

Sync with HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 15 06:10:48 2001 UTC (23 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.14: +6 -6 lines
Diff to previous 1.14 (colored)

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

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

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:12:16 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.3: +187 -84 lines
Diff to previous 1.2.2.3 (colored) to branchpoint 1.2 (colored)

Sync with HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 2 02:28:18 2001 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.13: +187 -84 lines
Diff to previous 1.13 (colored)

Rewrite how mod/ref emulation is done.  In particular, make
modified attribute checking actually work.  Previously, a
page could be reported as modified even if it wasn't!  This
is very bad, and e.g. caused the VM system to attempt to
"clean" pages of read-only files.

Only lip-services is paid to referenced attribute emulation.
This could be improved.

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:00 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.2: +5 -5 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 14 03:25:46 2001 UTC (23 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)

splimp() -> splvm()

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Fri Jan 5 17:35:00 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.1: +4 -3 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Fri Dec 15 01:16:48 2000 UTC (23 years, 4 months ago) by tsubai
Branch: MAIN
Changes since 1.11: +4 -3 lines
Diff to previous 1.11 (colored)

Make this compile again.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 20:24:32 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2: +145 -79 lines
Diff to previous 1.2 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 30 09:55:28 2000 UTC (23 years, 7 months ago) by tsubai
Branch: MAIN
Changes since 1.10: +7 -2 lines
Diff to previous 1.10 (colored)

Initialize pv_head locks.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 29 07:44:05 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.9: +1 -3 lines
Diff to previous 1.9 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 26 14:20:56 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.8: +1 -3 lines
Diff to previous 1.8 (colored)

remove/move more mach vm header files:

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

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

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:03:50 2000 UTC (23 years, 10 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 2 17:46:43 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

When allocating new PT pages during early bootstrap (i.e. before
pmap_init() has finished), make sure to zero them.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 24 08:40:21 2000 UTC (24 years ago) by tsubai
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.6: +95 -66 lines
Diff to previous 1.6 (colored)

Sync with current i386 pmap.c.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Apr 10 06:34:13 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

Use UVM_PGA_ZERO in pmap_alloc_ptp().

Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 2 20:39:17 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.4: +8 -2 lines
Diff to previous 1.4 (colored)

Instead of checking vm_physmem[<physseg>].pgs to determine if
uvm_page_init() has completed, add a boolean uvm.page_init_done,
and test against that.  Use this same boolean (rather than
pmap_initialized) in pmap_growkernel() to determine if we are
being called via uvm_page_init() to grow the kernel address space.

This fixes a problem on some i386 configurations where pmap_init()
itself was needing to have the kernel page table grown, and since
pmap_initialized was not yet set to TRUE, pmap_growkernel() was
choosing the wrong code path.

Fix tested by Havard Eidnes.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Feb 24 23:32:29 2000 UTC (24 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.3: +27 -1 lines
Diff to previous 1.3 (colored)

SH4!

Revision 1.2.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:33:45 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.2: +9 -7 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Pull up to last week's -current.

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:39:10 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.2: +9 -7 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync with -current

Revision 1.3 / (download) - annotate - [select for diffs], Sat Nov 13 00:30:44 1999 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, chs-ubc2-newbase
Changes since 1.2: +9 -7 lines
Diff to previous 1.2 (colored)

Update for pmap_enter() API change.  No functional difference.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Sep 14 10:22:36 1999 UTC (24 years, 7 months ago) by tsubai
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.1: +3018 -1353 lines
Diff to previous 1.1 (colored)

Catch up with -current.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Sep 13 10:31:31 1999 UTC (24 years, 7 months ago) by itojun
Branch: MAIN

Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
	As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).

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>