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


Keyword substitution: kv
Default branch: MAIN


Revision 1.94: download - view: text, markup, annotated - select for diffs
Wed Sep 8 12:00:50 2021 UTC (3 years, 8 months ago) by rin
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, 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
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -3 lines
Hmm, remove one more parentheses from return.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Wed Sep 8 11:59:43 2021 UTC (3 years, 8 months ago) by rin
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +7 -5 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 8 07:25:55 2021 UTC (3 years, 8 months ago) by rin
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +7 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 8 07:22:56 2021 UTC (3 years, 8 months ago) by rin
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +47 -55 lines
Redo a part of rev 1.89:

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

No binary changes confirmed this time.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Wed Sep 8 07:13:18 2021 UTC (3 years, 8 months ago) by rin
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +62 -54 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 8 00:35:56 2021 UTC (3 years, 8 months ago) by rin
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +56 -64 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 8 00:24:29 2021 UTC (3 years, 8 months ago) by rin
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +5 -5 lines
Turn KASSERT's added for PR port-sh3/56381 into KDASSERT's;
they are less likely expected to fire again.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Sep 2 08:02:33 2021 UTC (3 years, 8 months ago) by rin
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +15 -7 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 2 07:55:56 2021 UTC (3 years, 8 months ago) by rin
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +14 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:16 2021 UTC (3 years, 9 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.83: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83: +2 -2 lines
Sync with HEAD.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Jul 26 21:43:11 2021 UTC (3 years, 9 months ago) by andvar
Branches: 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
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +6 -6 lines
Revert rename back to OFSET, since the name follows historical PGOFSET definition. Noted by tsutsui.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Jul 24 21:31:35 2021 UTC (3 years, 9 months ago) by andvar
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +6 -6 lines
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 - view: text, markup, annotated - select for diffs
Sat Aug 1 20:54:23 2020 UTC (4 years, 9 months ago) by uwe
Branches: 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
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +8 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:42 2017 UTC (7 years, 5 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +26 -29 lines
update from HEAD

Revision 1.80.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:36 2017 UTC (8 years ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +5 -4 lines
Sync with HEAD

Revision 1.77.40.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:19 2017 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.77.40.1: preferred, colored; branchpoint 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77.40.1: +5 -4 lines
Sync with HEAD

Revision 1.77.36.2: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:20 2017 UTC (8 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.77.36.1: preferred, colored; branchpoint 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77.36.1: +16 -25 lines
Sync with HEAD

Revision 1.82: download - view: text, markup, annotated - select for diffs
Thu Feb 2 21:35:29 2017 UTC (8 years, 3 months ago) by uwe
Branches: 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-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, 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
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -3 lines
pmap_steal_memory - a few more s/start/avail_start/ fixes for the
hotplug conversion.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Thu Feb 2 21:17:40 2017 UTC (8 years, 3 months ago) by uwe
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:25 2017 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +15 -25 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Dec 24 17:18:00 2016 UTC (8 years, 4 months ago) by cherry
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3 lines
Use the correct page frame number to steal pages during boot.

Fixes the related sh3 kernel build breakage.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Fri Dec 23 07:15:28 2016 UTC (8 years, 4 months ago) by cherry
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +15 -25 lines
"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 - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:35 2016 UTC (8 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +14 -8 lines
Sync with HEAD

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Sep 3 09:07:54 2016 UTC (8 years, 8 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +14 -8 lines
Fix pmap_prefer for topdown and turn topdown on.

Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:51:57 2011 UTC (14 years, 2 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +28 -20 lines
sync with head

Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Nov 12 07:59:27 2010 UTC (14 years, 6 months ago) by uebayasi
Branches: 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
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +0 -2 lines
Put VM_PAGE_TO_MD() definition in one place.  No functional changes.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed Nov 10 09:27:24 2010 UTC (14 years, 6 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +8 -4 lines
Use more VM_PHYSMEM_*() accessors.  No functional changes.

Revision 1.74.2.8: download - view: text, markup, annotated - select for diffs
Wed Nov 10 08:59:14 2010 UTC (14 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.74.2.7: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.2.7: +6 -2 lines
Fix thinko; make vm_physseg ptr swap really work.

Revision 1.74.2.7: download - view: text, markup, annotated - select for diffs
Wed Nov 10 03:36:28 2010 UTC (14 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.74.2.6: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.2.6: +3 -3 lines
Always use VM_PHYSMEM_PTR().

Revision 1.74.2.6: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:22 2010 UTC (14 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.74.2.5: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.2.5: +4 -2 lines
Sync with HEAD.

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

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Oct 30 18:15:04 2010 UTC (14 years, 6 months ago) by uebayasi
Branches: MAIN
CVS tags: uebayasi-xip-base5, uebayasi-xip-base4
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +22 -16 lines
Use VM_PAGE_TO_MD() to locate struct vm_page_md.  No functional
changes.

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

Revision 1.74.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 28 08:31:07 2010 UTC (15 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.74.2.2: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.2.2: +4 -4 lines
Always use struct vm_physseg *vm_physmem_ptrs[] in MD code.

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

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

Revision 1.66.20.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:02:56 2010 UTC (15 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.66.20.3: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.20.3: +3 -3 lines
sync with head

Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Thu Feb 25 05:05:23 2010 UTC (15 years, 2 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +20 -16 lines
Use VM_PAGE_TO_MD().  Only compile tested.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Sat Nov 7 07:27:46 2009 UTC (15 years, 6 months ago) by cegger
Branches: 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
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3 lines
Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.

Revision 1.66.20.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:08 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.66.20.2: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.20.2: +20 -19 lines
sync with head

Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue Jun 9 02:38:27 2009 UTC (15 years, 11 months ago) by uwe
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +20 -19 lines
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 - view: text, markup, annotated - select for diffs
Wed May 13 17:18:22 2009 UTC (16 years ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +7 -7 lines
Sync with HEAD.

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

Revision 1.66.20.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:11:52 2009 UTC (16 years ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.66.20.1: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.20.1: +8 -7 lines
sync with head.

Revision 1.67.8.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:34:39 2009 UTC (16 years ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.67.8.2: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.8.2: +7 -7 lines
Sync with HEAD.

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

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

Revision 1.67.8.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:29:25 2009 UTC (16 years, 2 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.67.8.1: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.8.1: +3 -3 lines
Sync with HEAD.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Jan 23 16:46:51 2009 UTC (16 years, 3 months ago) by uwe
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
Unhide __pmap_kernel for the benefit of fast tlb miss handlers.

Revision 1.67.8.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:16:43 2009 UTC (16 years, 3 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -3 lines
Sync with HEAD.

Revision 1.66.16.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:29 2009 UTC (16 years, 3 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.66.16.1: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.16.1: +2 -1 lines
Sync with HEAD.

Revision 1.67.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:13:25 2008 UTC (16 years, 5 months ago) by haad
Branches: haad-dm
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +4 -3 lines
Update haad-dm branch to haad-dm-base2.

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

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Dec 9 20:45:45 2008 UTC (16 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -3 lines
Make pmap_kernel() a MI macro for struct pmap *kernel_pmap_ptr,
which is now the "API" provided by the pmap module.  pmap_kernel()
remains as the syntactic sugar.

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

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

Revision 1.58.6.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:14 2008 UTC (16 years, 11 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +7 -2 lines
Sync with netbsd-4.

Revision 1.66.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:22:39 2008 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -9 lines
Sync with HEAD.

Revision 1.66.18.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:32:44 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +2 -9 lines
sync with head.

Revision 1.66.20.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:08 2008 UTC (17 years ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -9 lines
sync with head.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:35 2008 UTC (17 years ago) by martin
Branches: 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
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 22 21:36:53 2008 UTC (17 years, 2 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +7 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Nov 6 23:22:08 2007 UTC (17 years, 6 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +2 -2 lines
sync with HEAD

Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed Oct 17 19:57:08 2007 UTC (17 years, 6 months ago) by garbled
Branches: 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
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -2 lines
Merge the ppcoea-renovation branch to HEAD.

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

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

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

Revision 1.62.8.3: download - view: text, markup, annotated - select for diffs
Wed Oct 3 19:25:02 2007 UTC (17 years, 7 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.62.8.2: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.8.2: +3 -3 lines
Sync with HEAD

Revision 1.50.16.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:29:30 2007 UTC (17 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50.16.3: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.16.3: +14 -9 lines
sync with head.

Revision 1.61.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:38:49 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.61.2.2: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.2.2: +3 -3 lines
Sync with HEAD.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Jul 16 23:48:05 2007 UTC (17 years, 10 months ago) by macallan
Branches: 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
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 11 20:01:56 2007 UTC (17 years, 10 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +9 -4 lines
Sync with head.

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

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

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri May 25 23:55:13 2007 UTC (17 years, 11 months ago) by uwe
Branches: MAIN
CVS tags: mjf-ufs-trans-base
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -4 lines
Clarify comments in pmap_enter.

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

Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri May 18 02:31:06 2007 UTC (17 years, 11 months ago) by uwe
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +7 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 24 14:54:59 2007 UTC (18 years, 1 month ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.58.4.2: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.4.2: +4 -4 lines
sync with head.

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

Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Mar 12 18:18:26 2007 UTC (18 years, 2 months ago) by ad
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: ppcoea-renovation, mjf-ufs-trans
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +4 -4 lines
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.58.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:50:14 2007 UTC (18 years, 2 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.58.4.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.4.1: +4 -4 lines
Sync with HEAD.

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

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

Revision 1.50.16.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:08:08 2007 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50.16.2: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.16.2: +31 -31 lines
sync with head.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Feb 22 16:52:56 2007 UTC (18 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +18 -18 lines
TRUE -> true, FALSE -> false

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Feb 21 22:59:51 2007 UTC (18 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +15 -15 lines
Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.55.4.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:00:58 2007 UTC (18 years, 4 months ago) by ad
Branches: newlock2
Diff to: previous 1.55.4.1: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.4.1: +20 -2 lines
Sync with head.

Revision 1.50.16.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:46:55 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50.16.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.16.1: +78 -11 lines
sync with head.

Revision 1.55.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:34 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.55.6.1: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.6.1: +26 -5 lines
sync with head.

Revision 1.55.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:29:31 2006 UTC (18 years, 5 months ago) by ad
Branches: newlock2
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +45 -9 lines
Sync with head.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Nov 18 14:25:39 2006 UTC (18 years, 5 months ago) by tsutsui
Branches: 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
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +20 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 24 01:56:33 2006 UTC (18 years, 6 months ago) by uwe
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +8 -5 lines
__pmap_kpte_lookup: verify that ptp is not NULL.

Revision 1.55.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:04:59 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +39 -6 lines
sync with head

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Sep 24 00:43:44 2006 UTC (18 years, 7 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +39 -6 lines
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 - view: text, markup, annotated - select for diffs
Sat Sep 9 02:42:59 2006 UTC (18 years, 8 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +27 -6 lines
sync with head

Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:42:47 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +17 -4 lines
sync with head

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Aug 7 23:19:36 2006 UTC (18 years, 9 months ago) by tsutsui
Branches: 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
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +17 -4 lines
uvm_pagealloc(9) can fail, so handle that case in pmap_enter(9).

Revision 1.50.16.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:55:39 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +15 -4 lines
sync with head.

Revision 1.52.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:37:56 2006 UTC (19 years ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +12 -4 lines
Sync with head.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Mar 4 01:13:35 2006 UTC (19 years, 2 months ago) by uwe
Branches: 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
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
s/u_intN_t/uintN_t/

Revision 1.51.2.2: download - view: text, markup, annotated - select for diffs
Sat Feb 18 15:38:45 2006 UTC (19 years, 2 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.51.2.1: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.2.1: +11 -3 lines
sync with head.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Feb 9 10:08:32 2006 UTC (19 years, 3 months ago) by uwe
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +11 -3 lines
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 - view: text, markup, annotated - select for diffs
Wed Feb 1 14:51:32 2006 UTC (19 years, 3 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +5 -2 lines
sync with head.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Jan 21 00:56:05 2006 UTC (19 years, 3 months ago) by uwe
Branches: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +5 -2 lines
Add NOTREACHED after calls to panic().

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:19:00 2005 UTC (19 years, 5 months ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -2 lines
merge ktrace-lwp.

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

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

Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:40:18 2004 UTC (20 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +6 -11 lines
Sync with HEAD

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Dec 30 12:33:19 2003 UTC (21 years, 4 months ago) by pk
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, 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
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -10 lines
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 - view: text, markup, annotated - select for diffs
Sun Aug 10 02:03:31 2003 UTC (21 years, 9 months ago) by chs
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -4 lines
fix typos in comments.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Jul 15 03:35:57 2003 UTC (21 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -1 lines
__KERNEL_RCSID()

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Jun 14 16:27:36 2003 UTC (21 years, 11 months ago) by tsutsui
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +10 -4 lines
Allow user pmap to pmap_enter device (bus-space) memory.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Jun 14 16:21:31 2003 UTC (21 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -2 lines
Fix lack of parentheses bug which causes wrong pte settings.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat May 10 21:10:37 2003 UTC (22 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +9 -8 lines
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 - view: text, markup, annotated - select for diffs
Thu May 8 18:13:22 2003 UTC (22 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +9 -10 lines
Simplify the way the bounds of the managed kernel virtual address
space is advertised to UVM by making virtual_avail and virtual_end
first-class exported variables by UVM.  Machine-dependent code is
responsible for initializing them before main() is called.  Anything
that steals KVA must adjust these variables accordingly.

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

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

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

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Apr 2 02:56:41 2003 UTC (22 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2 lines
Use PAGE_SIZE rather than NBPG.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Jan 18 06:33:44 2003 UTC (22 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4 lines
Merge the nathanw_sa branch.

Revision 1.40.6.3: download - view: text, markup, annotated - select for diffs
Mon Dec 16 07:20:41 2002 UTC (22 years, 5 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.40.6.2: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.6.2: +7 -9 lines
Sync with HEAD; makes kernel boot on my Dreamcast again.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Dec 16 07:18:30 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -9 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 23 17:40:52 2002 UTC (22 years, 10 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.24.2.4: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.4: +774 -3269 lines
catch up with -current on kqueue branch

Revision 1.40.6.2: download - view: text, markup, annotated - select for diffs
Fri Jun 21 21:26:33 2002 UTC (22 years, 10 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.40.6.1: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.6.1: +1025 -0 lines
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 (23 years ago) by thorpej
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.40: +0 -1025 lines
file pmap.c was added on branch nathanw_sa on 2002-06-21 21:26:33 +0000

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu May 9 12:28:08 2002 UTC (23 years ago) by uch
Branches: 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
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +780 -2822 lines
new pmap designed for SH3/SH4.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Apr 28 17:10:39 2002 UTC (23 years ago) by uch
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +18 -18 lines
Use "#define<tab>", white space nits.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Apr 4 18:12:23 2002 UTC (23 years, 1 month ago) by uch
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +1 -466 lines
remove obsolete functions, decralations and structure.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Apr 3 10:37:48 2002 UTC (23 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -1 lines
sync with i386/i386/pmap.c rev. 1.94:

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

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 28 22:45:59 2002 UTC (23 years, 1 month ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +24 -12 lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 27 04:47:31 2002 UTC (23 years, 1 month ago) by chs
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +24 -12 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 17 17:55:25 2002 UTC (23 years, 2 months ago) by uch
Branches: MAIN
CVS tags: eeh-devprop-base, eeh-devprop
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -6 lines
cosmetic changes, fix comments.

Revision 1.24.2.4: download - view: text, markup, annotated - select for diffs
Sat Mar 16 15:59:42 2002 UTC (23 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.24.2.3: preferred, colored
Changes since revision 1.24.2.3: +327 -353 lines
Catch up with -current.

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

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

From art@openbsd.org.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Feb 17 20:55:57 2002 UTC (23 years, 2 months ago) by uch
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +96 -36 lines
Add new MMU API.  for detail, see sh3/mmu.h's comment.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Feb 12 15:26:50 2002 UTC (23 years, 3 months ago) by uch
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +216 -302 lines
ANSIfy KNF.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Feb 11 18:05:17 2002 UTC (23 years, 3 months ago) by uch
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +22 -22 lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 10 19:48:41 2002 UTC (23 years, 4 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.24.2.2: preferred, colored
Changes since revision 1.24.2.2: +26 -67 lines
Sync kqueue branch with -current.

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

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Nov 15 05:16:41 2001 UTC (23 years, 6 months ago) by chs
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +14 -11 lines
fix pmap_extract() to handle addresses with a PTP but an invalid PTE.

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:41:53 2001 UTC (23 years, 7 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +16 -48 lines
Catch up with -current.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Sep 19 07:54:48 2001 UTC (23 years, 7 months ago) by chs
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -2 lines
Fix kern/13049: missing unlock on failure exit from pmap_enter()

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Sep 15 20:36:34 2001 UTC (23 years, 8 months ago) by chs
Branches: MAIN
CVS tags: post-chs-ubcperf
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -44 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 13 01:14:32 2001 UTC (23 years, 8 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.24.2.1: preferred, colored
Changes since revision 1.24.2.1: +4 -4 lines
Update the kqueue branch to HEAD.

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

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

Reviewed by Jason.

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

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jul 20 14:19:59 2001 UTC (23 years, 9 months ago) by ichiro
Branches: MAIN
CVS tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
use definition of memory size for physical area
0x20000000 -> SH3_P1234SEG_SIZE

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 19:34:10 2001 UTC (23 years, 10 months ago) by nathanw
Diff to: previous 1.14.2.1: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.1: +37 -41 lines
Catch up to -current.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jun 2 18:09:20 2001 UTC (23 years, 11 months ago) by chs
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
replace vm_map{,_entry}_t with struct vm_map{,_entry} *.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat May 26 21:27:14 2001 UTC (23 years, 11 months ago) by chs
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4 lines
replace vm_page_t with struct vm_page *.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat May 26 16:32:44 2001 UTC (23 years, 11 months ago) by chs
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3 lines
replace {simple_,}lock{_data,}_t with struct {simple,}lock {,*}.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri May 25 23:34:44 2001 UTC (23 years, 11 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -1 lines
Replicate pte unmap change from i386 pmap.c
(fix kern/12554 workaround).

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun May 13 19:41:17 2001 UTC (24 years ago) by tshiozak
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -1 lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 25 16:18:26 2001 UTC (24 years ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_beforemerge
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +19 -4 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 24 04:31:09 2001 UTC (24 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -1 lines
Sprinkle pmap_update() calls after calls to:
- pmap_enter()
- pmap_remove()
- pmap_protect()
- pmap_kenter_pa()
- pmap_kremove()
as described in pmap(9).

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

Revision 1.2.2.6: download - view: text, markup, annotated - select for diffs
Mon Apr 23 09:42:02 2001 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.2.5: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.5: +8 -32 lines
Sync with HEAD.

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

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:32:20 2001 UTC (24 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -6 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 9 01:54:45 2001 UTC (24 years, 1 month ago) by nathanw
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -6 lines
Catch up with -current.

Revision 1.2.2.5: download - view: text, markup, annotated - select for diffs
Tue Mar 27 15:31:26 2001 UTC (24 years, 1 month ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.2.4: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.4: +6 -6 lines
Sync with HEAD.

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

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

Revision 1.2.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:12:16 2001 UTC (24 years, 3 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.2.3: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.3: +187 -84 lines
Sync with HEAD.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Feb 2 02:28:18 2001 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +187 -84 lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:00 2001 UTC (24 years, 3 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.2.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.2: +5 -5 lines
Sync with head (for UBC+NFS fixes, mostly).

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

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:35:00 2001 UTC (24 years, 4 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.1: +4 -3 lines
Sync with HEAD

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Dec 15 01:16:48 2000 UTC (24 years, 5 months ago) by tsubai
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -3 lines
Make this compile again.

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 20:24:32 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +145 -79 lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Aug 30 09:55:28 2000 UTC (24 years, 8 months ago) by tsubai
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -2 lines
Initialize pv_head locks.

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

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Jun 26 14:20:56 2000 UTC (24 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -3 lines
remove/move more mach vm header files:

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

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

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:03:50 2000 UTC (24 years, 10 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +2 -1 lines
Sync w/ netbsd-1-5-base.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jun 2 17:46:43 2000 UTC (24 years, 11 months ago) by thorpej
Branches: 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
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -1 lines
When allocating new PT pages during early bootstrap (i.e. before
pmap_init() has finished), make sure to zero them.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Apr 24 08:40:21 2000 UTC (25 years ago) by tsubai
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +95 -66 lines
Sync with current i386 pmap.c.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Apr 10 06:34:13 2000 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -3 lines
Use UVM_PGA_ZERO in pmap_alloc_ptp().

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Apr 2 20:39:17 2000 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +8 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Feb 24 23:32:29 2000 UTC (25 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +27 -1 lines
SH4!

Revision 1.2.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:33:45 1999 UTC (25 years, 4 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +9 -7 lines
Pull up to last week's -current.

Revision 1.2.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:39:10 1999 UTC (25 years, 6 months ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +9 -7 lines
Sync with -current

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Nov 13 00:30:44 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, chs-ubc2-newbase
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +9 -7 lines
Update for pmap_enter() API change.  No functional difference.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Sep 14 10:22:36 1999 UTC (25 years, 8 months ago) by tsubai
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3018 -1353 lines
Catch up with -current.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Sep 13 10:31:31 1999 UTC (25 years, 8 months ago) by itojun
Branches: 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).

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>