The NetBSD Project

CVS log for src/sys/arch/sparc/sparc/machdep.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.341: download - view: text, markup, annotated - select for diffs
Tue Mar 5 14:15:35 2024 UTC (9 months ago) by thorpej
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.340: preferred, colored
Changes since revision 1.340: +2 -10 lines
Move the at-shutdown call to resettodr() from cpu_reboot() to kern_reboot().

It's a small step, but it's a step.

Revision 1.340: download - view: text, markup, annotated - select for diffs
Fri Dec 1 05:22:01 2023 UTC (12 months, 1 week ago) by thorpej
Branches: MAIN
Diff to: previous 1.339: preferred, colored
Changes since revision 1.339: +38 -21 lines
Use vmem(9) rather than extent(9) to manage DVMA mappings.

Revision 1.339: download - view: text, markup, annotated - select for diffs
Tue Jul 26 20:08:56 2022 UTC (2 years, 4 months ago) by andvar
Branches: 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
Diff to: previous 1.338: preferred, colored
Changes since revision 1.338: +3 -3 lines
s/functin/function/ in copy pasted comment.

Revision 1.338: download - view: text, markup, annotated - select for diffs
Wed Oct 27 04:15:00 2021 UTC (3 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.337: preferred, colored
Changes since revision 1.337: +3 -3 lines
Use the signal trampoline version constants from <sys/signal.h>.

Revision 1.337: download - view: text, markup, annotated - select for diffs
Tue Aug 17 22:00:31 2021 UTC (3 years, 3 months ago) by andvar
Branches: MAIN
Diff to: previous 1.336: preferred, colored
Changes since revision 1.336: +3 -3 lines
fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.

Revision 1.334.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:38 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.334.2.1: preferred, colored; next MAIN 1.335: preferred, colored
Changes since revision 1.334.2.1: +2 -9 lines
Sync with HEAD.

Revision 1.336: download - view: text, markup, annotated - select for diffs
Sun Jan 24 07:36:54 2021 UTC (3 years, 10 months ago) by mrg
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.335: preferred, colored
Changes since revision 1.335: +2 -9 lines
avoid using 'extern <func|data>;' inside a .c file, but instead
use header files and ensure definitions are not duplicated or
are technically (if not in codegen) wrong.

Revision 1.334.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:02 2020 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.334: preferred, colored
Changes since revision 1.334: +22 -18 lines
Sync w/ HEAD.

Revision 1.335: download - view: text, markup, annotated - select for diffs
Sun Nov 22 03:55:33 2020 UTC (4 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.334: preferred, colored
Changes since revision 1.334: +22 -18 lines
malloc(9) -> kmem(9) (easy, straight-forward cases only, for now)

Revision 1.334: download - view: text, markup, annotated - select for diffs
Thu Jun 11 19:20:45 2020 UTC (4 years, 5 months ago) by ad
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.333: preferred, colored
Changes since revision 1.333: +3 -3 lines
uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched.  It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.

Revision 1.328.16.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:07 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.328.16.2: preferred, colored; branchpoint 1.328: preferred, colored; next MAIN 1.329: preferred, colored
Changes since revision 1.328.16.2: +2 -8 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.328.16.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:53 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.328.16.1: preferred, colored; branchpoint 1.328: preferred, colored
Changes since revision 1.328.16.1: +3 -3 lines
Merge changes from current as of 20200406

Revision 1.333: download - view: text, markup, annotated - select for diffs
Tue Dec 31 13:07:12 2019 UTC (4 years, 11 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.332: preferred, colored
Changes since revision 1.332: +3 -3 lines
Rename uvm_free() -> uvm_availmem().

Revision 1.332: download - view: text, markup, annotated - select for diffs
Sat Dec 21 13:00:23 2019 UTC (4 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.331: preferred, colored
Changes since revision 1.331: +3 -3 lines
uvmexp.free -> uvm_free()

Revision 1.331: download - view: text, markup, annotated - select for diffs
Sun Nov 10 21:16:33 2019 UTC (5 years ago) by chs
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.330: preferred, colored
Changes since revision 1.330: +4 -10 lines
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.

Revision 1.328.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:46 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.328: preferred, colored
Changes since revision 1.328: +4 -7 lines
Sync with HEAD

Revision 1.330: download - view: text, markup, annotated - select for diffs
Sat Apr 6 03:06:27 2019 UTC (5 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Diff to: previous 1.329: preferred, colored
Changes since revision 1.329: +3 -3 lines
Overhaul the API used to fetch and store individual memory cells in
userspace.  The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms.  The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.

Revision 1.329: download - view: text, markup, annotated - select for diffs
Mon Feb 4 03:32:27 2019 UTC (5 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.328: preferred, colored
Changes since revision 1.328: +3 -6 lines
- rework mm_md_readwrite() to avoid fallthrough warnings entirely

Revision 1.323.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:43 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.323.2.2: preferred, colored; next MAIN 1.324: preferred, colored
Changes since revision 1.323.2.2: +5 -1 lines
update from HEAD

Revision 1.328.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:33 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.328: preferred, colored; next MAIN 1.329: preferred, colored
Changes since revision 1.328: +11 -4 lines
Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

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

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

Revision 1.328: download - view: text, markup, annotated - select for diffs
Sat Dec 10 10:41:07 2016 UTC (7 years, 11 months ago) by mrg
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, 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-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, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2, phil-wifi
Diff to: previous 1.327: preferred, colored
Changes since revision 1.327: +4 -2 lines
rearrange slightly to enable crash(8) to build.

Revision 1.327.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 20 23:50:55 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.327: preferred, colored
Changes since revision 1.327: +11 -4 lines
Adapt the machine/arch dependent code to the new {b,c}devsw reference
counting.

XXX Most of these will require testing by someone other than myself, as
I have a limited selection of hardware!

Revision 1.326.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 10 17:59:57 2014 UTC (10 years ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.326: preferred, colored; next MAIN 1.327: preferred, colored
Changes since revision 1.326: +5 -3 lines
Pull up following revision(s) (requested by maxv in ticket #195):
	sys/arch/arm/iomd/iomd_irqhandler.c: revision 1.21
	sys/arch/arm/ofw/ofw_irqhandler.c: revision 1.21
	sys/arch/atari/atari/intr.c: revision 1.24-1.25
	sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.14
	sys/arch/hpcmips/tx/tx39icu.c: revision 1.34
	sys/arch/shark/isa/isa_irqhandler.c: revision 1.27
	sys/arch/sparc/sparc/machdep.c: revision 1.327
	sys/arch/sparc64/dev/psycho.c: revision 1.119
	sys/arch/sparc64/dev/schizo.c: revision 1.32
	sys/arch/sparc64/sparc64/machdep.c: revision 1.279
	sys/arch/sun68k/sun68k/bus.c: revision 1.22
	sys/arch/x86/x86/ipmi.c: revision 1.58
	sys/arch/xen/xen/privcmd.c: revision 1.46-1.49
Fix several memory leaks.

Revision 1.327: download - view: text, markup, annotated - select for diffs
Sun Sep 21 16:36:32 2014 UTC (10 years, 2 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, localcount-20160914
Branch point for: pgoyette-localcount, nick-nhusb
Diff to: previous 1.326: preferred, colored
Changes since revision 1.326: +5 -3 lines
fix leak.

Revision 1.323.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:24 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.323.2.1: preferred, colored
Changes since revision 1.323.2.1: +2 -3 lines
Rebase to HEAD as of a few days ago.

Revision 1.313.2.5: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:09 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.313.2.4: preferred, colored; branchpoint 1.313: preferred, colored; next MAIN 1.314: preferred, colored
Changes since revision 1.313.2.4: +2 -3 lines
sync with head.

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

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

Revision 1.325.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:25 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.325: preferred, colored; next MAIN 1.326: preferred, colored
Changes since revision 1.325: +2 -3 lines
sync with head

Revision 1.326: download - view: text, markup, annotated - select for diffs
Fri Feb 28 10:16:51 2014 UTC (10 years, 9 months ago) by skrll
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.325: preferred, colored
Changes since revision 1.325: +2 -3 lines
G/C sys/simplelock.h includes

Revision 1.313.2.4: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:05 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.313.2.3: preferred, colored; branchpoint 1.313: preferred, colored
Changes since revision 1.313.2.3: +10 -2 lines
sync with (a bit old) head

Revision 1.323.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:01:44 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.323: preferred, colored
Changes since revision 1.323: +15 -5 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.325: download - view: text, markup, annotated - select for diffs
Fri Nov 2 00:01:20 2012 UTC (12 years, 1 month ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.324: preferred, colored
Changes since revision 1.324: +10 -2 lines
Add RAS support for sparc.

Revision 1.313.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:22 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.313.2.2: preferred, colored; branchpoint 1.313: preferred, colored
Changes since revision 1.313.2.2: +7 -13 lines
sync with head

Revision 1.324: download - view: text, markup, annotated - select for diffs
Thu Sep 13 11:49:16 2012 UTC (12 years, 2 months ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base6
Diff to: previous 1.323: preferred, colored
Changes since revision 1.323: +7 -5 lines
Adapt for _UC_TLSBASE addition

Revision 1.323: download - view: text, markup, annotated - select for diffs
Tue Jul 31 14:23:34 2012 UTC (12 years, 4 months ago) by martin
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.322: preferred, colored
Changes since revision 1.322: +2 -5 lines
Move cn_tab initialization to bootstrap()

Revision 1.322: download - view: text, markup, annotated - select for diffs
Mon Jul 30 17:29:55 2012 UTC (12 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.321: preferred, colored
Changes since revision 1.321: +5 -2 lines
move cn_tab initializationt to cpu_startup

Revision 1.321: download - view: text, markup, annotated - select for diffs
Sat Jul 28 19:08:25 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.320: preferred, colored
Changes since revision 1.320: +2 -4 lines
Remove declartions of physmem

Revision 1.320: download - view: text, markup, annotated - select for diffs
Fri Jul 27 05:36:12 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.319: preferred, colored
Changes since revision 1.319: +2 -8 lines
Remove safepri and use IPL_SAFEPRI instead.  This may be defined in a MD
header file (if not, a value of 0 is assmued).

Revision 1.313.6.4: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:08 2012 UTC (12 years, 6 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.313.6.3: preferred, colored; branchpoint 1.313: preferred, colored; next MAIN 1.314: preferred, colored
Changes since revision 1.313.6.3: +25 -12 lines
sync to latest -current.

Revision 1.313.2.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:07:49 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.313.2.1: preferred, colored; branchpoint 1.313: preferred, colored
Changes since revision 1.313.2.1: +26 -13 lines
sync with head.

Revision 1.316.2.1: download - view: text, markup, annotated - select for diffs
Mon May 21 15:25:59 2012 UTC (12 years, 6 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Diff to: previous 1.316: preferred, colored; next MAIN 1.317: preferred, colored
Changes since revision 1.316: +25 -12 lines
Pull up following revision(s) (requested by martin in ticket #274):
	sys/arch/amd64/amd64/process_machdep.c: revision 1.20
	sys/kern/sys_lwp.c: revision 1.54
	sys/arch/sparc64/sparc64/machdep.c: revision 1.267
	sys/arch/mips/mips/cpu_subr.c: revision 1.16
	sys/arch/vax/vax/machdep.c: revision 1.188
	sys/sys/lwp.h: revision 1.161
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.98
	sys/arch/alpha/alpha/machdep.c: revision 1.339
	sys/compat/sys/ucontext.h: revision 1.6
	sys/arch/hppa/hppa/hppa_machdep.c: revision 1.28
	distrib/sets/lists/tests/mi: revision 1.469
	sys/arch/powerpc/powerpc/sig_machdep.c: revision 1.42
	tests/lib/libc/sys/t_lwp_create.c: revision 1.1
	tests/lib/libc/sys/Makefile: revision 1.23
	sys/arch/arm/arm/sig_machdep.c: revision 1.42
	sys/arch/amd64/include/mcontext.h: revision 1.15
	sys/arch/amd64/amd64/machdep.c: revision 1.183
	sys/arch/sh3/sh3/sh3_machdep.c: revision 1.99
	sys/arch/i386/i386/machdep.c: revision 1.727
	sys/compat/netbsd32/netbsd32_lwp.c: revision 1.13
	sys/arch/sparc/sparc/machdep.c: revision 1.319
	sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.76
	sys/arch/m68k/m68k/sig_machdep.c: revision 1.49
	sys/sys/ucontext.h: revision 1.16
	sys/arch/mips/mips/netbsd32_machdep.c: revision 1.9
	lib/libc/sys/_lwp_create.2: revision 1.5
Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.
To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.
Add an exhaustive atf test case, based partly on code from Joel Sing.
Should finally fix the remaining open part of PR kern/43903.

Revision 1.319: download - view: text, markup, annotated - select for diffs
Mon May 21 14:15:18 2012 UTC (12 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Diff to: previous 1.318: preferred, colored
Changes since revision 1.318: +25 -12 lines
Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.

Add an exhaustive atf test case, based partly on code from Joel Sing.

Should finally fix the remaining open part of PR kern/43903.

Revision 1.313.6.3: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:04:42 2012 UTC (12 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.313.6.2: preferred, colored; branchpoint 1.313: preferred, colored
Changes since revision 1.313.6.2: +3 -3 lines
sync to latest -current.

Revision 1.318: download - view: text, markup, annotated - select for diffs
Wed Apr 25 08:19:33 2012 UTC (12 years, 7 months ago) by dholland
Branches: MAIN
CVS tags: jmcneill-usbmp-base9
Diff to: previous 1.317: preferred, colored
Changes since revision 1.317: +3 -3 lines
Fix totally uncompilable code. PR 46374 from Henning Petersen.

Revision 1.313.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:06:54 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.313: preferred, colored
Changes since revision 1.313: +435 -418 lines
sync with head

Revision 1.313.6.2: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:34 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.313.6.1: preferred, colored; branchpoint 1.313: preferred, colored
Changes since revision 1.313.6.1: +3 -39 lines
sync to -current.

Revision 1.317: download - view: text, markup, annotated - select for diffs
Sun Feb 19 21:06:29 2012 UTC (12 years, 9 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base4, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Diff to: previous 1.316: preferred, colored
Changes since revision 1.316: +3 -39 lines
Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

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

Revision 1.316: download - view: text, markup, annotated - select for diffs
Sun Feb 12 16:34:10 2012 UTC (12 years, 9 months ago) by matt
Branches: MAIN
CVS tags: netbsd-6-base, jmcneill-usbmp-base2
Branch point for: netbsd-6
Diff to: previous 1.315: preferred, colored
Changes since revision 1.315: +431 -373 lines
Change old-style function defintions to C89 prototypes.

Approved by releng.

Revision 1.315: download - view: text, markup, annotated - select for diffs
Fri Jan 27 18:53:02 2012 UTC (12 years, 10 months ago) by para
Branches: MAIN
Diff to: previous 1.314: preferred, colored
Changes since revision 1.314: +3 -3 lines
converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged

Revision 1.314: download - view: text, markup, annotated - select for diffs
Mon Dec 12 19:03:11 2011 UTC (12 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.313: preferred, colored
Changes since revision 1.313: +4 -9 lines
implement bdev_size(9) wrapper around d_psize() routine, so we can take
the device lock in relevant places.  avoid doing so while actually dumping.

tested i386 crash dumps still work, and that all touched files compile.

fixes PR#45705.

Revision 1.313: download - view: text, markup, annotated - select for diffs
Sun Jul 17 23:29:10 2011 UTC (13 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.312: preferred, colored
Changes since revision 1.312: +889 -3 lines
Switch sparc and sparc64 to new-style <sys/bus.h>.

Revision 1.312: download - view: text, markup, annotated - select for diffs
Sat Jul 2 13:10:53 2011 UTC (13 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.311: preferred, colored
Changes since revision 1.311: +6 -7 lines
don't try to print fr_arg[6] since it doesn't exist.

Revision 1.309.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:40 2011 UTC (13 years, 5 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.309: preferred, colored; next MAIN 1.310: preferred, colored
Changes since revision 1.309: +43 -4 lines
Catchup with rmind-uvmplock merge.

Revision 1.311: download - view: text, markup, annotated - select for diffs
Sun Jun 12 03:35:46 2011 UTC (13 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.310: preferred, colored
Changes since revision 1.310: +41 -2 lines
Welcome to 5.99.53!  Merge rmind-uvmplock branch:

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

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

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

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

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

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

Revision 1.302.2.7: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:07 2011 UTC (13 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.302.2.6: preferred, colored; branchpoint 1.302: preferred, colored; next MAIN 1.303: preferred, colored
Changes since revision 1.302.2.6: +2 -2 lines
sync with head

Revision 1.305.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:06:46 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.305: preferred, colored; next MAIN 1.306: preferred, colored
Changes since revision 1.305: +7 -5 lines
Sync with HEAD.

Revision 1.310: download - view: text, markup, annotated - select for diffs
Fri Jun 3 17:58:18 2011 UTC (13 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Diff to: previous 1.309: preferred, colored
Changes since revision 1.309: +4 -4 lines
Revert maxdmap/maxsmap constification, as it causes problems on some
sparc models.  Reported by tsutsui@.

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

Revision 1.309: download - view: text, markup, annotated - select for diffs
Mon May 16 18:08:04 2011 UTC (13 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.308: preferred, colored
Changes since revision 1.308: +4 -4 lines
Hack-around sparc/sun4c case, which modifies const maxdmap/maxsmap.
From he@.  OK mrg@.

Revision 1.302.2.5: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:25 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.302.2.4: preferred, colored; branchpoint 1.302: preferred, colored
Changes since revision 1.302.2.4: +1 -1 lines
sync with head

Revision 1.308: download - view: text, markup, annotated - select for diffs
Mon Apr 18 00:26:11 2011 UTC (13 years, 7 months ago) by rmind
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.307: preferred, colored
Changes since revision 1.307: +3 -3 lines
Replace malloc with kmem, and remove M_SUBPROC.

Revision 1.282.4.4: download - view: text, markup, annotated - select for diffs
Tue Mar 8 17:29:46 2011 UTC (13 years, 9 months ago) by riz
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Diff to: previous 1.282.4.3: preferred, colored; branchpoint 1.282: preferred, colored; next MAIN 1.283: preferred, colored
Changes since revision 1.282.4.3: +3 -3 lines
Apply patches (requested by mrg in ticket #1564):
	sys/arch/sparc/dev/zs.c:		patch
	sys/arch/sparc/include/cpu.h:		patch
	sys/arch/sparc/include/z8530var.h:	patch
	sys/arch/sparc/sparc/cpu.c:		patch
	sys/arch/sparc/sparc/cpuvar.h:		patch
	sys/arch/sparc/sparc/db_interface.c:	patch
	sys/arch/sparc/sparc/genassym.cf:	patch
	sys/arch/sparc/sparc/intr.c:		patch
	sys/arch/sparc/sparc/locore.s:		patch
	sys/arch/sparc/sparc/machdep.c:		patch
	sys/arch/sparc/sparc/timer.c:		patch
	sys/arch/sparc/sparc/timer_sun4m.c:	patch
	sys/arch/sparc/sparc/timervar.h:	patch
	sys/arch/sparc/sparc/trap.c:		patch
	sys/arch/sparc/sparc/vm_machdep.c:	patch

- fix a panic in savefpstate.  idea, and code suggestions from uwe
- convert xpmsg_lock to IPL_SCHED.  the old spl/simple_lock code ran at
  splsched(), and this significantly helps with stability under load when
  running with multiple active CPUs
- in strayintr() don't print about stray zs inters in MP case
- fix a deadlock in xcall()
- consolidate the interrupt evcnt(9) into a full set of per-IPL per-CPU
  soft/hard counters
- fix xcall() failure messages in some cases
- addd new ddb command "mach xcall"
- use schedintr() (not schedintr_4m()) on MP or single CPU configurations
- call hardclock() the same way on cpu0 in MP and !MP cases
- request the appropriate stack space for nmi_sun4m, in particular,
  make sure we have space for %g2...%g5.  now entering ddb via eg,
  serial break no longer causes cpu1 to fault.
- give memfault_sun*() some entry points that both gdb and ddb will find.
from tsutsui:
- fix panic in interrupt handlers in zs

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

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

Revision 1.307: download - view: text, markup, annotated - select for diffs
Fri Mar 4 22:25:28 2011 UTC (13 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: bouyer-quota2-nbase
Diff to: previous 1.306: preferred, colored
Changes since revision 1.306: +4 -4 lines
Refactor ps_strings access. Based on PK_32, write either the normal
version or the 32bit compat layout in execve1. Introduce a new function
copyin_psstrings for reading it back from userland and converting it to
the native layout. Refactor procfs to share most of the code with the
kern.proc_args sysctl handler.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

Revision 1.306: download - view: text, markup, annotated - select for diffs
Thu Feb 24 04:28:48 2011 UTC (13 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.305: preferred, colored
Changes since revision 1.305: +4 -2 lines
Allow storing and receiving the LWP private pointer via ucontext_t
on all platforms except VAX and IA64. Add fast access via register for
AMD64, i386 and SH3 ports. Use this fast access in libpthread to replace
the stack based pthread_self(). Implement skeleton support for Alpha,
HPPA, PowerPC, SPARC and SPARC64, but leave it disabled.

Ports that support this feature provide __HAVE____LWP_GETPRIVATE_FAST in
machine/types.h and a corresponding __lwp_getprivate_fast in
machine/mcontext.h.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

Revision 1.305: download - view: text, markup, annotated - select for diffs
Fri Jan 14 02:06:31 2011 UTC (13 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: uebayasi-xip-base7, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.304: preferred, colored
Changes since revision 1.304: +3 -2 lines
Retire struct user, remove sys/user.h inclusions.  Note sys/user.h header
as obsolete.  Remove USER_TO_UAREA/UAREA_TO_USER macros.

Various #include fixes and review by matt@.

Revision 1.304: download - view: text, markup, annotated - select for diffs
Thu Jan 13 05:20:27 2011 UTC (13 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.303: preferred, colored
Changes since revision 1.303: +3 -3 lines
introduce a hack to workaround the savefpstate IPI get's NULL
struct fpstate *.

add a new entry point ipi_savefpstate() that is used for this IPI
instead of the plain ipi_savefpstate().  check for %o0 being NULL,
and if so, just return.

add event counters for the savefpstate IPI, and another one for
when it detects the NULL problem.

make the cpu_info struct xmpsg be aligned to a single cache line.

with this change applied (and another minor change in testing) my
SS20 with dual SM75's has survived for 17 hours on build.sh -j5,
and has reported 7 NULL savefps.  (the minor change seems to have
a significant effect at reducing this number, but more testing is
needed for it.)


XXX:  this is horrible and we really need to find the real problem
XXX:  but this should let people use sparc smp again, and fixes
XXX:  for the real problem can be tested by seeing if any of the
XXX:  savefp IPI null counter becomes non-zero.

Revision 1.303: download - view: text, markup, annotated - select for diffs
Mon Dec 20 00:25:44 2010 UTC (13 years, 11 months ago) by matt
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.302: preferred, colored
Changes since revision 1.302: +10 -10 lines
Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits.  Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.

Revision 1.301.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:39:49 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.301: preferred, colored; next MAIN 1.302: preferred, colored
Changes since revision 1.301: +2 -11 lines
Sync with HEAD.

Revision 1.302.2.3: download - view: text, markup, annotated - select for diffs
Sun Apr 25 19:39:00 2010 UTC (14 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.302.2.2: preferred, colored; branchpoint 1.302: preferred, colored
Changes since revision 1.302.2.2: +3 -3 lines
A round of compile and other fixes to previous.

Revision 1.302.2.2: download - view: text, markup, annotated - select for diffs
Sun Apr 25 15:27:37 2010 UTC (14 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.302.2.1: preferred, colored; branchpoint 1.302: preferred, colored
Changes since revision 1.302.2.1: +5 -14 lines
- Invent mm_md_getva() and mm_md_relva() routines, provided by MD and
  indicated with __HAVE_MM_MD_PREFER_VA.  It will be used to deal with
  cache aliasing issues and thus fix little MIPS, ARM and friends.

- Convert dev_mem_readwrite() to use unmanaged mappings.  Fix a missed
  offset addition in a case of direct map.  Sprinkle various comments in
  the memory device driver.

- Add missing direct map handling on hp700 and vax.  Make checks across
  m68k ports more consistent, reduce the diffs.  Fix kernacc check miss
  on news68k.  Minor off-by-one fix for alpha.  Add MEMC_PHYS_BASE for
  mmap() case check on acorn26.  Misc clean-up.

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

Revision 1.302.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 18 04:36:52 2010 UTC (14 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.302: preferred, colored
Changes since revision 1.302: +50 -2 lines
Unify /dev/{mem,kmem,zero,null} implementations in MI code.  Based on patch
from Joerg Sonnenberger, proposed on tech-kern@, in February 2008.

Work and depression still in progress.

Revision 1.277.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:02:58 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.277.2.4: preferred, colored; branchpoint 1.277: preferred, colored; next MAIN 1.278: preferred, colored
Changes since revision 1.277.2.4: +20 -28 lines
sync with head

Revision 1.302: download - view: text, markup, annotated - select for diffs
Mon Feb 8 19:02:31 2010 UTC (14 years, 10 months ago) by joerg
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.301: preferred, colored
Changes since revision 1.301: +2 -11 lines
Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.

Revision 1.301: download - view: text, markup, annotated - select for diffs
Tue Jan 26 03:06:01 2010 UTC (14 years, 10 months ago) by mrg
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.300: preferred, colored
Changes since revision 1.300: +6 -3 lines
convert fpulock into fpu_mtx.

Revision 1.300: download - view: text, markup, annotated - select for diffs
Sun Jan 3 23:03:21 2010 UTC (14 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.299: preferred, colored
Changes since revision 1.299: +3 -3 lines
add an explicit "bool mpsafe" to intr_establish().  only set it to true
for the sun4m timer/counter interrupts.  this gets lev10/14 working again
on SMP systems, where those interrupts started taking the kernel lock and
hanging...

Revision 1.299: download - view: text, markup, annotated - select for diffs
Thu Dec 10 14:13:52 2009 UTC (15 years ago) by matt
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.298: preferred, colored
Changes since revision 1.298: +3 -3 lines
Change u_long to vaddr_t/vsize_t in exec code where appropriate (mostly
involves setregs and vmcmds).  Should result in no code differences.

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

Revision 1.297: download - view: text, markup, annotated - select for diffs
Sat Nov 21 04:16:51 2009 UTC (15 years ago) by rmind
Branches: MAIN
Diff to: previous 1.296: preferred, colored
Changes since revision 1.296: +8 -8 lines
Use lwp_getpcb() on sparc{64} and sun2/3 MD code, clean from struct user usage.

Revision 1.296: download - view: text, markup, annotated - select for diffs
Sat Nov 7 07:27:46 2009 UTC (15 years, 1 month ago) by cegger
Branches: MAIN
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +9 -8 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.282.4.3: download - view: text, markup, annotated - select for diffs
Sun Oct 18 14:40:40 2009 UTC (15 years, 1 month ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.282.4.2: preferred, colored; branchpoint 1.282: preferred, colored
Changes since revision 1.282.4.2: +3 -36 lines
Back out ticket 969

Revision 1.282.4.2: download - view: text, markup, annotated - select for diffs
Sun Oct 18 13:43:45 2009 UTC (15 years, 1 month ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.282.4.1: preferred, colored; branchpoint 1.282: preferred, colored
Changes since revision 1.282.4.1: +37 -4 lines
Pull up following revision(s) (requested by macallan in ticket #969):
	sys/arch/sparc/include/bus.h: revision 1.56
	sys/arch/sparc/sparc/machdep.c: revision 1.294
do as phone suggested - remove sparc_bus_map_large() again and use a =20=
flag
instead ( BUS_SPACE_MAP_LARGE )

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

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

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

Revision 1.294: download - view: text, markup, annotated - select for diffs
Tue May 26 03:30:24 2009 UTC (15 years, 6 months ago) by macallan
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Diff to: previous 1.293: preferred, colored
Changes since revision 1.293: +22 -10 lines
do as phone suggested - remove sparc_bus_map_large() again and use a flag
instead ( BUS_SPACE_MAP_LARGE )

Revision 1.293: download - view: text, markup, annotated - select for diffs
Sat May 16 17:01:15 2009 UTC (15 years, 6 months ago) by cegger
Branches: MAIN
Diff to: previous 1.292: preferred, colored
Changes since revision 1.292: +5 -5 lines
KNF, same object code generated.

Revision 1.288.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:18:36 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.288: preferred, colored; next MAIN 1.289: preferred, colored
Changes since revision 1.288: +29 -7 lines
Sync with HEAD.

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

Revision 1.277.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:11:55 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.277.2.1: preferred, colored; branchpoint 1.277: preferred, colored
Changes since revision 1.277.2.1: +74 -238 lines
sync with head.

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

Revision 1.292: download - view: text, markup, annotated - select for diffs
Thu Apr 16 16:55:00 2009 UTC (15 years, 7 months ago) by macallan
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.291: preferred, colored
Changes since revision 1.291: +23 -2 lines
Add sparc_bus_map_large() to map large bus ranges like framebuffers and
apertures outside the IODEV range. ZX for example needs 8MB for the framebuffer
alone while the IODEV range provides only 16MB.

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

Revision 1.290: download - view: text, markup, annotated - select for diffs
Wed Mar 18 16:00:14 2009 UTC (15 years, 8 months ago) by cegger
Branches: MAIN
Diff to: previous 1.289: preferred, colored
Changes since revision 1.289: +4 -4 lines
bzero -> memset

Revision 1.282.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:29:25 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.282.2.1: preferred, colored; branchpoint 1.282: preferred, colored
Changes since revision 1.282.2.1: +5 -4 lines
Sync with HEAD.

Revision 1.289: download - view: text, markup, annotated - select for diffs
Fri Feb 13 22:41:03 2009 UTC (15 years, 9 months ago) by apb
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.288: preferred, colored
Changes since revision 1.288: +3 -2 lines
Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.

Revision 1.282.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 2 03:30:33 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +3 -3 lines
Pull up following revision(s) (requested by ad in ticket #346):
	sys/arch/alpha/alpha/machdep.c: revision 1.311
	sys/arch/amiga/amiga/machdep.c: revision 1.211
	sys/arch/atari/atari/machdep.c: revision 1.153
	sys/arch/hp700/hp700/machdep.c: revision 1.53
	sys/arch/i386/i386/dumpsys.c: revision 1.5
	sys/arch/mips/mips/mips_machdep.c: revision 1.206
	sys/arch/mvme68k/mvme68k/machdep.c: revision 1.132
	sys/arch/news68k/news68k/machdep.c: revision 1.75
	sys/arch/next68k/next68k/machdep.c: revision 1.88
	sys/arch/sparc/sparc/machdep.c: revision 1.285
	sys/arch/sparc64/sparc64/machdep.c: revision 1.230
	sys/arch/sun2/sun2/machdep.c: revision 1.56
	sys/arch/sun3/sun3/machdep.c: revision 1.188
	sys/arch/sun3/sun3x/machdep.c: revision 1.114
	sys/arch/x68k/x68k/machdep.c: revision 1.153
dumpsys: don't spew numbers into the log.

Revision 1.288: download - view: text, markup, annotated - select for diffs
Wed Jan 21 16:24:34 2009 UTC (15 years, 10 months ago) by he
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +4 -4 lines
Re-adapt to the changed return types for major() and minor().

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

Revision 1.276.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:31 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.276.6.3: preferred, colored; branchpoint 1.276: preferred, colored; next MAIN 1.277: preferred, colored
Changes since revision 1.276.6.3: +41 -219 lines
Sync with HEAD.

Revision 1.287: download - view: text, markup, annotated - select for diffs
Mon Jan 12 08:12:46 2009 UTC (15 years, 10 months ago) by cegger
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.286: preferred, colored
Changes since revision 1.286: +6 -6 lines
use PRIu64 format to printf major() and minor() values

Revision 1.286: download - view: text, markup, annotated - select for diffs
Sun Jan 11 00:25:12 2009 UTC (15 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.285: preferred, colored
Changes since revision 1.285: +9 -2 lines
add an empty module_init_md(), allows a MODULAR kernel to link.

Revision 1.280.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:13:26 2008 UTC (15 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.280.2.1: preferred, colored; branchpoint 1.280: preferred, colored; next MAIN 1.281: preferred, colored
Changes since revision 1.280.2.1: +7 -228 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.285: download - view: text, markup, annotated - select for diffs
Tue Nov 25 15:51:34 2008 UTC (16 years ago) by ad
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.284: preferred, colored
Changes since revision 1.284: +3 -3 lines
dumpsys: don't spew numbers into the log.

Revision 1.284: download - view: text, markup, annotated - select for diffs
Wed Nov 19 18:36:01 2008 UTC (16 years ago) by ad
Branches: MAIN
Diff to: previous 1.283: preferred, colored
Changes since revision 1.283: +4 -227 lines
Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.283: download - view: text, markup, annotated - select for diffs
Tue Nov 11 06:46:44 2008 UTC (16 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +4 -2 lines
It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.

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

Revision 1.282: download - view: text, markup, annotated - select for diffs
Thu Oct 16 19:38:36 2008 UTC (16 years, 1 month ago) by martin
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.281: preferred, colored
Changes since revision 1.281: +4 -3 lines
Add misissing include and fix a few typos.

Revision 1.281: download - view: text, markup, annotated - select for diffs
Wed Oct 15 06:51:18 2008 UTC (16 years, 1 month ago) by wrstuden
Branches: MAIN
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +38 -3 lines
Merge wrstuden-revivesa into HEAD.

Revision 1.278.2.6: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:33:34 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.278.2.5: preferred, colored; branchpoint 1.278: preferred, colored; next MAIN 1.279: preferred, colored
Changes since revision 1.278.2.5: +2 -10 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.279.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 3 18:37:55 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.279: preferred, colored; next MAIN 1.280: preferred, colored
Changes since revision 1.279: +2 -10 lines
Sync with head.

Revision 1.276.6.3: download - view: text, markup, annotated - select for diffs
Wed Jul 2 19:08:17 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.276.6.2: preferred, colored; branchpoint 1.276: preferred, colored
Changes since revision 1.276.6.2: +0 -8 lines
Sync with HEAD.

Revision 1.280: download - view: text, markup, annotated - select for diffs
Wed Jul 2 17:28:56 2008 UTC (16 years, 5 months ago) by ad
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.279: preferred, colored
Changes since revision 1.279: +2 -10 lines
Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@.

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

Revision 1.278.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 22 18:12:03 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.278.2.3: preferred, colored; branchpoint 1.278: preferred, colored
Changes since revision 1.278.2.3: +38 -3 lines
Re-add cpu_upcall() and page fault code. i386 kernels now compile.
They don't boot, but that seems to be a consequence of current from the
day this branch was started.

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

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

Also fix build.

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

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

Revision 1.276.8.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:32:47 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +13 -20 lines
sync with head.

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

Revision 1.278.2.3: download - view: text, markup, annotated - select for diffs
Wed May 14 19:54:10 2008 UTC (16 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.278.2.2: preferred, colored; branchpoint 1.278: preferred, colored
Changes since revision 1.278.2.2: +16 -16 lines
Per discussion with ad at n dot o, revert signal mask handling
changes.

The l_sigstk changes are most likely totally un-needed as SA will
never use a signal stack - we send an upcall (or will as other
diffs are brought in).

The l_sigmask changes were too controvertial. In all honesty, I
think it's probably best to revert them. The main reason they were
there is the fact that in an SA process, we don't mask signals per
kernel thread, we mask them per user thread. In the kernel, we want
them all to get turned into upcalls. Thus the normal state of
l_sigmask in an SA process is for it to always be empty.

While we are in the process of delivering a signal, we want to
temporarily mask a signal (so we don't recursively exhaust our
upcall stacks). However signal delivery is rare (important, but
rare), and delivering back-to-back signals is even rarer. So rather
than cause every user of a signal mask to be prepared for this very
rare case, we will just add a second check later in the signal
delivery code. Said change is not in this diff.

This also un-compensates all of our compatability code for dealing
with SA. SA is a NetBSD-specific thing, so there's no need for
Irix, Linux, Solaris, SVR4 and so on to cope with it.

As previously, everything other than kern_sa.c compiles in i386
GENERIC as of this checkin. I will switch to ALL soon for compile
testing.

Revision 1.278.2.2: download - view: text, markup, annotated - select for diffs
Wed May 14 01:35:01 2008 UTC (16 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.278.2.1: preferred, colored; branchpoint 1.278: preferred, colored
Changes since revision 1.278.2.1: +2 -3 lines
Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.

Revision 1.278.2.1: download - view: text, markup, annotated - select for diffs
Sat May 10 23:48:46 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.278: preferred, colored
Changes since revision 1.278: +17 -16 lines
Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.

Revision 1.278: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:36 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.277: preferred, colored
Changes since revision 1.277: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.277: download - view: text, markup, annotated - select for diffs
Thu Apr 24 18:39:21 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +13 -13 lines
Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.274.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:03 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.274: preferred, colored; next MAIN 1.275: preferred, colored
Changes since revision 1.274: +3 -2 lines
Sync with HEAD.

Revision 1.257.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:39:25 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.257.2.4: preferred, colored; next MAIN 1.258: preferred, colored
Changes since revision 1.257.2.4: +6 -5 lines
sync with head

Revision 1.273.10.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:48:58 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.273.10.1: preferred, colored; branchpoint 1.273: preferred, colored; next MAIN 1.274: preferred, colored
Changes since revision 1.273.10.1: +6 -5 lines
sync with HEAD

Revision 1.274.8.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:10:25 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.274.8.1: preferred, colored; branchpoint 1.274: preferred, colored; next MAIN 1.275: preferred, colored
Changes since revision 1.274.8.1: +1 -0 lines
Sync with HEAD

Revision 1.276: download - view: text, markup, annotated - select for diffs
Sat Jan 5 22:48:21 2008 UTC (16 years, 11 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +3 -2 lines
Add missing include.

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

Revision 1.274.4.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:42:46 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.274: preferred, colored; next MAIN 1.275: preferred, colored
Changes since revision 1.274: +5 -5 lines
Sync with head.

Revision 1.275: download - view: text, markup, annotated - select for diffs
Thu Dec 20 23:02:41 2007 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.274: preferred, colored
Changes since revision 1.274: +5 -5 lines
Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

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

Revision 1.274: download - view: text, markup, annotated - select for diffs
Wed Oct 17 19:57:15 2007 UTC (17 years, 1 month ago) by garbled
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, mjf-devfs, bouyer-xeni386
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +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.271.10.2: download - view: text, markup, annotated - select for diffs
Wed Oct 3 19:25:16 2007 UTC (17 years, 2 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.271.10.1: preferred, colored; branchpoint 1.271: preferred, colored; next MAIN 1.272: preferred, colored
Changes since revision 1.271.10.1: +3 -3 lines
Sync with HEAD

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

Revision 1.271.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:17:01 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.271.2.1: preferred, colored; branchpoint 1.271: preferred, colored; next MAIN 1.272: preferred, colored
Changes since revision 1.271.2.1: +3 -3 lines
Sync with head.

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

Revision 1.273: download - view: text, markup, annotated - select for diffs
Sun Jul 8 10:19:23 2007 UTC (17 years, 5 months ago) by pooka
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, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, jmcneill-pm, hpcarm-cleanup, bouyer-xenamd64
Branch point for: matt-armv6
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +3 -3 lines
Initialize the link context in a signal frame to the receiving lwp's
link context instead of NULL.  Otherwise, if we got a signal while the
lwp had a link context set, the link context would be set to NULL upon
return from signal delivery.

christos@tech-kern: "I think you are right."

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

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

Revision 1.272: download - view: text, markup, annotated - select for diffs
Thu May 17 14:51:30 2007 UTC (17 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +7 -3 lines
merge yamt-idlelwp branch.  asked by core@.  some ports still needs work.

from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.

Revision 1.267.2.3: download - view: text, markup, annotated - select for diffs
Sat Apr 28 03:55:25 2007 UTC (17 years, 7 months ago) by mrg
Branches: yamt-idlelwp
Diff to: previous 1.267.2.2: preferred, colored; branchpoint 1.267: preferred, colored; next MAIN 1.268: preferred, colored
Changes since revision 1.267.2.2: +7 -3 lines
port yamt-idlelwp to sparc.  this does not work yet, but others have
asked that i commit this work-in-progress.

currently kernel threads end up running with PSR_S missing from %psr
and end up failing to dump a user corefile.

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

Revision 1.271: download - view: text, markup, annotated - select for diffs
Sun Mar 4 22:12:44 2007 UTC (17 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, ppcoea-renovation, mjf-ufs-trans
Diff to: previous 1.270: preferred, colored
Changes since revision 1.270: +3 -3 lines
fix fall out from caddr_t changes.

Revision 1.270: download - view: text, markup, annotated - select for diffs
Sun Mar 4 09:22:04 2007 UTC (17 years, 9 months ago) by macallan
Branches: MAIN
Diff to: previous 1.269: preferred, colored
Changes since revision 1.269: +5 -5 lines
make this compile again

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

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

Revision 1.257.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:08:20 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.257.2.2: preferred, colored
Changes since revision 1.257.2.2: +52 -69 lines
sync with head.

Revision 1.268: download - view: text, markup, annotated - select for diffs
Thu Feb 22 16:48:59 2007 UTC (17 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Diff to: previous 1.267: preferred, colored
Changes since revision 1.267: +4 -4 lines
TRUE -> true, FALSE -> false

Revision 1.267: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:12 2007 UTC (17 years, 10 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +49 -66 lines
Merge newlock2 to head.

Revision 1.264.2.4: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:11 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.264.2.3: preferred, colored; branchpoint 1.264: preferred, colored; next MAIN 1.265: preferred, colored
Changes since revision 1.264.2.3: +3 -3 lines
Sync with head.

Revision 1.264.2.3: download - view: text, markup, annotated - select for diffs
Tue Jan 30 13:49:37 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.264.2.2: preferred, colored; branchpoint 1.264: preferred, colored
Changes since revision 1.264.2.2: +17 -54 lines
Remove support for SA. Ok core@.

Revision 1.265.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 19 22:39:52 2007 UTC (17 years, 10 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.265: preferred, colored; next MAIN 1.266: preferred, colored
Changes since revision 1.265: +3 -3 lines
Pull up following revision(s) (requested by jdc in ticket #372):
	sys/arch/sparc/sparc/machdep.c: revision 1.266
Allow SUN4 class machines to boot again by making process virtual
addresses avoid the MMU "hole", as is done on SUN4C class machines.

Revision 1.266: download - view: text, markup, annotated - select for diffs
Sun Jan 14 11:19:44 2007 UTC (17 years, 10 months ago) by jdc
Branches: MAIN
CVS tags: newlock2-nbase, newlock2-base
Diff to: previous 1.265: preferred, colored
Changes since revision 1.265: +3 -3 lines
Apply the same UBC, data and stack limits that are applied to SUN4C to
SUN4 as well.

The data and stack limits are definitely needed, otherwise MI code will try
and map shared libraries in the 4/4c MMU hole.  The UBC limits may not be
necessary, but SUN4 machines are unlikely to have much larger amounts of
memory than this caters for (64Mb).

SUN4 machines will now boot userland with this change.

Thanks to martin@, mrg@ and uwe@ for hints while debugging this.

Revision 1.264.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:47:51 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.264.2.1: preferred, colored; branchpoint 1.264: preferred, colored
Changes since revision 1.264.2.1: +49 -29 lines
sparc MD changes.

Revision 1.257.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:46:58 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.257.2.1: preferred, colored
Changes since revision 1.257.2.1: +6 -9 lines
sync with head.

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

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

Revision 1.265: download - view: text, markup, annotated - select for diffs
Wed Oct 25 07:04:13 2006 UTC (18 years, 1 month ago) by he
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, netbsd-4-base
Branch point for: netbsd-4
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +3 -3 lines
Propagate const, prompted by new gcc.

Revision 1.263.8.1: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:18 2006 UTC (18 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.263: preferred, colored; next MAIN 1.264: preferred, colored
Changes since revision 1.263: +5 -8 lines
sync with head.

Revision 1.263.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:43:24 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.263: preferred, colored; next MAIN 1.264: preferred, colored
Changes since revision 1.263: +5 -8 lines
sync with head

Revision 1.264: download - view: text, markup, annotated - select for diffs
Sun Sep 3 22:27:45 2006 UTC (18 years, 3 months ago) by gdamore
Branches: MAIN
CVS tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +5 -8 lines
Convert both sparc and sparc64 to MI todr.

Revision 1.253.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 12 21:34:34 2006 UTC (18 years, 5 months ago) by tron
Branches: netbsd-3-0
CVS tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE
Diff to: previous 1.253: preferred, colored; next MAIN 1.254: preferred, colored
Changes since revision 1.253: +6 -4 lines
Apply patch (requested by fair in ticket #1401):
Avoid panic in memory management on some SPARC systems with QFE cards.
This fixes PR port-sparc/33340 and  PR port-sparc/33894.

Revision 1.253.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 12 21:26:23 2006 UTC (18 years, 5 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.253: preferred, colored; next MAIN 1.254: preferred, colored
Changes since revision 1.253: +6 -4 lines
Apply patch (requested by fair in ticket #1401):
Avoid panic in memory management on some SPARC systems with QFE cards.
This fixes PR port-sparc/33340 and  PR port-sparc/33894.

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

Revision 1.263: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:19:08 2005 UTC (19 years ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +3 -3 lines
merge ktrace-lwp.

Revision 1.228.2.8: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:28:36 2005 UTC (19 years ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.228.2.7: preferred, colored; next MAIN 1.229: preferred, colored
Changes since revision 1.228.2.7: +115 -211 lines
Sync with head.

Revision 1.260.2.3: download - view: text, markup, annotated - select for diffs
Tue Nov 29 21:23:04 2005 UTC (19 years ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.260.2.2: preferred, colored; branchpoint 1.260: preferred, colored; next MAIN 1.261: preferred, colored
Changes since revision 1.260.2.2: +5 -3 lines
sync with head.

Revision 1.262: download - view: text, markup, annotated - select for diffs
Thu Nov 24 13:08:34 2005 UTC (19 years ago) by yamt
Branches: MAIN
CVS tags: yamt-readahead-base3, ktrace-lwp-base
Diff to: previous 1.261: preferred, colored
Changes since revision 1.261: +5 -3 lines
bus_dmamem_map: honour BUS_DMA_NOWAIT.  noted by Manuel Bouyer.
bus_space_map: always do NOWAIT allocation as it used to be before yamt-km.

we have too many copies!

Revision 1.260.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 22 16:08:03 2005 UTC (19 years ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.260.2.1: preferred, colored; branchpoint 1.260: preferred, colored
Changes since revision 1.260.2.1: +2369 -0 lines
sync with head.

Revision 1.261: download - view: text, markup, annotated - select for diffs
Wed Nov 16 21:42:50 2005 UTC (19 years ago) by uwe
Branches: MAIN
CVS tags: yamt-readahead-base2
Diff to: previous 1.260: preferred, colored
Changes since revision 1.260: +14 -14 lines
Use uint<N>_t.  Drop trailing whitespace.

Revision 1.260.2.1
Mon Nov 14 03:30:49 2005 UTC (19 years ago) by yamt
Branches: yamt-readahead
FILE REMOVED
Changes since revision 1.260: +0 -2369 lines
file machdep.c was added on branch yamt-readahead on 2005-11-22 16:08:03 +0000

Revision 1.260: download - view: text, markup, annotated - select for diffs
Mon Nov 14 03:30:49 2005 UTC (19 years ago) by uwe
Branches: MAIN
CVS tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base
Branch point for: yamt-readahead
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +101 -199 lines
ANSIify.  Same binary code is produced for GENERIC.MP + KGDB + DDB.

Revision 1.228.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 13:59:08 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.228.2.6: preferred, colored
Changes since revision 1.228.2.6: +16 -11 lines
Sync with HEAD. Here we go again...

Revision 1.258.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 2 11:57:55 2005 UTC (19 years, 1 month ago) by yamt
Branches: yamt-vop
Diff to: previous 1.258: preferred, colored; next MAIN 1.259: preferred, colored
Changes since revision 1.258: +4 -4 lines
sync with head.

Revision 1.259: download - view: text, markup, annotated - select for diffs
Wed Oct 26 23:21:47 2005 UTC (19 years, 1 month ago) by uwe
Branches: MAIN
CVS tags: yamt-vop-base3
Diff to: previous 1.258: preferred, colored
Changes since revision 1.258: +4 -4 lines
Move md_flags back to mdproc.  MDP_FIXALIGN, the only flag we have, is
per-process, not per-lwp.  We don't have per-lwp flags currently.

Revision 1.258: download - view: text, markup, annotated - select for diffs
Wed Sep 14 15:03:50 2005 UTC (19 years, 2 months ago) by he
Branches: MAIN
CVS tags: yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +7 -2 lines
We need <compat/sys/signal.h> and <compat/sys/signalvar.h> here
for native_sigset13_to_sigset, sigset13_t, and sigvec.
The includes in sparc's machdep.c is conditional on COMPAT_13, as is
the use of native_sigset13_to_sigset.

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

Revision 1.256: download - view: text, markup, annotated - select for diffs
Fri Jun 3 22:15:48 2005 UTC (19 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +8 -8 lines
Rename ncpu to ncpus (as other ports call it), to avoid shadow warnings.
Sprinkle some const.

Revision 1.251.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:23 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.251: preferred, colored; next MAIN 1.252: preferred, colored
Changes since revision 1.251: +17 -10 lines
sync with -current

Revision 1.255: download - view: text, markup, annotated - select for diffs
Mon Apr 25 15:02:07 2005 UTC (19 years, 7 months ago) by lukem
Branches: MAIN
CVS tags: kent-audio2-base
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +3 -3 lines
Move the MI printing of `copyright' to the MD cpu_startup() code
where the printing of `version' is already performed.
This has the benefit of allowing the copyright to be available
via dmesg(8) on platforms which need the `msgbuf' to be setup
in cpu_startup() before printed output is remembered.

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

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

Revision 1.245.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 20 11:58:36 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Diff to: previous 1.245.2.1: preferred, colored; next MAIN 1.245.2.2: preferred, colored
Changes since revision 1.245.2.1: +3 -3 lines
Pull up revision 1.252 (requested by chs in ticket #1160):
define a new LWP flag which indicates that we're in the process of
doing a context switch.  use this on sparc and sparc64 to avoid trying
to access user memory (writing the register windows back to the stack)
in this case (since it's both unnecessary and wrong).

Revision 1.245.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 20 11:58:32 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-2-0
CVS tags: netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE
Diff to: previous 1.245.2.1: preferred, colored; branchpoint 1.245: preferred, colored; next MAIN 1.246: preferred, colored
Changes since revision 1.245.2.1: +3 -3 lines
Pull up revision 1.252 (requested by chs in ticket #1160):
define a new LWP flag which indicates that we're in the process of
doing a context switch.  use this on sparc and sparc64 to avoid trying
to access user memory (writing the register windows back to the stack)
in this case (since it's both unnecessary and wrong).

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

Revision 1.253: download - view: text, markup, annotated - select for diffs
Wed Mar 9 19:04:45 2005 UTC (19 years, 9 months ago) by matt
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, 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-1-RELEASE
Branch point for: netbsd-3-0, netbsd-3
Diff to: previous 1.252: preferred, colored
Changes since revision 1.252: +6 -3 lines
Add a dm_maxsegsz public member to bus_dmamap_t.  This allows a user of the API
to select the maximum segment size for each bus_dmamap_load (up to the maxsegsz
supplied to bus_dmamap_create).  dm_maxsegsz is reset to the value supplied to
bus_dmamap_create when the dmamap is unloaded.

Revision 1.251.6.2: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:40 2005 UTC (19 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.251.6.1: preferred, colored; branchpoint 1.251: preferred, colored
Changes since revision 1.251.6.1: +3 -3 lines
sync with head.

Revision 1.251.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 15:16:47 2005 UTC (19 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +11 -7 lines
- use new apis.
- don't leave page mapped at kva being freed.

Revision 1.228.2.5: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:44:56 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.228.2.4: preferred, colored
Changes since revision 1.228.2.4: +3 -3 lines
Sync with HEAD.

Revision 1.252: download - view: text, markup, annotated - select for diffs
Sun Jan 30 16:56:26 2005 UTC (19 years, 10 months ago) by chs
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +3 -3 lines
define a new LWP flag which indicates that we're in the process of
doing a context switch.  use this on sparc and sparc64 to avoid trying
to access user memory (writing the register windows back to the stack)
in this case (since it's both unnecessary and wrong).

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

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

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

Revision 1.251: download - view: text, markup, annotated - select for diffs
Wed Jun 30 21:16:39 2004 UTC (20 years, 5 months ago) by pk
Branches: MAIN
CVS tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +29 -2 lines
Introduce bus_space_tag_alloc() for the common parts of bus tag allocation.

Revision 1.250: download - view: text, markup, annotated - select for diffs
Mon Jun 28 10:14:13 2004 UTC (20 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.249: preferred, colored
Changes since revision 1.249: +5 -5 lines
Rename bus_translate_address_generic => bus_space_translate_address_generic()
and move prototype to <machine/bus.h>.

Revision 1.249: download - view: text, markup, annotated - select for diffs
Sun Jun 27 18:24:46 2004 UTC (20 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +100 -32 lines
Always use `full bus space'. In order to implement this more efficiently,
require that all bus tags have pointers to bus_space_read/write functions,
i.e. no run-time hunting for the first "upstream" implementation.
Since this changes the way bus tags should be constructed it makes sense
to do the same thing for the rest of the bus space methods.
So, now bus space tags are generally constructed by copying the parent's bus
tag and then overriding the methods that the bus driver needs to handle,
instead of starting with an empty bus tag and fiiling in only the fields needed.

Revision 1.245.2.1: download - view: text, markup, annotated - select for diffs
Thu Apr 29 04:19:33 2004 UTC (20 years, 7 months ago) by jmc
Branches: netbsd-2-0
CVS tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +27 -4 lines
Pullup rev 1.248 (requested by pk in ticket #211)

Changes to fix and help diagnose MMU resource shortage on small sun4c systems

Revision 1.248: download - view: text, markup, annotated - select for diffs
Tue Apr 27 11:25:24 2004 UTC (20 years, 7 months ago) by pk
Branches: MAIN
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +27 -4 lines
Limit buffer cache VM to prevent too many locked `PMEGs' on small sun4c
systems.

Revision 1.247: download - view: text, markup, annotated - select for diffs
Sun Apr 4 18:24:22 2004 UTC (20 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +4 -4 lines
Remove private declarations of maxdmap and maxsmap.

Revision 1.246: download - view: text, markup, annotated - select for diffs
Sat Apr 3 12:38:14 2004 UTC (20 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +10 -2 lines
On sun4c, clip max data & stack size to avoid the MMU hole.

Revision 1.245: download - view: text, markup, annotated - select for diffs
Wed Mar 24 15:34:51 2004 UTC (20 years, 8 months ago) by atatat
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +12 -7 lines
Tango on sysctl_createv() and flags.  The flags have all been renamed,
and sysctl_createv() now uses more arguments.

Revision 1.244: download - view: text, markup, annotated - select for diffs
Thu Jan 1 15:02:32 2004 UTC (20 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +12 -6 lines
Enable reset of a process's alternative signal stack flag.

Revision 1.243: download - view: text, markup, annotated - select for diffs
Tue Dec 30 14:29:30 2003 UTC (20 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +5 -13 lines
When powering down, first ask the PROM to do it for us.

Revision 1.242: download - view: text, markup, annotated - select for diffs
Tue Dec 30 12:33:22 2003 UTC (20 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +6 -87 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.241: download - view: text, markup, annotated - select for diffs
Thu Dec 4 19:38:22 2003 UTC (21 years ago) by atatat
Branches: MAIN
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +45 -31 lines
Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.

Revision 1.240: download - view: text, markup, annotated - select for diffs
Tue Oct 28 15:25:27 2003 UTC (21 years, 1 month ago) by chs
Branches: MAIN
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +3 -2 lines
uninitialized variables.

Revision 1.193.4.1: download - view: text, markup, annotated - select for diffs
Wed Oct 22 06:22:20 2003 UTC (21 years, 1 month ago) by jmc
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Diff to: previous 1.193: preferred, colored; next MAIN 1.194: preferred, colored
Changes since revision 1.193: +14 -1 lines
Pullup via patch (requested by pk in ticket #1535)
On small sun4c machines trim the buffer cache to reduce the demand for
 kernel virtual memory. This leaves more of the precious PMEG resources
 available for user space VM which speeds up things considerably, since
 a reasonable PMEG working set can be maintained.

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

Revision 1.238: download - view: text, markup, annotated - select for diffs
Sun Oct 12 17:08:08 2003 UTC (21 years, 2 months ago) by pk
Branches: MAIN
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +3 -3 lines
sendsig: we must copy out the `ksi_info' field.

Revision 1.237: download - view: text, markup, annotated - select for diffs
Sun Oct 12 16:12:20 2003 UTC (21 years, 2 months ago) by pk
Branches: MAIN
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +5 -3 lines
sendsig: don't copy out the ucontext_t padding bytes onto the user stack.

Revision 1.236: download - view: text, markup, annotated - select for diffs
Sun Oct 12 14:36:19 2003 UTC (21 years, 2 months ago) by pk
Branches: MAIN
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +24 -32 lines
Simplify struct sigframe.

Revision 1.235: download - view: text, markup, annotated - select for diffs
Wed Oct 8 00:28:42 2003 UTC (21 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +4 -4 lines
* Shuffle some data structures so, and add a flags word to ksiginfo_t.
  Right now the only flag is used to indicate if a ksiginfo_t is a
  result of a trap.  Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap.  Expands to 0 if the ksiginfo_t was
  not the result of a trap.  This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
  Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
  the case of non-trap-generated signals that have a > 0 si_code.

This patch fixes a signal delivery problem with threaded programs noted by
Matthias Drochner on tech-kern.

As discussed on tech-kern.  Reviewed and OK's by Christos.

Revision 1.234: download - view: text, markup, annotated - select for diffs
Sun Oct 5 21:13:23 2003 UTC (21 years, 2 months ago) by pk
Branches: MAIN
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +159 -25 lines
sparc kernel support for SA_SIGINFO.

Revision 1.233: download - view: text, markup, annotated - select for diffs
Fri Sep 26 12:02:56 2003 UTC (21 years, 2 months ago) by simonb
Branches: MAIN
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +3 -3 lines
Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs.  Test
compiled on most architectures.

Revision 1.232: download - view: text, markup, annotated - select for diffs
Wed Aug 27 15:59:53 2003 UTC (21 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +3 -3 lines
change PROM_getprop() from taking a "void **" for the storage, to a
"void *", and do the extra de-reference directly in the function.  this
avoids having to cast dozens of different types to "void **", which sets
of GCC3's strict-aliasing.  testing by martin@

Revision 1.231: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:29:45 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.230: download - view: text, markup, annotated - select for diffs
Sat Aug 2 08:10:44 2003 UTC (21 years, 4 months ago) by pk
Branches: MAIN
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +15 -2 lines
On small sun4c machines trim the buffer cache to reduce the demand for
kernel virtual memory. This leaves more of the precious PMEG resources
available for user space VM which speeds up things considerably, since
a reasonable PMEG working set can be maintained.

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

Revision 1.228.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:25:32 2003 UTC (21 years, 5 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +3 -3 lines
Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.228: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:28:57 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +5 -5 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.227: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:56:26 2003 UTC (21 years, 5 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +3 -3 lines
More changes for providing lwpid for ktrace (sparc GENERIC built)

Revision 1.226: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:07 2003 UTC (21 years, 5 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +3 -3 lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.225: download - view: text, markup, annotated - select for diffs
Mon Jun 23 11:01:39 2003 UTC (21 years, 5 months ago) by martin
Branches: MAIN
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +2 -1 lines
Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.224: download - view: text, markup, annotated - select for diffs
Sat May 3 18:11:01 2003 UTC (21 years, 7 months ago) by wiz
Branches: MAIN
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +5 -5 lines
DMA, not dma nor Dma.

Revision 1.223: download - view: text, markup, annotated - select for diffs
Wed Apr 2 04:35:25 2003 UTC (21 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +7 -7 lines
Use PAGE_SIZE rather than NBPG.

Revision 1.222: download - view: text, markup, annotated - select for diffs
Sat Jan 18 06:45:05 2003 UTC (21 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +251 -34 lines
Merge the nathanw_sa branch.

Revision 1.187.4.27: download - view: text, markup, annotated - select for diffs
Fri Jan 17 16:23:33 2003 UTC (21 years, 10 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.187.4.26: preferred, colored; branchpoint 1.187: preferred, colored; next MAIN 1.188: preferred, colored
Changes since revision 1.187.4.26: +16 -43 lines
Sync with HEAD.

Revision 1.221: download - view: text, markup, annotated - select for diffs
Thu Jan 16 16:20:20 2003 UTC (21 years, 10 months ago) by pk
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +2 -28 lines
Some PROMs get really uneasy if the prom_reboot() function is called
after the other CPUs have already return into the PROM through prom_cpustop().
So don't do it; try to halt the other CPUs only when an actual `halt'
is requested.

My guess in this case is that the PROM does not expect its original boot
CPU to call prom_cpustop(0), or possibly treats it as the equivalent of
a prom_halt() which is then called again by some other CPU. In any case,
the result is garbage.

Revision 1.220: download - view: text, markup, annotated - select for diffs
Thu Jan 16 11:33:21 2003 UTC (21 years, 10 months ago) by pk
Branches: MAIN
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +15 -16 lines
Fix reboot options handling; now one-letter kernel names can also be booted.

Revision 1.187.4.26: download - view: text, markup, annotated - select for diffs
Wed Jan 15 18:40:17 2003 UTC (21 years, 10 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.187.4.25: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.25: +45 -5 lines
Sync with HEAD.

Revision 1.219: download - view: text, markup, annotated - select for diffs
Mon Jan 13 16:59:17 2003 UTC (21 years, 10 months ago) by pk
Branches: MAIN
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +1 -2 lines
Remove UNLOCK_XPMSG() before cpu_halt(); it's not compatible with LOCKDEBUG
and it wan't chique in any case.

Revision 1.218: download - view: text, markup, annotated - select for diffs
Mon Jan 13 15:50:52 2003 UTC (21 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +10 -7 lines
remove cpu_hatched, cpu_hatch_sc and cpu_hatchstack.  the first can use
the cpi->flags, the second is unused and the third is also cpi-idle_u.

Revision 1.217: download - view: text, markup, annotated - select for diffs
Mon Jan 13 01:35:45 2003 UTC (21 years, 10 months ago) by pk
Branches: MAIN
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +40 -3 lines
Halt any other CPUs in cpu_reboot().

Revision 1.216: download - view: text, markup, annotated - select for diffs
Sun Jan 12 16:29:01 2003 UTC (21 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +4 -6 lines
fpulock: encapsulate required IPL raise in the FPU LOCK/UNLOCK macros.

Revision 1.215: download - view: text, markup, annotated - select for diffs
Thu Jan 9 04:58:58 2003 UTC (21 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +4 -1 lines
call splclock() around the FPU_LOCK().

XXX: pk suggests we can make the this a sleeping lock.

Revision 1.187.4.25: download - view: text, markup, annotated - select for diffs
Mon Jan 6 22:12:30 2003 UTC (21 years, 11 months ago) by martin
Branches: nathanw_sa
Diff to: previous 1.187.4.24: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.24: +5 -1 lines
Catch up to -current.

Revision 1.214: download - view: text, markup, annotated - select for diffs
Mon Jan 6 18:32:31 2003 UTC (21 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +5 -1 lines
Protect FPU context switching with its own lock.

Revision 1.187.4.24: download - view: text, markup, annotated - select for diffs
Sun Jan 5 22:51:52 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.187.4.23: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.23: +4 -4 lines
Correction from uwe: Reserve a C call frame on the stack, not a
register window.

Revision 1.187.4.23: download - view: text, markup, annotated - select for diffs
Sun Jan 5 22:38:20 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.187.4.22: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.22: +15 -53 lines
Remove the upcall trampoline, and invoke the upcall directly.  Also,
there is no need to fiddle with register windows here, nor to save the
arguments to the stack.

Reviewed by uwe.

Revision 1.187.4.22: download - view: text, markup, annotated - select for diffs
Fri Jan 3 17:25:07 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.187.4.21: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.21: +27 -10 lines
Sync with HEAD (again).

Revision 1.213: download - view: text, markup, annotated - select for diffs
Fri Jan 3 15:44:56 2003 UTC (21 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +2 -3 lines
Define a few XCALL? shorthand macros to avoid clutter.

Revision 1.212: download - view: text, markup, annotated - select for diffs
Fri Jan 3 15:12:02 2003 UTC (21 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +17 -9 lines
Finish FPU context switching on SMP systems.

Revision 1.211: download - view: text, markup, annotated - select for diffs
Fri Jan 3 11:57:47 2003 UTC (21 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +12 -2 lines
part one of bus_space(9) fixes to enable bus spaces to override the
bus_space_{read,write}_[1248]() functions, which will allow 16-bit
PCMCIA support to work without additional hacks in MI drivers.
this option is not enabled yet.

Revision 1.187.4.21: download - view: text, markup, annotated - select for diffs
Fri Dec 20 15:33:32 2002 UTC (21 years, 11 months ago) by uwe
Branches: nathanw_sa
Diff to: previous 1.187.4.20: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.20: +5 -5 lines
Adjust for mcontext changes.

Revision 1.187.4.20: download - view: text, markup, annotated - select for diffs
Thu Dec 19 00:38:02 2002 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.187.4.19: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.19: +3 -3 lines
Sync with HEAD.

Revision 1.210: download - view: text, markup, annotated - select for diffs
Mon Dec 16 16:59:12 2002 UTC (21 years, 11 months ago) by pk
Branches: MAIN
CVS tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +2 -2 lines
The cache flush routines now take a CPU context parameter. This is going
to be necessary in SMP kernels.

Revision 1.209: download - view: text, markup, annotated - select for diffs
Thu Dec 12 09:34:04 2002 UTC (22 years ago) by pk
Branches: MAIN
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +2 -2 lines
dumpsys(): Use pmap_kremove() to unmap pages mapped pmap_kenter().

Revision 1.187.4.19: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:12:15 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.187.4.18: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.18: +10 -9 lines
Sync with HEAD.

Revision 1.208: download - view: text, markup, annotated - select for diffs
Tue Dec 10 13:44:50 2002 UTC (22 years ago) by pk
Branches: MAIN
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +2 -4 lines
Remove the `flags' argument from bus_intr_establish().

Revision 1.207: download - view: text, markup, annotated - select for diffs
Tue Dec 10 12:16:27 2002 UTC (22 years ago) by pk
Branches: MAIN
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +8 -8 lines
bus_intr_establish() now takes an optional `fast trap' handler argument.
BUS_INTR_ESTABLISH_FASTTRAP and BUS_INTR_ESTABLISH_SOFTINTR are no longer used.

Revision 1.206: download - view: text, markup, annotated - select for diffs
Fri Dec 6 16:04:13 2002 UTC (22 years ago) by pk
Branches: MAIN
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +2 -2 lines
Pass the `device class interrupt level' on to intr_establish() and use to
raise the ipl in the interrupt handlers to the appropriate level. This avoids
interrupt handler interference if one of the devices actually interrupts at
a lower hardware level than the maximum level assined to a device class.

Based on code from Art Grabowski in openbsd.

Revision 1.205: download - view: text, markup, annotated - select for diffs
Thu Nov 28 15:29:54 2002 UTC (22 years ago) by pk
Branches: MAIN
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +2 -3 lines
Not all sun4m platforms have version 8 sparc CPUs. So go out to the PROM
and get the CPU architecture version from the PROM cpu node `sparc-version'
property.

Revision 1.187.4.18: download - view: text, markup, annotated - select for diffs
Thu Nov 28 01:14:35 2002 UTC (22 years ago) by uwe
Branches: nathanw_sa
Diff to: previous 1.187.4.17: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.17: +16 -5 lines
Make upcalls work.  sa2 passes now.
sa3 seems to work but hangs after printing "About to exit."

Revision 1.204: download - view: text, markup, annotated - select for diffs
Tue Nov 26 14:36:10 2002 UTC (22 years ago) by pk
Branches: MAIN
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +5 -1 lines
Add `machdep.cpu_arch' sysctl to determine the CPU architecture version.
Currrently, cpu types `sun4' and `sun4c' produce version 7, all others
version 8.

Revision 1.187.4.17: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:39:59 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.16: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.16: +1 -3 lines
Catch up to -current.

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

Revision 1.203: download - view: text, markup, annotated - select for diffs
Wed Sep 25 22:21:21 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +1 -2 lines
Don't include <sys/map.h>.

Revision 1.202: download - view: text, markup, annotated - select for diffs
Thu Sep 19 10:38:03 2002 UTC (22 years, 2 months ago) by ragge
Branches: MAIN
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +1 -2 lines
Do not include <sys/clist.h>, it's not used in NetBSD at all.

Revision 1.187.4.16: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:17:47 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.15: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.15: +15 -6 lines
Catch up to -current.

Revision 1.201: download - view: text, markup, annotated - select for diffs
Fri Sep 6 13:18:43 2002 UTC (22 years, 3 months ago) by gehenna
Branches: MAIN
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +13 -6 lines
Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

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

Revision 1.193.2.6: download - view: text, markup, annotated - select for diffs
Sat Aug 31 16:38:13 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.193.2.5: preferred, colored; branchpoint 1.193: preferred, colored; next MAIN 1.194: preferred, colored
Changes since revision 1.193.2.5: +3 -1 lines
catch up with -current.

Revision 1.193.2.5: download - view: text, markup, annotated - select for diffs
Sat Aug 31 14:52:23 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.193.2.4: preferred, colored; branchpoint 1.193: preferred, colored
Changes since revision 1.193.2.4: +53 -6 lines
catch up with -current.

Revision 1.200: download - view: text, markup, annotated - select for diffs
Fri Aug 30 20:38:31 2002 UTC (22 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +3 -1 lines
Fix missing error check in sparc_bus_map().  Pointed out by uwe.

Revision 1.187.4.15: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:45:44 2002 UTC (22 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.14: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.14: +53 -6 lines
Catch up to -current.

Revision 1.199: download - view: text, markup, annotated - select for diffs
Sun Aug 25 20:21:42 2002 UTC (22 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +3 -4 lines
Make nbuf, nswbuf, and bufpages unsigned.  Make all operations on these
variables unsigned, and update places where their values are printed.

Revision 1.198: download - view: text, markup, annotated - select for diffs
Sun Aug 25 17:55:02 2002 UTC (22 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +51 -3 lines
Put a bus's ranges in the bus space tag, and make sparc_bus_map()
perform the translation and recursion if t->ranges != NULL.  Make
sbus, cpuunit, and bootbus inherit the parent's map/mmap routines,
and delete the now-unused mapping functions.  Update all places where
bus space tags are statically allocated.

Revision 1.187.4.14: download - view: text, markup, annotated - select for diffs
Fri Aug 2 19:52:02 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.13: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.13: +2 -2 lines
LWPify sigexit() call.

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

Revision 1.193.2.4: download - view: text, markup, annotated - select for diffs
Sun Jul 21 13:00:54 2002 UTC (22 years, 4 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.193.2.3: preferred, colored; branchpoint 1.193: preferred, colored
Changes since revision 1.193.2.3: +4 -4 lines
catch up with -current.

Revision 1.197: download - view: text, markup, annotated - select for diffs
Wed Jul 17 15:57:12 2002 UTC (22 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +3 -3 lines
More sun4m/sun4d common stuff.

Revision 1.196: download - view: text, markup, annotated - select for diffs
Wed Jul 17 04:55:57 2002 UTC (22 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +2 -2 lines
Remote CPU_ISSUN4OR4C and CPU_ISSUN4COR4M, and instead express them
as (CPU_ISSUN4 || CPU_ISSUN4C) and (CPU_ISSUN4C || CPU_ISSUN4M),
respectively.  The compiler can still optimize as desired by expressing
them this way, and it simplifies adding new tests.

While here, just remove CPU_ISSUN4MOR4U; it's not used by anything.

Revision 1.193.2.3: download - view: text, markup, annotated - select for diffs
Wed Jul 17 02:10:49 2002 UTC (22 years, 4 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.193.2.2: preferred, colored; branchpoint 1.193: preferred, colored
Changes since revision 1.193.2.2: +20 -4 lines
catch up with -current.

Revision 1.193.2.2: download - view: text, markup, annotated - select for diffs
Mon Jul 15 01:21:25 2002 UTC (22 years, 4 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.193.2.1: preferred, colored; branchpoint 1.193: preferred, colored
Changes since revision 1.193.2.1: +1 -3 lines
catch up with -current.

Revision 1.187.4.12: download - view: text, markup, annotated - select for diffs
Fri Jul 12 01:39:47 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.11: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.11: +1 -2 lines
No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.195: download - view: text, markup, annotated - select for diffs
Thu Jul 4 23:32:06 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +20 -4 lines
Add kernel support for having userland provide the signal trampoline:

* struct sigacts gets a new sigact_sigdesc structure, which has the
  sigaction and the trampoline/version.  Version 0 means "legacy kernel
  provided trampoline".  Other versions are coordinated with machine-
  dependent code in libc.
* sigaction1() grows two more arguments -- the trampoline pointer and
  the trampoline version.
* A new __sigaction_sigtramp() system call is provided to register a
  trampoline along with a signal handler.
* The handler is no longer passed to sensig() functions.  Instead,
  sendsig() looks up the handler by peeking in the sigacts for the
  process getting the signal (since it has to look in there for the
  trampoline anyway).
* Native sendsig() functions now select the appropriate trampoline and
  its arguments based on the trampoline version in the sigacts.

Changes to libc to use the new facility will be checked in later.  Kernel
version not bumped; we will ride the 1.6C bump made recently.

Revision 1.187.4.11: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:07:39 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.10: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.10: +13 -13 lines
Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

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

Revision 1.187.4.10: download - view: text, markup, annotated - select for diffs
Fri Jun 21 06:56:32 2002 UTC (22 years, 5 months ago) by gmcgarry
Branches: nathanw_sa
Diff to: previous 1.187.4.9: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.9: +2 -2 lines
Pull in appropriate headers; LWPify some more

Revision 1.187.4.9: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:41:08 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.8: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.8: +1 -3 lines
Catch up to -current.

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

Revision 1.187.4.8: download - view: text, markup, annotated - select for diffs
Wed May 29 21:31:57 2002 UTC (22 years, 6 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.7: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.7: +2 -1 lines
#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)

Revision 1.193.2.1: download - view: text, markup, annotated - select for diffs
Fri May 17 13:49:59 2002 UTC (22 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +13 -6 lines
Replace the access to devsw table and the hard-coded major with devsw API.

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

Revision 1.193: download - view: text, markup, annotated - select for diffs
Thu Mar 28 15:45:01 2002 UTC (22 years, 8 months ago) by pk
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-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6, gehenna-devsw
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +7 -2 lines
sysctl(CPU_BOOTED_KERNEL): look for kernel path bootinfo[].

Revision 1.192: download - view: text, markup, annotated - select for diffs
Mon Mar 18 13:27:02 2002 UTC (22 years, 8 months ago) by christos
Branches: MAIN
CVS tags: eeh-devprop-base, eeh-devprop
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +3 -3 lines
goodbye PS_STRINGS

Revision 1.181.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 16 15:59:53 2002 UTC (22 years, 8 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.181.2.4: preferred, colored
Changes since revision 1.181.2.4: +21 -21 lines
Catch up with -current.

Revision 1.191: download - view: text, markup, annotated - select for diffs
Mon Mar 11 16:27:04 2002 UTC (22 years, 9 months ago) by pk
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +20 -20 lines
* `bus_type_t' is gone.
* Use BUS_ADDR() where appropriate to encode I/O space and physical
  address offset into a `bus_addr_t' value.
* Drop obio_bus_map() since it's now completely equivalent to bus_space_map()
* Use bus_space_map2() to map device space at a fixed virtual address.
* Remove the virtual address argument from sbus_sbus_addr()

Revision 1.190: download - view: text, markup, annotated - select for diffs
Wed Mar 6 13:10:24 2002 UTC (22 years, 9 months ago) by tsutsui
Branches: MAIN
CVS tags: newlock-base, newlock
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +2 -2 lines
Change type of dumpmag to u_int32_t since it is actually
a 32bit unsigned magic number.
As per discussion on tech-kern, and fixes port-sparc64/11949.

Revision 1.187.4.6: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:12:07 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.5: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.5: +13 -1 lines
Catch up to -current.

Revision 1.181.2.4: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:09:07 2002 UTC (22 years, 10 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.181.2.3: preferred, colored
Changes since revision 1.181.2.3: +13 -1 lines
Sync w/ -current.

Revision 1.189: download - view: text, markup, annotated - select for diffs
Sun Feb 3 14:10:03 2002 UTC (22 years, 10 months ago) by darrenr
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +13 -1 lines
* add machdep.booted_device and machdep.boot_args (both fetched from
  appropriate PROM variables).
* return "netbsd" for machdep.booted_kernel if the PROM doesn't return us a
  kernel name.

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

Revision 1.187.4.5: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:27:47 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.4: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.4: +3 -2 lines
Catch up to -current.

Revision 1.187.4.4: download - view: text, markup, annotated - select for diffs
Fri Dec 28 06:12:21 2001 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.3: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.3: +1 -8 lines
Garbage collect cpu_stashcontext().

Revision 1.187.4.3: download - view: text, markup, annotated - select for diffs
Mon Dec 17 21:31:26 2001 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.187.4.2: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.2: +9 -92 lines
Convert to new, smaller cpu_upcall().

Revision 1.188: download - view: text, markup, annotated - select for diffs
Tue Dec 4 00:05:07 2001 UTC (23 years ago) by darrenr
Branches: MAIN
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +3 -2 lines
defopt "options SUN4*", put #define for each of SUN4, SUN4C, SUN4M and SUN4U
into opt_arch_sparc.h and include this wherever they are used.

Revision 1.187.4.2: download - view: text, markup, annotated - select for diffs
Tue Nov 20 16:31:56 2001 UTC (23 years ago) by pk
Branches: nathanw_sa
Diff to: previous 1.187.4.1: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.1: +2247 -0 lines
Convert to SA framework.
Compilable, but some core functionality stubbed out still.

Revision 1.183.2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:01:53 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.183.2.1: preferred, colored; branchpoint 1.183: preferred, colored; next MAIN 1.184: preferred, colored
Changes since revision 1.183.2.1: +21 -26 lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.187.4.1
Wed Oct 3 09:40:12 2001 UTC (23 years, 2 months ago) by pk
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.187: +0 -1913 lines
file machdep.c was added on branch nathanw_sa on 2001-11-20 16:31:56 +0000

Revision 1.187: download - view: text, markup, annotated - select for diffs
Wed Oct 3 09:40:12 2001 UTC (23 years, 2 months ago) by chs
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Branch point for: nathanw_sa
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +16 -21 lines
use pmap_k{enter_pa,remove}() where appropriate.

Revision 1.186: download - view: text, markup, annotated - select for diffs
Wed Oct 3 09:37:23 2001 UTC (23 years, 2 months ago) by chs
Branches: MAIN
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +6 -6 lines
deal with bus_addr_t now being a 64-bit quantity.  fixes PR 14107.

Revision 1.183.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:42:11 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +23 -22 lines
Catch up with -current.

Revision 1.185: download - view: text, markup, annotated - select for diffs
Mon Sep 24 23:49:32 2001 UTC (23 years, 2 months ago) by eeh
Branches: MAIN
CVS tags: thorpej-devvp-base2
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +11 -10 lines
Change bus_space_mmap() signature to the official one.

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

Revision 1.184: download - view: text, markup, annotated - select for diffs
Mon Sep 10 21:19:25 2001 UTC (23 years, 3 months ago) by chris
Branches: MAIN
CVS tags: pre-chs-ubcperf, post-chs-ubcperf
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +13 -13 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.183: download - view: text, markup, annotated - select for diffs
Mon Sep 3 01:14:14 2001 UTC (23 years, 3 months ago) by uwe
Branches: MAIN
CVS tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +2 -2 lines
_bus_dmamap_load_mbuf: panic with correct function name.

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

Revision 1.182: download - view: text, markup, annotated - select for diffs
Sun Jul 29 23:56:33 2001 UTC (23 years, 4 months ago) by chs
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +3 -4 lines
use pmap_k* for buffer cache pages.

Revision 1.177.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 19:35:08 2001 UTC (23 years, 5 months ago) by nathanw
Diff to: previous 1.177.2.1: preferred, colored; next MAIN 1.178: preferred, colored
Changes since revision 1.177.2.1: +18 -6 lines
Catch up to -current.

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

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

Revision 1.179: download - view: text, markup, annotated - select for diffs
Tue Apr 24 04:31:11 2001 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_beforemerge
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +13 -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.177.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:54:54 2001 UTC (23 years, 8 months ago) by nathanw
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +2 -2 lines
Catch up with -current.

Revision 1.155.2.5: download - view: text, markup, annotated - select for diffs
Tue Mar 27 15:31:31 2001 UTC (23 years, 8 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.155.2.4: preferred, colored; branchpoint 1.155: preferred, colored; next MAIN 1.156: preferred, colored
Changes since revision 1.155.2.4: +2 -2 lines
Sync with HEAD.

Revision 1.178: download - view: text, markup, annotated - select for diffs
Thu Mar 15 06:10:49 2001 UTC (23 years, 8 months ago) by chs
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_base
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +2 -2 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.155.2.4: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:29:23 2001 UTC (23 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.155.2.3: preferred, colored; branchpoint 1.155: preferred, colored
Changes since revision 1.155.2.3: +77 -14 lines
Sync with HEAD.

Revision 1.177: download - view: text, markup, annotated - select for diffs
Mon Mar 5 16:46:09 2001 UTC (23 years, 9 months ago) by pk
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +59 -5 lines
Implement MSGBUFSIZE option.

Revision 1.176: download - view: text, markup, annotated - select for diffs
Thu Mar 1 16:09:25 2001 UTC (23 years, 9 months ago) by pk
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +23 -14 lines
* Correct the `flags' argument in several calls to pmap_enter().
* message buffer initialisation:
	- change the buffer size to 8192 on all platforms
	- don't assume the buffer is always located at physical address 0
	- drop the SUN4 hack that left first half of the page unused;
	  I believe this is no longer necessary, since the msgbuf
	  data structure is duely sanity-checked before use in initmsgbuf().

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

Revision 1.165.4.4: download - view: text, markup, annotated - select for diffs
Sun Feb 4 19:07:13 2001 UTC (23 years, 10 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.165.4.3: preferred, colored; branchpoint 1.165: preferred, colored; next MAIN 1.166: preferred, colored
Changes since revision 1.165.4.3: +25 -6 lines
Pull up revisions 1.174-1.175 (requested by pk):
  Bus_dma fixes to support certain sbus extension devices on sun4c
  machines.

Revision 1.175: download - view: text, markup, annotated - select for diffs
Wed Jan 31 15:17:42 2001 UTC (23 years, 10 months ago) by pk
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +7 -4 lines
_bus_dma_valloc_skewed(): return a vaddr_t, not error codes; make missing
boundary check return an error, so the caller can decide how to respond.

Revision 1.174: download - view: text, markup, annotated - select for diffs
Sun Jan 28 20:48:31 2001 UTC (23 years, 10 months ago) by pk
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +19 -3 lines
sun4_dmamap_load(): Check if boundary condition can be satisfied instead
of panicing blindly.

Revision 1.173: download - view: text, markup, annotated - select for diffs
Sat Jan 20 13:44:30 2001 UTC (23 years, 10 months ago) by pk
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +7 -2 lines
In cpu_reboot(), only reset the TOD clock if the time is known to be good
enough, e.g. it has been initialized already by inittodr() or set
explicitly before by resettodr().  This prevents the TOD clock from going
way backwards when typing `halt' at the `mount root filesystem' prompt.

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

Revision 1.172: download - view: text, markup, annotated - select for diffs
Fri Dec 22 22:58:55 2000 UTC (23 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +10 -11 lines
split off thread specific stuff from struct sigacts to struct sigctx, leaving
    only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx

This addresses kern/10981 by Matthew Orgass.

Revision 1.155.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 20:25:46 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +214 -188 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.171: download - view: text, markup, annotated - select for diffs
Wed Sep 13 15:00:22 2000 UTC (24 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +2 -2 lines
Add an align argument to uvm_map() and some callers of that
routine.  Works similarly fto pmap_prefer(), but allows callers
to specify a minimum power-of-two alignment of the region.
How we ever got along without this for so long is beyond me.

Revision 1.165.4.3: download - view: text, markup, annotated - select for diffs
Sat Jul 22 21:19:45 2000 UTC (24 years, 4 months ago) by pk
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Diff to: previous 1.165.4.2: preferred, colored; branchpoint 1.165: preferred, colored
Changes since revision 1.165.4.2: +2 -1 lines
Pull up revision 1.166.

Maintain the DVMA map extent subregion boundaries in the bus_dma map
structure.

Revision 1.165.4.2: download - view: text, markup, annotated - select for diffs
Wed Jul 19 02:53:15 2000 UTC (24 years, 4 months ago) by mrg
Branches: netbsd-1-5
Diff to: previous 1.165.4.1: preferred, colored; branchpoint 1.165: preferred, colored
Changes since revision 1.165.4.1: +6 -5 lines
pull up sparc/sparc64 bus_intr_establish() changes, necessary for sparc64
(originally done by pk, approved by thorpej):

>Add a `device class' interrupt level argument (from machine/intr.h)
>to bus_interrupt_establish().
>
>It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
>level to devices in PCI slots.

Revision 1.170: download - view: text, markup, annotated - select for diffs
Sun Jul 9 20:57:49 2000 UTC (24 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +6 -5 lines
Add a `device class' interrupt level argument (from machine/intr.h)
to bus_interrupt_establish().

It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
level to devices in PCI slots.

Revision 1.165.4.1: download - view: text, markup, annotated - select for diffs
Fri Jun 30 16:27:39 2000 UTC (24 years, 5 months ago) by simonb
Branches: netbsd-1-5
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +5 -3 lines
Pull up mmap paddr_t/off_t changes from trunk.

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

Revision 1.168: download - view: text, markup, annotated - select for diffs
Mon Jun 26 14:20:57 2000 UTC (24 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +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.167: download - view: text, markup, annotated - select for diffs
Mon Jun 26 04:56:07 2000 UTC (24 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +5 -3 lines
Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes.  Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".

Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.

Revision 1.166: download - view: text, markup, annotated - select for diffs
Sat Jun 24 22:47:45 2000 UTC (24 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +2 -1 lines
Maintain the DVMA map extent subregion boundaries in the bus_dma map
structure.

Revision 1.165: download - view: text, markup, annotated - select for diffs
Tue May 23 11:39:58 2000 UTC (24 years, 6 months ago) by pk
Branches: MAIN
CVS tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +23 -39 lines
Simplify the bus_dma(9) implementation:

- the `alignment' and `boundary' arguments in bus_dmamem_alloc() only
  serve as hints on how to break up a DMA transaction into chunks
  when necessary; it is not necessary on sparc DVMA hardware.

- exclusively use the VM page size (i.e. PAGE_SIZE et.al.) when computing
  resource allocations.

- remember the size of DVMA resource allocations in the private `_ds_sgsize'
  field in a dma segment descriptor.

Revision 1.164: download - view: text, markup, annotated - select for diffs
Thu May 18 10:10:55 2000 UTC (24 years, 6 months ago) by pk
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +2 -2 lines
bus_dmamem_alloc: ensure alignment is always at least the page size.

Revision 1.163: download - view: text, markup, annotated - select for diffs
Wed May 10 14:27:51 2000 UTC (24 years, 7 months ago) by pk
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +2 -2 lines
bus_dmamem_alloc: round-up `alignment' to a be a multiple of the page size.

Revision 1.162: download - view: text, markup, annotated - select for diffs
Wed May 10 11:17:50 2000 UTC (24 years, 7 months ago) by pk
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +12 -2 lines
* Fix thinko in offset computations.
* Add DIAGNOSTIC checks.

Revision 1.161: download - view: text, markup, annotated - select for diffs
Tue May 9 22:39:35 2000 UTC (24 years, 7 months ago) by pk
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +195 -156 lines
The bus_dma(9) implementation now allocates DVMA addresses in
bus_dmamap_load_*() routines only. Note that DMA memory buffers
allocated with bus_dmamem_alloc() _must_ be loaded by bus_dmamap_load_raw().

Revision 1.160: download - view: text, markup, annotated - select for diffs
Wed Jan 19 20:05:48 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +1 -10 lines
Move callout initialization to a single location; no need to duplicate
that code all over the place.

Revision 1.155.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:33:51 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.155: preferred, colored; next MAIN 1.156: preferred, colored
Changes since revision 1.155: +12 -10 lines
Pull up to last week's -current.

Revision 1.159: download - view: text, markup, annotated - select for diffs
Wed Dec 15 08:03:43 1999 UTC (24 years, 11 months ago) by garbled
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +2 -1 lines
add entrypoint for tctrl device, and add <machine/tctrl.h> to includes for
machdep.c

Revision 1.158: download - view: text, markup, annotated - select for diffs
Sat Dec 4 21:21:29 1999 UTC (25 years ago) by ragge
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +3 -3 lines
CL* discarding.

Revision 1.155.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:39:19 1999 UTC (25 years ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.155: preferred, colored; next MAIN 1.156: preferred, colored
Changes since revision 1.155: +6 -5 lines
Sync with -current

Revision 1.157: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:06:58 1999 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +4 -4 lines
Fix a couple of pmap_enter() calls I missed.

Revision 1.156: download - view: text, markup, annotated - select for diffs
Sat Nov 13 00:32:14 1999 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: fvdl-softdep-base
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +6 -5 lines
Update for pmap_enter() API change.  No functional difference.

Revision 1.155: download - view: text, markup, annotated - select for diffs
Mon Oct 4 19:11:42 1999 UTC (25 years, 2 months ago) by pk
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +7 -1 lines
Implement sysctl `machdep.booted_kernel'.

Revision 1.154: download - view: text, markup, annotated - select for diffs
Fri Sep 17 20:04:53 1999 UTC (25 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +2 -2 lines
Centralize the declaration and clearing of `cold'.

Revision 1.153: download - view: text, markup, annotated - select for diffs
Mon Aug 9 18:35:58 1999 UTC (25 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +10 -1 lines
Tadpoles don't use the standard sun4m power down hardware.  So add
support for doing it the Tadpole way.

Revision 1.143.2.1.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 2 20:09:14 1999 UTC (25 years, 4 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.143.2.1.2.1: preferred, colored; branchpoint 1.143.2.1: preferred, colored; next MAIN 1.144: preferred, colored
Changes since revision 1.143.2.1.2.1: +3 -2 lines
Update from trunk.

Revision 1.152: download - view: text, markup, annotated - select for diffs
Thu Jul 8 18:08:59 1999 UTC (25 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +3 -2 lines
Change the pmap_extract() interface to:
	boolean_t pmap_extract(pmap_t, vaddr_t, paddr_t *);
This makes it possible for the pmap to map physical address 0.

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

Revision 1.151: download - view: text, markup, annotated - select for diffs
Wed May 26 19:16:34 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +3 -3 lines
Change the vm_map's "entries_pageable" member to a r/o flags member, which
has PAGEABLE and INTRSAFE flags.  PAGEABLE now really means "pageable",
not "allocate vm_map_entry's from non-static pool", so update all map
creations to reflect that.  INTRSAFE maps are maps that are used in
interrupt context (e.g. kmem_map, mb_map), and thus use the static
map entry pool (XXX as does kernel_map, for now).  This will eventually
change now these maps are locked, as well.

Revision 1.150: download - view: text, markup, annotated - select for diffs
Tue May 25 23:14:07 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +3 -2 lines
bus_dmamem_map() maps DMA safe memory, which is usually one or more
managed pages, into KVA space.  Since the pages are managed, we should
use pmap_enter(), not pmap_kenter_pa().

Also, when entering the mappings, enter with an access_type of
VM_PROT_READ | VM_PROT_WRITE.  We do this for a couple of reasons:

	(1) On systems that have H/W mod/ref attributes, the hardware
	    may not be able to track mod/ref done by a bus master.

	(2) On systems that have to do mod/ref emulation, this prevents
	    a mod/ref page fault from potentially happening while in an
	    interrupt context, which can be problematic.

This latter change is fairly important if we ever want to be able to
transfer DMA-safe memory pages to anonymous memory objects; we will need
to know that the pages are modified, or else data could be lost!

Note that while the pages are unowned (i.e. "just DMA-safe memory pages"),
they won't consume any swap resources, as the mappings are wired, and
the pages aren't on the active or inactive queues.

Revision 1.149: download - view: text, markup, annotated - select for diffs
Fri May 21 00:08:14 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +17 -6 lines
Provide an mdallocsys() that clips bufpages if necessary (on the Sun4c).
This will be (and needs to be) done before nbuf is computed.

Revision 1.148: download - view: text, markup, annotated - select for diffs
Thu May 20 20:15:27 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +5 -5 lines
Make this compile again.

Revision 1.147: download - view: text, markup, annotated - select for diffs
Thu May 20 08:21:46 1999 UTC (25 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +14 -103 lines
* convert to using MI allocsys(). most ports were using an MD allocsys(),
  although a couple still used the old pre-4.4-lite (?) mechanism.
* use format_bytes() to format the various printf()s that print out memory sizes

Revision 1.146: download - view: text, markup, annotated - select for diffs
Mon May 3 16:17:57 1999 UTC (25 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +1 -3 lines
remove unused msgbufaddr

Revision 1.145: download - view: text, markup, annotated - select for diffs
Mon Apr 26 22:46:47 1999 UTC (25 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +2 -2 lines
Garbage-collect the VM_MBUF_SIZE constant.  Instead, use the size
(nmbclusters * mclbytes), so that the right amount of KVA space is
allocated if those variables are patched.

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

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

Revision 1.143: download - view: text, markup, annotated - select for diffs
Thu Apr 1 00:17:49 1999 UTC (25 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +1 -6 lines
Don't call configure() from cpu_startup().

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

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

Revision 1.140: download - view: text, markup, annotated - select for diffs
Sat Feb 27 06:39:37 1999 UTC (25 years, 9 months ago) by scottr
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +2 -1 lines
defopt BUFCACHE and BUFPAGES.

Revision 1.139: download - view: text, markup, annotated - select for diffs
Sun Feb 14 12:48:02 1999 UTC (25 years, 9 months ago) by pk
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +4 -4 lines
Use the PROMLIB interface.

Revision 1.138: download - view: text, markup, annotated - select for diffs
Sat Jan 16 20:43:22 1999 UTC (25 years, 10 months ago) by chuck
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +1 -4 lines
MNN is no longer optional, remove dead code

Revision 1.137: download - view: text, markup, annotated - select for diffs
Wed Jan 13 20:48:40 1999 UTC (25 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +21 -6 lines
Add `bus_space_subregion()' which was curiously missing.

Revision 1.136: download - view: text, markup, annotated - select for diffs
Sat Jan 9 22:10:21 1999 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +2 -2 lines
Garbage-collect `mbutl'.

Revision 1.135: download - view: text, markup, annotated - select for diffs
Mon Oct 19 22:09:17 1998 UTC (26 years, 1 month ago) by tron
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +2 -1 lines
Defopt SYSVMSG, SYSVSEM and SYSVSHM.

Revision 1.134: download - view: text, markup, annotated - select for diffs
Mon Oct 12 14:32:15 1998 UTC (26 years, 2 months ago) by pk
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +2 -2 lines
`cpcb' (pointer to current u.area) is now a per-CPU variable.

Revision 1.133: download - view: text, markup, annotated - select for diffs
Sun Oct 11 23:21:03 1998 UTC (26 years, 2 months ago) by chuck
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +4 -4 lines
remove unused share map code from UVM:
 - update calls to uvm_unmap_remove/uvm_unmap (mainonly boolean arg
        has been removed)

Revision 1.132: download - view: text, markup, annotated - select for diffs
Tue Oct 6 18:58:09 1998 UTC (26 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +1 -10 lines
Move the "XXX re-zero proc0 user area" to the end of configure(), before
interrupts are enabled.

Revision 1.131: download - view: text, markup, annotated - select for diffs
Wed Sep 30 18:38:57 1998 UTC (26 years, 2 months ago) by pk
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +7 -4 lines
Make the current FPU owner (`fpproc') a per-CPU entity. Unresolved issue
as yet: lazy FPU context switching may require co-operation from other
CPUs.

Revision 1.130: download - view: text, markup, annotated - select for diffs
Thu Sep 17 02:26:26 1998 UTC (26 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +3 -6 lines
Slight brain'o in last.

Revision 1.129: download - view: text, markup, annotated - select for diffs
Thu Sep 17 02:24:56 1998 UTC (26 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +9 -4 lines
Minor cosmetic change to sendsig().

Revision 1.128: download - view: text, markup, annotated - select for diffs
Sun Sep 13 20:33:33 1998 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +1 -67 lines
Move compat_13 sigreturn() into its own file.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Sun Sep 13 20:24:15 1998 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +5 -4 lines
Remove left-over SUNOS_COMPAT line.

Revision 1.126: download - view: text, markup, annotated - select for diffs
Sun Sep 13 20:17:54 1998 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +103 -51 lines
Replace previous by something more complete.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Sun Sep 13 12:13:50 1998 UTC (26 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +45 -18 lines
Update these for signal handling changes.
XXX Not tested yet.

Revision 1.124: download - view: text, markup, annotated - select for diffs
Mon Sep 7 22:56:46 1998 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +24 -24 lines
Clear up some type confusion.

Revision 1.123: download - view: text, markup, annotated - select for diffs
Tue Sep 1 18:05:27 1998 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +15 -26 lines
Hang on to `old VM' a little while longer..

Revision 1.122: download - view: text, markup, annotated - select for diffs
Tue Aug 25 08:28:53 1998 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +2 -2 lines
yanko

Revision 1.121: download - view: text, markup, annotated - select for diffs
Sun Aug 23 09:59:24 1998 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +29 -96 lines
Nuke phys_map & old dvmamap.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Fri Aug 21 14:13:55 1998 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +56 -56 lines
Convert to [pv]addr_t & [pv]size_t.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Thu Aug 20 20:45:40 1998 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +6 -5 lines
Pay attention to BUS_DMA_NOWAIT & boundary args where appropriate.

Revision 1.117.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 8 03:06:42 1998 UTC (26 years, 4 months ago) by eeh
Branches: eeh-paddr_t
Diff to: previous 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117: +297 -257 lines
Revert cdevsw mmap routines to return int.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Thu Jul 30 22:28:44 1998 UTC (26 years, 4 months ago) by pk
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +297 -257 lines
The IOMMU now has its own dma bus tag and associated functions.
machdep.c retains the `mainbus' (i.e. sun4/sun4c) bus_dma* versions for now.
Create a DVMA map specifically for 24-bit devices (le,ie), which has a
more room than previous DVMA map which should be reserved for sun4 VME.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Tue Jul 28 20:46:28 1998 UTC (26 years, 4 months ago) by pk
Branches: MAIN
CVS tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +6 -6 lines
In _bus_dmamem_map(), use uvm_km_valloc() to get kernel addresses.
uvm_map() -- which used to be here (why was that?) -- was called with
an uninitialized value in its `start' argument.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Thu Jun 25 23:41:51 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +2 -1 lines
defopt COMPAT_SUNOS

Revision 1.115: download - view: text, markup, annotated - select for diffs
Sat Jun 6 21:46:51 1998 UTC (26 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +37 -8 lines
Restructure cpu_reboot() a bit, and add support for powering down
on the Sun4m if RB_POWERDOWN is specified.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Wed Jun 3 04:35:42 1998 UTC (26 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +4 -1 lines
Panic if we can't fulfill a bus_dmamap_load() with a boundary constraint.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu May 7 21:13:24 1998 UTC (26 years, 7 months ago) by kleink
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -3 lines
Fix some arithmetics lossage on typeless pointers.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue Apr 7 19:57:37 1998 UTC (26 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +54 -79 lines
bus_space_*() functions now have the bus tag as first argument.
Remove old mapdev() function that is no longer used.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Wed Apr 1 14:03:26 1998 UTC (26 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +1 -3 lines
Move initialization of `proc0.p_addr' from cpu_startup() to bootstrap().

Revision 1.110: download - view: text, markup, annotated - select for diffs
Sun Mar 29 21:56:32 1998 UTC (26 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +16 -17 lines
Declare `sparc_bus_unmap()' static.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Sun Mar 29 05:10:44 1998 UTC (26 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -3 lines
remove register from decl.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Sat Mar 28 19:44:08 1998 UTC (26 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +32 -3 lines
Implement generic bus probe function.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Tue Mar 24 10:00:14 1998 UTC (26 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +2 -2 lines
Include not-cacheable bit in base bus space mmap function.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Sat Mar 21 20:33:31 1998 UTC (26 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +118 -2 lines
Implement bus mapping and interrupt-establish functions.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Wed Feb 11 03:11:30 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +10 -10 lines
Use kernel_map in bus_dmamem_{map,free}().

Revision 1.104: download - view: text, markup, annotated - select for diffs
Wed Feb 11 01:50:36 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -3 lines
Use M_DMAMAP where appropriate.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Tue Feb 10 14:11:38 1998 UTC (26 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +3 -1 lines
- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Sun Feb 8 06:15:56 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -3 lines
Allow callers of uvm_km_suballoc() to specify where the base of the
submap _must_ begin, by adding a "fixed" boolean argument.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Feb 5 07:57:58 1998 UTC (26 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +128 -2 lines
initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the sparc portion.

this will be KNF'd shortly.  :-)

Revision 1.100: download - view: text, markup, annotated - select for diffs
Wed Feb 4 05:13:00 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +7 -3 lines
Add offset and length parameters to bus_dmamap_sync(), used for specifiying
partial syncs of a DMA mapping.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Wed Feb 4 01:57:42 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +3 -3 lines
Change the last argument of bus_dmamap_sync() from bus_dmasync_op_t to int,
and allow more than one synchronization operation to be specified in
a single call.  Dissallow mixing of PRE and POST operations.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Wed Feb 4 00:35:02 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +7 -4 lines
Add dm_mapsize to bus_dmamap_t and rename BUS_DMAMEM_NOSYNC to
BUS_DMA_COHERENT.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sat Jan 24 16:46:45 1998 UTC (26 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +7 -3 lines
When dumping, print out the device number as major,minor.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Thu Jan 8 11:39:32 1998 UTC (26 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +2 -2 lines
add new version of non contiguous memory code, written by chuck cranor,
called "MACHINE_NEW_NONCONGIG".  this is required for UVM, the new VM
system (also written by chuck) that is coming soon.  adds new functions:
	vm_page_physload() -- tell the VM system about an area of memory.
	vm_physseg_find() -- returns index in vm_physmem array that this
		address is in.
and several new versions of old functions/macros defined in vm_page.h.


this is the sparc portion.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Tue Dec 23 23:57:24 1997 UTC (26 years, 11 months ago) by tv
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +5 -1 lines
Exclude /dev/fb code if no framebuffer is compiled into the system.
Adds a fb.h flag file with '#define NFB 1' if any such card is configured
in to the kernel.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Dec 4 15:33:42 1997 UTC (27 years ago) by tv
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -14 lines
Standardize COMPAT_SUNOS -- remove all references to
sunos_exec_aout_makecmds() in machdep.c for various architectures and put
it in exec_conf.c like the other emulations; rename exec.h to
sunos_exec.h.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Wed Nov 26 22:11:53 1997 UTC (27 years ago) by mjacob
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -1 lines
If not defining SUN4M, you still have to do something with has_iocache.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Sun Nov 23 16:31:28 1997 UTC (27 years ago) by pk
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +200 -118 lines
Re-do the `busdma' interface.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Nov 4 10:37:37 1997 UTC (27 years, 1 month ago) by pk
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +38 -1 lines
Include copyright statement for the bus_dma implementation added in
the previous revision.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Nov 2 21:31:34 1997 UTC (27 years, 1 month ago) by pk
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +454 -1 lines
Add bus_dma*() functions. Some functionality implemented in terms of
existing machinery (for now).

Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Oct 16 10:35:49 1997 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -3 lines
Fix up includes.

Revision 1.83.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 29 07:20:42 1997 UTC (27 years, 2 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.83.2.2: preferred, colored; branchpoint 1.83: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83.2.2: +15 -10 lines
Update marc-pcmcia branch from trunk.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue Sep 23 08:16:30 1997 UTC (27 years, 2 months ago) by pk
Branches: MAIN
CVS tags: marc-pcmcia-base
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +15 -10 lines
Fix some lossage resulting from changed message buffer initialization:
don't buck the trend and move the call to initmsgbuf() to cpu_startup()
in machdep.c (like most other ports do) where we can setup things right
in one go. (This means that the CSRG copyright will no longer be in
the kernel logs).

Revision 1.83.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 22 06:32:35 1997 UTC (27 years, 2 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.83.2.1: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.1: +6 -8 lines
Update marc-pcmcia branch from trunk.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sat Sep 20 18:18:33 1997 UTC (27 years, 2 months ago) by pk
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -3 lines
pmap_dumpsize() returns a number of disk blocks.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Fri Sep 19 13:55:33 1997 UTC (27 years, 2 months ago) by leo
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -6 lines
Implement the kernel part of pr-1891. This allows for a more flexible sized
msgbuf. Note that old 'dmesg' and 'syslogd' binaries will continue running,
though old 'dmesg' binaries will output a few bytes of junk at the start of
the buffer, and will miss a few bytes at the end of the buffer.

Revision 1.83.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 16 03:49:17 1997 UTC (27 years, 2 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +9 -9 lines
Update marc-pcmcia branch from trunk.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Sep 12 08:55:02 1997 UTC (27 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +8 -6 lines
Update syscall() and setregs() in the wake of the recent execve() changes.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Thu Sep 11 23:02:19 1997 UTC (27 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +2 -4 lines
Fix execve(2) and *setregs() interfaces so emulations can set registers in a
more correct way.  (See tech-kern.)

Revision 1.83.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 8 23:42:14 1997 UTC (27 years, 3 months ago) by thorpej
Branches: thorpej-signal
Diff to: previous 1.83: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83: +10 -9 lines
Significantly restructure the way signal state for a process is stored.
Rather than using bitmasks to redundantly store the information kept
in the process's sigacts (because the sigacts was kept in the u-area),
hang sigacts directly off the process, and access it directly.

Simplify signal setup code tremendously by storing information in
the sigacts as an array of struct sigactions, rather than in a different
format, since userspace uses sigactions.

Make sigacts sharable by adding reference counting.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue Jul 29 10:04:44 1997 UTC (27 years, 4 months ago) by fair
Branches: MAIN
CVS tags: thorpej-signal-base, marc-pcmcia-bp
Branch point for: thorpej-signal, marc-pcmcia
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3 lines
missed %lx -> 0x%lx

Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue Jul 29 09:42:06 1997 UTC (27 years, 4 months ago) by fair
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -4 lines
%x -> 0x%x

Revision 1.81: download - view: text, markup, annotated - select for diffs
Thu Jun 12 15:46:46 1997 UTC (27 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: bouyer-scsipi
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +1 -4 lines
bring mrg-vm-swap2 onto mainilne.

Revision 1.79.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 1 05:16:55 1997 UTC (27 years, 6 months ago) by mrg
Branches: mrg-vm-swap2
Diff to: previous 1.79.2.1: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.2.1: +4 -15 lines
update to trunk.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat May 24 20:13:48 1997 UTC (27 years, 6 months ago) by pk
Branches: MAIN
CVS tags: mrg-vm-swap2-base
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +6 -15 lines
mapdev() looses the `bustype' argument. It's superseded by `rr_iospace'
on all archs.

Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Sun May 4 15:19:36 1997 UTC (27 years, 7 months ago) by mrg
Branches: mrg-vm-swap2
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +1 -2 lines
re-merge mrg-vm-swap into -current, and call it mrg-vm-swap2.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Sun Apr 6 21:41:36 1997 UTC (27 years, 8 months ago) by pk
Branches: MAIN
Branch point for: mrg-vm-swap2
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3 lines
sun4c `nbuf' workaround: make threshold dependend on value of MAXBSIZ.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Apr 4 21:01:49 1997 UTC (27 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +1 -2 lines
Undo previous change; it can't have any effect (thinko..)

Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Apr 2 20:56:30 1997 UTC (27 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +2 -1 lines
Take another register snapshot at the end of dumpsys() to refresh the PCB
which may have been altered while writing the dump. Also, save PC in
the PCB.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu Mar 27 21:01:50 1997 UTC (27 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +2 -6 lines
Don't allocate mclrefcnt[]; it's dead and gone.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Mar 26 22:43:05 1997 UTC (27 years, 8 months ago) by gwr
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4 lines
Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/

Revision 1.73.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 12 13:55:33 1997 UTC (27 years, 9 months ago) by is
Branches: is-newarp
Diff to: previous 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73: +10 -10 lines
Merge in changes from The Trunk

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Mar 3 23:07:15 1997 UTC (27 years, 9 months ago) by pk
Branches: MAIN
CVS tags: is-newarp-before-merge
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +10 -10 lines
Fix calculation of max virtual memory to be gobbled up by the buffer cache.
Apply "stop-gap" nbuf clamp only on sun4/4c and if nbuf not explicitly
configured in.

Revision 1.73.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 12 12:25:41 1997 UTC (27 years, 10 months ago) by mrg
Branches: mrg-vm-swap
Diff to: previous 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73: +1 -2 lines
initial work for dynamic swap additions.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Jan 27 21:18:17 1997 UTC (27 years, 10 months ago) by pk
Branches: MAIN
CVS tags: is-newarp-base
Branch point for: mrg-vm-swap, is-newarp
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +9 -1 lines
In cpu_startup(), after configure() returns, re-zero proc0's user area.
This largely nullifies the effect of proc0's stack running into the
user area during auto-configuration.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Dec 21 06:21:56 1996 UTC (27 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-setroot
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +9 -1 lines
XXX Stop-gap for larger MAXBSIZE: limit nbuf to 128, so we don't chew
XXX up all of the available pmegs lower-model SPARC CPUs.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sat Nov 9 23:02:17 1996 UTC (28 years, 1 month ago) by pk
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +28 -37 lines
New-style crash dump format requires a slighty different interpretation of
the variable `dumpsize' (used by savecore(8)) and that the CPU specific data
gets dumped first.
Also, squash a typo that prevented the crash dump to be shifted towards the
end of the swap partition. In fact, the entire dumpconf() routine has been
redone, mostly by pasting large chunks from the alpha port.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Oct 13 03:00:38 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +37 -37 lines
backout previous kprintf change

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Oct 11 00:47:27 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +37 -37 lines
printf -> kprintf, sprintf -> ksprintf

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Sep 26 18:55:51 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -1 lines
Initialize md_flags.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Aug 10 13:47:54 1996 UTC (28 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -1 lines
Put back `waittime' variable.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Aug 9 10:30:23 1996 UTC (28 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +17 -10 lines
Change reboot(2) to take two arguments: bootopt like normal and also
a boot string for firmware that can do this, such as the SPARC and
the sun3 models.  It is currently silently ignored on all other
hardware now, however.  The MD function "boot()" has been changed to
also take a char *.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Wed Jun 12 23:48:51 1996 UTC (28 years, 6 months ago) by pk
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +8 -3 lines
Bound the buffer cache to 1/2 of kernel virtual memory, so machines with
lots of core don't run out of core (takes care of PR#2506).

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun May 19 04:12:56 1996 UTC (28 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +1 -7 lines
disable prom sync in romboot() and romhalt(), rather than before calling them.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat May 18 12:36:49 1996 UTC (28 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +7 -1 lines
disable the prom `sync' command before calling romboot() or
romhalt() (idea from OpenBSD).

Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Apr 22 02:50:24 1996 UTC (28 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +1 -2 lines
remove include of <sys/cpu.h>

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Mar 31 22:48:24 1996 UTC (28 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +36 -28 lines
Initialize DMA addresses properlier in cpu_startup().
dumpsys(): do not try to dump first physical page, this fucks up pmap_extract().

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Mar 16 23:31:42 1996 UTC (28 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +7 -8 lines
fix format strings. move rom routine decls in bsd_openprom.h

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Mar 14 21:09:17 1996 UTC (28 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +25 -17 lines
Add prototypes and fix bugs:
    - softclock was called with extra argument.
    - missing %x formats in printf's
    - kgdb_copy called with only two arguments.

Fix conf.c so that it used the _conf.h files from other places instead of
rolling its own.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Mar 14 00:11:29 1996 UTC (28 years, 9 months ago) by pk
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -3 lines
Actually enter executables where promised...

Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue Feb 13 23:59:02 1996 UTC (28 years, 10 months ago) by pk
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +7 -1 lines
If `cold' simply halt the machine in boot(). Note, this still leaves a window
where vfs_shutdown() and sync() can be called prematurely.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Jan 13 03:11:18 1996 UTC (28 years, 11 months ago) by chuck
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -1 lines
change mapdev to panic if size == 0 to be safe.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Jan 12 21:22:46 1996 UTC (28 years, 11 months ago) by chuck
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -2 lines
change mapdev() so that it includes the offset from the start of the
page in the virtual address it returns.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Jan 10 23:00:33 1996 UTC (28 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +4 -1 lines
Add shutdownhooks().

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Jan 4 22:22:47 1996 UTC (28 years, 11 months ago) by jtc
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2 lines
Changed name of sigaltstack's ss_base field to ss_sp to match XPG4.2 and
traditional usage.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Dec 11 12:34:36 1995 UTC (29 years ago) by pk
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +20 -11 lines
mapdev() now takes a `struct rom_reg' argument to get access to `iospace'.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Dec 6 22:33:49 1995 UTC (29 years ago) by pk
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +21 -9 lines
Have v[un]mapbuf() allocate from plain kernel map instead of dvma space.
Remove dvma_malloc/dvma_free; drivers should allocate kernel memory and
use dvma_mapin/dvma_mapout to double map it in DVMA space.

Make the resource map `dvmamap' responsible for all DVMA allocation.
The VM map `physmap' only serves the role of placeholder in the VM system.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Oct 7 06:26:06 1995 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -3 lines
Prefix names of system call implementation functions with `sys_'.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Sep 19 22:59:03 1995 UTC (29 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +6 -5 lines
Make system calls conform to a standard prototype and bring those
prototypes into scope.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Sep 1 20:06:18 1995 UTC (29 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -5 lines
SA_ONSTACK --> SS_ONSTACK

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Jul 5 18:40:50 1995 UTC (29 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +42 -124 lines
Re-arrange dumpconf() and dumpsys().

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Jun 26 22:41:23 1995 UTC (29 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +21 -1 lines
Allocate/initialise DVMA maps and base address.
The fact that `phys_map' is split in half for different kinds of DVMA
allocations is not ideal..

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue May 16 21:16:37 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -2 lines
Put the address of the ps_strings structure in %g1.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue May 16 16:06:48 1995 UTC (29 years, 6 months ago) by pk
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +1 -13 lines
Remove redundant copy of sunos_sigreturn().

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Apr 25 21:57:10 1995 UTC (29 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -2 lines
Make this compile again...

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Apr 22 20:28:40 1995 UTC (29 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +16 -4 lines
- added sunos_machdep.c for sun3, atari, amiga and mac68k.
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Apr 22 10:00:50 1995 UTC (29 years, 7 months ago) by pk
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -26 lines
Use vfs_shutdown().

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Apr 13 14:45:43 1995 UTC (29 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -1 lines
crash dumps need revision

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Apr 10 16:48:52 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -4 lines
kernel_pmap --> pmap_kernel()

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Jan 11 21:21:11 1995 UTC (29 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -1 lines
Use `MACHINE_NONCONTIG' to deal with sparse memory in stead of private
mapping tables. We gain some pages, but there's still some wastage.
For the moment, `MACHINE_NONCONTIG' is still optional.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Dec 6 08:34:08 1994 UTC (30 years ago) by deraadt
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +12 -1 lines
place message buffer in low physical memory, so that it can survive a
warm boot. the sun4 boot program corrupts some memory there so adjust
upwards on the sun4. (from chuck)

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Nov 25 23:10:26 1994 UTC (30 years ago) by deraadt
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +73 -3 lines
wcopy/wzero belong here

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Nov 23 07:00:10 1994 UTC (30 years ago) by deraadt
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +26 -3 lines
stack trace on crash

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Nov 20 20:54:29 1994 UTC (30 years ago) by deraadt
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -4 lines
copyright/Id cleanup

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Nov 14 04:16:12 1994 UTC (30 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +24 -1 lines
make ldcontrolb() use p->p_addr instead of cpcb for the onfault, also
save current onfault value and act at splhigh.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Nov 5 09:31:05 1994 UTC (30 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -1 lines
proc0.p_addr must be initialized before we can take a probe trap, so
that the pcb_onfault will be work

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Nov 2 04:57:25 1994 UTC (30 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
sendsig u_long code

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Oct 26 07:14:29 1994 UTC (30 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
sunos compat changes

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Oct 20 04:46:28 1994 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +9 -9 lines
update for new syscall args description mechanism

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Oct 15 05:51:21 1994 UTC (30 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +14 -4 lines
mapiodev takes a bustype argument now

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Sep 25 20:52:58 1994 UTC (30 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +65 -1 lines
sun4 monitor "w" command support

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Aug 20 01:29:49 1994 UTC (30 years, 3 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -2 lines
IODEV_BASE cannot used as a static initialiser due to NBPG

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jun 10 14:33:10 1994 UTC (30 years, 6 months ago) by pk
Branches: MAIN
CVS tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +7 -7 lines
Allocate pmap's segmap separately.
Keep some tags on segment boundaries to optimise ctx_alloc().

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue May 24 02:26:12 1994 UTC (30 years, 6 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
buffer map

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat May 21 08:23:02 1994 UTC (30 years, 6 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -2 lines
vmmeter

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu May 19 07:13:03 1994 UTC (30 years, 6 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -3 lines
catchup to 4.4-lite and delete some debug stuff

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat May 7 05:09:24 1994 UTC (30 years, 7 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +36 -7 lines
sysctl & altstack

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu May 5 09:58:39 1994 UTC (30 years, 7 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +7 -8 lines
sendsig/sigreturn changes

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Apr 16 10:18:43 1994 UTC (30 years, 7 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
use cnt.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Mar 5 02:26:39 1994 UTC (30 years, 9 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
cut and paste hell

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Feb 26 10:30:35 1994 UTC (30 years, 9 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +19 -1 lines
support SYSVSEM and SYSVMSG

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Feb 1 06:01:47 1994 UTC (30 years, 10 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +0 -57 lines
sparc runs in current today

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jan 27 19:00:13 1994 UTC (30 years, 10 months ago) by pk
Branches: MAIN
CVS tags: sparc-magnum
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +29 -5 lines
ptrace_[fp][sg]etreg()

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Nov 28 18:10:06 1993 UTC (31 years ago) by deraadt
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +9 -28 lines
use new sun_exec_aout_makecmds

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Nov 26 11:26:23 1993 UTC (31 years ago) by deraadt
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
calculate sigtramp address based on PS_STRINGS, not USRSTACK

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Nov 10 14:36:07 1993 UTC (31 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -26 lines
we do not have sysctl

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Nov 10 03:13:49 1993 UTC (31 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +9 -9 lines
use p_emul flag to indicate OS emulation
handle syscalls at standard sun place, ie. trap#80 not #89
add SunOS OMAGIC support

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Nov 5 12:43:04 1993 UTC (31 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +0 -6 lines
now that esp.c is fixed, go back to using the enhanced cache code.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Oct 27 18:12:49 1993 UTC (31 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +7 -1 lines
back out of Torek's cache enable code since it makes 1/1+-style
esp chips blow chunks.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Oct 15 06:13:17 1993 UTC (31 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -3 lines
we now handle SunOS NMAGIC executables

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Oct 15 03:37:33 1993 UTC (31 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -2 lines
No need to allocate clists.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Oct 13 10:05:03 1993 UTC (31 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -14 lines
de-POSIX'ify sendsig() and sigreturn().
Eventually when we get POSIX signals, we will want to back out of this
change.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Oct 13 09:01:07 1993 UTC (31 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -21 lines
move sysarch() to sys_machdep.c

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Oct 11 10:53:26 1993 UTC (31 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +28 -3 lines
machdep.c: setregs() adjusts the stack correct and warns about problems
	cpu_exec_aout_makecmds() that understands sunos ZMAGIC.
trap.c: just Theo's debugging stuff, delete later.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Oct 11 04:26:33 1993 UTC (31 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -2 lines
setregs():
	%sp needs to be offset +sizeof(struct rwindow)
	warn if %sp isn't double-word aligned, it MUST be.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Oct 11 02:16:23 1993 UTC (31 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +91 -19 lines
pmap.c, machdep.c, autoconf.c, cpu.c, intr.c, : net-posted patches from Torek
autoconf.c: mountroot kludges that need fixing later
clock.c: two volatile decls
conf.c: stategy()'s return void, *tty[] not tty[], __P()'d xxdump() calls,
	add mem_no, *constty[] not &cons.
genassym.c, machdep.c: sys/vmmeter.h needed
intr.c: make kernel writable temporarily in intr_fasttrap()
intr.c: do not use NETISR_ARP
locore.s: icode maps at 0 so do not relocate, don't define __main here.
machdep.c: don't have sysctl.h (yet), use vm_page_free_count for freemem,
	setregs() sets pc/npc/stack, note: signal delivery code needs
	fixing, add various other NetBSD function stubs.
pmap.c: do kernel_pmap/kernel_pmap_store the old way, delete
	vm_page_startup_initialized weirdness.
swapgeneric.c: everything about mountroot needs fixing, help.
trap.c: sunsys -> sun_sysent, etc.
vm_machdep.c: don't use cpu_coredump() for now.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Oct 2 10:24:20 1993 UTC (31 years, 2 months ago) by deraadt
Branches: MAIN
Chris Torek's sparc port. Missing lots of things.

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>