The NetBSD Project

CVS log for src/sys/arch/mips/mips/mips_machdep.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.306: download - view: text, markup, annotated - select for diffs
Sat Jan 6 07:27:35 2024 UTC (12 months, 2 weeks ago) by simonb
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.305: preferred, colored
Changes since revision 1.305: +2 -3 lines
Remove funny blank line.

Revision 1.305: download - view: text, markup, annotated - select for diffs
Sat Jan 6 07:27:05 2024 UTC (12 months, 2 weeks ago) by simonb
Branches: MAIN
Diff to: previous 1.304: preferred, colored
Changes since revision 1.304: +10 -2 lines
Add Cavium CN68xx to list of known CPUs.

Revision 1.304: download - view: text, markup, annotated - select for diffs
Sun Oct 23 06:10:09 2022 UTC (2 years, 3 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.303: preferred, colored
Changes since revision 1.303: +4 -4 lines
Trailing whitespace.

Revision 1.303: download - view: text, markup, annotated - select for diffs
Mon Aug 9 21:38:04 2021 UTC (3 years, 5 months ago) by andvar
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.302: preferred, colored
Changes since revision 1.302: +3 -3 lines
s/fist/first/

Revision 1.301.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:22 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.301: preferred, colored; next MAIN 1.302: preferred, colored
Changes since revision 1.301: +7 -7 lines
Sync w/ HEAD.

Revision 1.302: download - view: text, markup, annotated - select for diffs
Wed Jun 2 00:00:39 2021 UTC (3 years, 7 months ago) by simonb
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x
Diff to: previous 1.301: preferred, colored
Changes since revision 1.301: +7 -7 lines
s/leading spaces/tabs/

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

Revision 1.300.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 21:44:45 2021 UTC (3 years, 9 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.300: preferred, colored; next MAIN 1.301: preferred, colored
Changes since revision 1.300: +15 -2 lines
Sync with HEAD.

Revision 1.301: download - view: text, markup, annotated - select for diffs
Tue Mar 23 13:22:40 2021 UTC (3 years, 10 months ago) by simonb
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.300: preferred, colored
Changes since revision 1.300: +15 -2 lines
Work in progress for MIPS modules.  Only tested on mipseb64, not yet
enabled anywhere.

Revision 1.300: download - view: text, markup, annotated - select for diffs
Wed Sep 2 01:33:27 2020 UTC (4 years, 4 months ago) by simonb
Branches: MAIN
Branch point for: thorpej-futex, thorpej-cfargs
Diff to: previous 1.299: preferred, colored
Changes since revision 1.299: +6 -6 lines
Octeon CN70XX CPUs have a COP0 config5 register.
XXX: The presense of these are defined by the MIPS architecture, should probe.

Revision 1.299: download - view: text, markup, annotated - select for diffs
Mon Aug 17 03:22:13 2020 UTC (4 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.298: preferred, colored
Changes since revision 1.298: +2 -6 lines
enable dumppcb.

Revision 1.298: download - view: text, markup, annotated - select for diffs
Fri Jul 31 08:06:33 2020 UTC (4 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.297: preferred, colored
Changes since revision 1.297: +21 -3 lines
Fix TLB count probe on MIPS32R2+/MIPS64R2+ for CPUs that have a Config4
register with a Config4[MMUExtDef] value.

Revision 1.297: download - view: text, markup, annotated - select for diffs
Fri Jul 31 03:07:36 2020 UTC (4 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.296: preferred, colored
Changes since revision 1.296: +3 -3 lines
CN70XX also has Config6 (CvmMemCtl2) and Config7 (CvmVMConfig) registers.

Revision 1.296: download - view: text, markup, annotated - select for diffs
Fri Jul 31 02:58:03 2020 UTC (4 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +4 -3 lines
CN70XX has a config4 CP0 register.

Revision 1.279.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 16 12:34:49 2020 UTC (4 years, 6 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.279: preferred, colored; next MAIN 1.280: preferred, colored
Changes since revision 1.279: +17 -10 lines
Pull up following revision(s) (requested by simonb in ticket #1016):

	sys/arch/mips/mips/mips_machdep.c: revision 1.294

Fix mm_md_kernacc() for 64 bit kernels (including n32):
 - FAULT for any physical address less than start of cached XKPHY address.
 - Pass any remaining physical address less then end of RAM.
 - Pass any remaining physical address within the KEGS0 kernel address range.

Ignore all remaining addresses and fall back to uvm_kernacc() for checking
virtual address ranges.

Fixes pmap(1) (and probably other kmem grovellers).

Revision 1.295: download - view: text, markup, annotated - select for diffs
Mon Jul 13 05:20:45 2020 UTC (4 years, 6 months ago) by simonb
Branches: MAIN
Diff to: previous 1.294: preferred, colored
Changes since revision 1.294: +5 -3 lines
Copy "mach reset" logic from arm32 recently added by jmcneill@.  The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.

Revision 1.294: download - view: text, markup, annotated - select for diffs
Sun Jun 28 13:33:06 2020 UTC (4 years, 6 months ago) by simonb
Branches: MAIN
Diff to: previous 1.293: preferred, colored
Changes since revision 1.293: +17 -10 lines
Fix mm_md_kernacc() for 64 bit kernels (including n32):
 - FAULT for any physical address less than start of cached XKPHY address.
 - Pass any remaining physical address less then end of RAM.
 - Pass any remaining physical address within the KEGS0 kernel address range.
Ignore all remaining addresses and fall back to uvm_kernacc() for checking
virtual address ranges.

Fixes pmap(1) (and probably other kmem grovellers).

Revision 1.293: download - view: text, markup, annotated - select for diffs
Mon Jun 15 07:55:45 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.292: preferred, colored
Changes since revision 1.292: +8 -6 lines
KNF- wrap some long lines.

Revision 1.292: download - view: text, markup, annotated - select for diffs
Mon Jun 15 07:48:12 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.291: preferred, colored
Changes since revision 1.291: +11 -2 lines
Finish CPU core support for Octeon Cavium CN70XX:
 - decode actual CPU name
 - per CPU core reset logic (partially adapted from OpenBSD)
 - handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)

Revision 1.291: download - view: text, markup, annotated - select for diffs
Mon Jun 15 00:31:21 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.290: preferred, colored
Changes since revision 1.290: +4 -5 lines
Remove mips32r2 error introduced in previous commit; there no MP support
at all for 32-bit MIPSNN kernels.

Revision 1.290: download - view: text, markup, annotated - select for diffs
Sun Jun 14 14:45:12 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.289: preferred, colored
Changes since revision 1.289: +3 -3 lines
Revert thinko in previous.

Revision 1.289: download - view: text, markup, annotated - select for diffs
Sun Jun 14 14:40:24 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.288: preferred, colored
Changes since revision 1.288: +3 -3 lines
Include room for the trailing NUL in the way name string.

Revision 1.288: download - view: text, markup, annotated - select for diffs
Sun Jun 14 06:50:31 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +17 -17 lines
Retire MIPS_CP0FL_USERLOCAL and MIPS_CP0FL_HWRENA and the flawed
logic that tried to deal with a MIPS processor that supports the ULR
CP0 register.  Probe correctly and save probed info somewhere we can
actually use it.  Avoids problems where libc expects ULR set to a
value but the CPU definition in the CPU table didn't have the right
combination of magic flags and thus never set ULR in the first place.

Revision 1.287: download - view: text, markup, annotated - select for diffs
Sat Jun 13 14:45:17 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.286: preferred, colored
Changes since revision 1.286: +4 -4 lines
Correct a comment (or at least comment on what we do instead of half of
what we do).

Revision 1.286: download - view: text, markup, annotated - select for diffs
Sat Jun 13 14:39:07 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.285: preferred, colored
Changes since revision 1.285: +4 -4 lines
Use the correct config3 field name (ULRI) for UserLocal register is
implemented bit.

Revision 1.285: download - view: text, markup, annotated - select for diffs
Wed Jun 10 01:42:17 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.284: preferred, colored
Changes since revision 1.284: +4 -2 lines
Protect using mipsNN_foo() functions with an #ifdef MIPSNN.

Fixes non-MIPSNN kernel compiles pointed out by tsutsui@.

Revision 1.284: download - view: text, markup, annotated - select for diffs
Tue Jun 9 06:18:01 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.283: preferred, colored
Changes since revision 1.283: +18 -2 lines
If we are on a SiByte or Cavium CPU with an FPU, report as "built-in FPU"
instead of saying it's an unknown FPU type.

XXX - add any other CPUs to this list?

Revision 1.283: download - view: text, markup, annotated - select for diffs
Tue Jun 9 06:01:49 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +38 -32 lines
Dynamically build the wayname strings instead of using a sparse array
populated with random N-ways entries.  Not only results in smaller code,
but also handles cases with 39-way caches without extra work.

Revision 1.282: download - view: text, markup, annotated - select for diffs
Thu Jun 4 15:42:31 2020 UTC (4 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.281: preferred, colored
Changes since revision 1.281: +13 -2 lines
Tidy up some ugly output from mips_page_physload() when a segment starts
and finishes in the same page.

Revision 1.281: download - view: text, markup, annotated - select for diffs
Sat May 23 11:33:56 2020 UTC (4 years, 8 months ago) by simonb
Branches: MAIN
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +3 -3 lines
The Cavium CN70xx PRID covers both the CN70xx and CN71xx CPU families.

Revision 1.280: download - view: text, markup, annotated - select for diffs
Sat May 23 10:48:43 2020 UTC (4 years, 8 months ago) by simonb
Branches: MAIN
Diff to: previous 1.279: preferred, colored
Changes since revision 1.279: +17 -3 lines
Add SiByte SB-1 rev 0x11 cores and CN70xx CPUs to the CPU table.

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

Revision 1.279: download - view: text, markup, annotated - select for diffs
Fri Mar 29 05:23:12 2019 UTC (5 years, 9 months ago) by simonb
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2, 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
Branch point for: netbsd-9
Diff to: previous 1.278: preferred, colored
Changes since revision 1.278: +4 -2 lines
Add entry for MIPS 25Kf.

Revision 1.255.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:28 2017 UTC (7 years, 1 month ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.255.2.2: preferred, colored; branchpoint 1.255: preferred, colored; next MAIN 1.256: preferred, colored
Changes since revision 1.255.2.2: +138 -51 lines
update from HEAD

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

Revision 1.277.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 10 06:18:52 2017 UTC (7 years, 7 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.277: preferred, colored; next MAIN 1.278: preferred, colored
Changes since revision 1.277: +4 -3 lines
Pull up following revision(s) (requested by skrll in ticket #22):
	sys/arch/mips/mips/mips_machdep.c: revision 1.278
	sys/arch/mips/mips/pmap_machdep.c: revision 1.21
Always use XKPHYS for pool pages on _LP64; otherwise use KSEG0
--
Maintain the split of physical memory into the defined freelists, but
only force pool pages to VM_FREELIST_FIRST512M for non _LP64

Revision 1.278: download - view: text, markup, annotated - select for diffs
Fri Jun 9 06:43:30 2017 UTC (7 years, 7 months ago) by skrll
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, 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
Branch point for: phil-wifi
Diff to: previous 1.277: preferred, colored
Changes since revision 1.277: +4 -3 lines
Maintain the split of physical memory into the defined freelists, but
only force pool pages to VM_FREELIST_FIRST512M for non _LP64

Revision 1.276.6.2: download - view: text, markup, annotated - select for diffs
Thu May 11 02:58:35 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.276.6.1: preferred, colored; branchpoint 1.276: preferred, colored; next MAIN 1.277: preferred, colored
Changes since revision 1.276.6.1: +3 -2 lines
Sync with HEAD

Revision 1.277: download - view: text, markup, annotated - select for diffs
Sun May 7 05:45:07 2017 UTC (7 years, 8 months ago) by skrll
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, netbsd-8-base
Branch point for: netbsd-8
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +3 -2 lines
opt_multiprocessor.h police

Revision 1.276.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:33 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +16 -7 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.262.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:15 2017 UTC (7 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.262.2.3: preferred, colored; branchpoint 1.262: preferred, colored
Changes since revision 1.262.2.3: +18 -20 lines
Sync with HEAD

Revision 1.272.2.4: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:21 2017 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.272.2.3: preferred, colored; branchpoint 1.272: preferred, colored; next MAIN 1.273: preferred, colored
Changes since revision 1.272.2.3: +18 -20 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.276: download - view: text, markup, annotated - select for diffs
Fri Dec 23 07:15:27 2016 UTC (8 years, 1 month ago) by cherry
Branches: MAIN
CVS tags: prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +16 -19 lines
"Make NetBSD great again!"

Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

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

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

Revision 1.275: download - view: text, markup, annotated - select for diffs
Thu Dec 22 07:56:38 2016 UTC (8 years, 1 month ago) by mrg
Branches: MAIN
Diff to: previous 1.274: preferred, colored
Changes since revision 1.274: +4 -3 lines
fix lp64 kvm access for many kernel addresses.
in mm_md_kernacc() allow an address if it matches MIPS_KSEG0_P().

now a static n64 kvm-using binary runs sanely on an n64 kernel.
(dynamic n64 has problems with non-trivial programs.)

ok matt@.

Revision 1.262.2.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:32 2016 UTC (8 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.262.2.2: preferred, colored; branchpoint 1.262: preferred, colored
Changes since revision 1.262.2.2: +36 -7 lines
Sync with HEAD

Revision 1.272.2.3: download - view: text, markup, annotated - select for diffs
Sat Aug 6 00:19:06 2016 UTC (8 years, 5 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.272.2.2: preferred, colored; branchpoint 1.272: preferred, colored
Changes since revision 1.272.2.2: +5 -5 lines
Sync with HEAD

Revision 1.274: download - view: text, markup, annotated - select for diffs
Sat Jul 30 05:55:34 2016 UTC (8 years, 5 months ago) by matt
Branches: MAIN
CVS tags: pgoyette-localcount-20161104, pgoyette-localcount-20160806, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +5 -5 lines
Fix typo.  N32 doesn't want UX on.

Revision 1.272.2.2: download - view: text, markup, annotated - select for diffs
Tue Jul 26 03:24:17 2016 UTC (8 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.272.2.1: preferred, colored; branchpoint 1.272: preferred, colored
Changes since revision 1.272.2.1: +4 -3 lines
Sync with HEAD

Revision 1.273: download - view: text, markup, annotated - select for diffs
Mon Jul 25 22:10:03 2016 UTC (8 years, 6 months ago) by macallan
Branches: MAIN
CVS tags: pgoyette-localcount-20160726
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +4 -3 lines
xburst needs CPU_MIPS_D_CACHE_COHERENT

Revision 1.272.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 20 23:50:55 2016 UTC (8 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +16 -7 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.272: download - view: text, markup, annotated - select for diffs
Mon Jul 11 18:56:41 2016 UTC (8 years, 6 months ago) by skrll
Branches: MAIN
CVS tags: pgoyette-localcount-base
Branch point for: pgoyette-localcount
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +12 -12 lines
Trailing whitespace

Revision 1.271: download - view: text, markup, annotated - select for diffs
Mon Jul 11 16:15:36 2016 UTC (8 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.270: preferred, colored
Changes since revision 1.270: +24 -6 lines
Change MIPS to use the common pmap code.
Switch to 8KB pages on CPUs with a R4K MMU.
Simplify cache code.
Merge in most of changes from matt-mips64 branch

Revision 1.270: download - view: text, markup, annotated - select for diffs
Mon Jul 11 01:50:17 2016 UTC (8 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.269: preferred, colored
Changes since revision 1.269: +12 -2 lines
Add machdep.fpu_present sysctl node

Revision 1.262.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:47 2015 UTC (9 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.262.2.1: preferred, colored; branchpoint 1.262: preferred, colored
Changes since revision 1.262.2.1: +23 -17 lines
Sync with HEAD

Revision 1.269: download - view: text, markup, annotated - select for diffs
Thu Jun 11 15:48:57 2015 UTC (9 years, 7 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.268: preferred, colored
Changes since revision 1.268: +2 -3 lines
No more sysmapsize.

Revision 1.268: download - view: text, markup, annotated - select for diffs
Thu Jun 11 08:22:09 2015 UTC (9 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.267: preferred, colored
Changes since revision 1.267: +4 -4 lines
Add struct pmap_limits and pm_{min,max}addr from uvm/pmap/map.h and use it to
store avail_start, avail_end, virtual_start, and virtual_end.
Remove iospace and let emips just bump pmap_limits.virtual_start to get the
VA space it needs.
pmap_segtab.c is almost identical to uvm/pmap/pmap_segtab.c now.  It won't
be long until we switch to the uvm/pmap one.

Revision 1.267: download - view: text, markup, annotated - select for diffs
Wed Jun 10 05:03:59 2015 UTC (9 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +9 -2 lines
Add entry for MIPS 1074K

Revision 1.266: download - view: text, markup, annotated - select for diffs
Mon Jun 8 18:22:23 2015 UTC (9 years, 7 months ago) by macallan
Branches: MAIN
Diff to: previous 1.265: preferred, colored
Changes since revision 1.265: +4 -4 lines
sync _MTC0_V0_USERLOCAL with cpuregs.h
now CI20 boots again

Revision 1.262.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:02 2015 UTC (9 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +63 -17 lines
Sync with HEAD

Revision 1.265: download - view: text, markup, annotated - select for diffs
Mon Jun 1 22:55:13 2015 UTC (9 years, 7 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +13 -7 lines
Rework cavium support in preparation for MULTIPROCESSOR support

Revision 1.264: download - view: text, markup, annotated - select for diffs
Mon May 25 23:45:54 2015 UTC (9 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +3 -5 lines
Enable HWRENA for the CN50xx even though it doesn't support USERLOCAL.
Enable the MIPS64R2 locoresw.

Revision 1.263: download - view: text, markup, annotated - select for diffs
Wed Apr 29 08:32:00 2015 UTC (9 years, 8 months ago) by hikaru
Branches: MAIN
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +54 -12 lines
Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.

Revision 1.262: download - view: text, markup, annotated - select for diffs
Tue Nov 25 05:28:26 2014 UTC (10 years, 2 months ago) by macallan
Branches: MAIN
CVS tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.261: preferred, colored
Changes since revision 1.261: +3 -8 lines
fix _MTC0_V0_USERLOCAL for _LP64 as well
ok matt@

Revision 1.261: download - view: text, markup, annotated - select for diffs
Sat Nov 22 15:02:39 2014 UTC (10 years, 2 months ago) by macallan
Branches: MAIN
Diff to: previous 1.260: preferred, colored
Changes since revision 1.260: +15 -4 lines
deal with Ingenic XBurst CPUs

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

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

Revision 1.260: download - view: text, markup, annotated - select for diffs
Mon Jun 2 04:57:02 2014 UTC (10 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +3 -3 lines
apply __diagused.

Revision 1.250.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:39:57 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.250.2.1: preferred, colored; branchpoint 1.250: preferred, colored; next MAIN 1.251: preferred, colored
Changes since revision 1.250.2.1: +10 -6 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.256.6.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:17 2014 UTC (10 years, 8 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.256: preferred, colored; next MAIN 1.257: preferred, colored
Changes since revision 1.256: +3 -6 lines
sync with head

Revision 1.259: download - view: text, markup, annotated - select for diffs
Mon Mar 24 20:06:32 2014 UTC (10 years, 10 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Diff to: previous 1.258: preferred, colored
Changes since revision 1.258: +2 -3 lines
use cpu_{g,s}etmodel

Revision 1.258: download - view: text, markup, annotated - select for diffs
Sun Nov 10 18:27:15 2013 UTC (11 years, 2 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +3 -3 lines
fix unused variable warnings

Revision 1.257: download - view: text, markup, annotated - select for diffs
Wed Oct 30 06:47:18 2013 UTC (11 years, 2 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.256: preferred, colored
Changes since revision 1.256: +2 -4 lines
G/C struct user *proc0paddr.

Revision 1.255.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:08 2013 UTC (11 years, 7 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +9 -2 lines
resync from head

Revision 1.256: download - view: text, markup, annotated - select for diffs
Thu Feb 28 12:44:38 2013 UTC (11 years, 10 months ago) by macallan
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +9 -2 lines
add sysctl machdep.loongson-mmi to indicate wether Loongson Multimedia
Instructions are supported
mostly for pixman

Revision 1.205.4.1.2.1.2.69: download - view: text, markup, annotated - select for diffs
Sat Dec 15 03:05:55 2012 UTC (12 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.68: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored; next MAIN 1.205.4.2: preferred, colored
Changes since revision 1.205.4.1.2.1.2.68: +12 -0 lines
Add initial support for XLP II (XLP2XX/XLP1XX).

Revision 1.205.4.1.2.1.2.68: download - view: text, markup, annotated - select for diffs
Sat Aug 4 07:20:31 2012 UTC (12 years, 5 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.67: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.67: +2 -0 lines
Make MIPS use a multi-level page table for the kernel address space.
(just like the user address does).   XXX fix mips1

Revision 1.250.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:06:40 2012 UTC (12 years, 9 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +15 -22 lines
sync with head

Revision 1.255: download - view: text, markup, annotated - select for diffs
Sun Mar 11 00:02:05 2012 UTC (12 years, 10 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +2 -3 lines
normalise RCSID handling some.

Revision 1.250.6.5: download - view: text, markup, annotated - select for diffs
Tue Mar 6 18:26:38 2012 UTC (12 years, 10 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.250.6.4: preferred, colored; branchpoint 1.250: preferred, colored; next MAIN 1.251: preferred, colored
Changes since revision 1.250.6.4: +2 -9 lines
sync to -current

Revision 1.250.6.4: download - view: text, markup, annotated - select for diffs
Tue Mar 6 09:56:08 2012 UTC (12 years, 10 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.250.6.3: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.6.3: +9 -3 lines
sync to -current

Revision 1.250.6.3: download - view: text, markup, annotated - select for diffs
Sun Mar 4 00:46:11 2012 UTC (12 years, 10 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.250.6.2: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.6.2: +0 -7 lines
sync to latest -current.

Revision 1.254: download - view: text, markup, annotated - select for diffs
Sat Mar 3 00:23:19 2012 UTC (12 years, 10 months ago) by matt
Branches: MAIN
CVS tags: jmcneill-usbmp-base6, jmcneill-usbmp-base4
Diff to: previous 1.253: preferred, colored
Changes since revision 1.253: +2 -9 lines
remove safepri declaration since it's defined in kern_synch.c

Revision 1.250.6.2: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:31 2012 UTC (12 years, 11 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.250.6.1: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.6.1: +2 -4 lines
sync to -current.

Revision 1.253: download - view: text, markup, annotated - select for diffs
Sun Feb 19 21:06:18 2012 UTC (12 years, 11 months ago) by rmind
Branches: MAIN
CVS tags: jmcneill-usbmp-base5, jmcneill-usbmp-base3
Diff to: previous 1.252: preferred, colored
Changes since revision 1.252: +2 -4 lines
Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

Revision 1.250.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:32:40 2012 UTC (12 years, 11 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +15 -12 lines
merge to -current.

Revision 1.205.4.1.2.1.2.67: download - view: text, markup, annotated - select for diffs
Thu Feb 16 18:58:57 2012 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.66: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.66: +1 -1 lines
mips_nfreelist is the one past the highest freelist used.

Revision 1.205.4.1.2.1.2.66: download - view: text, markup, annotated - select for diffs
Tue Feb 14 01:51:11 2012 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.65: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.65: +4 -6 lines
Fix various LP64 thinkos.

Revision 1.205.4.1.2.1.2.65: download - view: text, markup, annotated - select for diffs
Mon Feb 13 18:20:25 2012 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.64: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.64: +188 -56 lines
Add mm_md_direct_mapped_virt (inverse of mm_md_direct_mapped_phys).  Add a
third argument, vsize_t *, which, if not NULL, returns the amount of virtual
space left in that direct mapped segment.
Get rid most of the individual direct_mapped assert and use the above
routines instead.
Improve kernel core dump code.

Revision 1.205.4.1.2.1.2.64: download - view: text, markup, annotated - select for diffs
Mon Feb 13 08:13:42 2012 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.63: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.63: +5 -0 lines
Fix emulation to not panic when it encounters something it doesn't like.
(so running crashme won't crash the system).
Centralize the trapsignal processing so we can print out the trap info if
so desired.
Add a machdep.printfataltraps sysctl knob.

Revision 1.252: download - view: text, markup, annotated - select for diffs
Sat Feb 11 23:16:15 2012 UTC (12 years, 11 months ago) by martin
Branches: MAIN
CVS tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base2
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +13 -2 lines
Add a posix_spawn syscall, as discussed on tech-kern.
Based on the summer of code project by Charles Zhang, heavily reworked
later by me - all bugs are likely mine.
Ok: core, releng.

Revision 1.205.4.1.2.1.2.63: download - view: text, markup, annotated - select for diffs
Thu Feb 9 03:14:45 2012 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.62: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.62: +15 -0 lines
Add mips_page_to_pggroup which return what pggroup a page belongs to.
Eradicate VM_FREELIST_MAX
When adding pages to the system, track what freelists get pages.

Revision 1.205.4.1.2.1.2.62: download - view: text, markup, annotated - select for diffs
Sat Jan 28 08:05:03 2012 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.61: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.61: +5 -6 lines
Fix mm_md_direct_mapped_phys

Revision 1.205.4.1.2.1.2.61: download - view: text, markup, annotated - select for diffs
Sat Jan 28 00:56:34 2012 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.60: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.60: +23 -0 lines
Add mm_md_direct_mapped_phys from current.

Revision 1.205.4.1.2.1.2.60: download - view: text, markup, annotated - select for diffs
Thu Jan 19 08:28:50 2012 UTC (13 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.59: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.59: +8 -2 lines
When running an N32 kernel, run it with 64-bit addresses even though the
kernel itself will only use 32-bit addresses.  There are exceptions.
bus_space_handles are now register_t instead of intptr_t.  This allows them
to contain XKPHYS addresses.  Now bus_space can use XKPHYS addresses and
not required non-KSEG1 devices to be mapped in KSEG2 thereby leaving more
KSEG2 space for the kernel to use.

The cache range routines (but not index routines) now take a register_t
instead of vaddr_t so they can too take a XKPHYS address.  This allows the
pmap to use a page's XKPHYS address to clean sync the icache thereby avoiding
massive icache invalidations.

Since "cache" instruction effects are global to all CPUs and their caches, we
can use the above to greatly simplify MP page isyncs.  If using an O32 kernel
with pages outside KSEG0, index ops still need to be performed since there
isn't an a quick way of mapping the page.

Revision 1.205.4.1.2.1.2.59: download - view: text, markup, annotated - select for diffs
Tue Dec 27 16:56:17 2011 UTC (13 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.58: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.58: +2 -2 lines
Use mips_ksegx_start (not mips3_ksegx_start).

Revision 1.205.4.1.2.1.2.58: download - view: text, markup, annotated - select for diffs
Tue Dec 27 06:57:34 2011 UTC (13 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.57: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.57: +8 -0 lines
Since MIPS supports multiple page sizes now, add pg_size to cpu_kcore_hdr_t
as well members to decode ksegx addresses.

Revision 1.205.4.1.2.1.2.57: download - view: text, markup, annotated - select for diffs
Fri Dec 23 23:12:08 2011 UTC (13 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.56: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.56: +1 -1 lines
Fix MIPS1 typo.

Revision 1.205.4.1.2.1.2.56: download - view: text, markup, annotated - select for diffs
Fri Dec 23 22:45:27 2011 UTC (13 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.55: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.55: +62 -10 lines
add entries for MIPS 1074K and RMI XLP3XX and XLP8XX.
for mipsNN, use TLB random register in case there are more than 64 TLB entries.
Add cpuname argument to cpu_identify.  Fix bug in mips_page_physaddr.
Print out number of ASIDs in cpu_identify.

Revision 1.205.4.1.2.1.2.55: download - view: text, markup, annotated - select for diffs
Tue Dec 13 07:34:29 2011 UTC (13 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.54: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.54: +3 -3 lines
If CID is RMI and we MIPS64R2, be sure to mips64_rmixl_*.

Revision 1.251: download - view: text, markup, annotated - select for diffs
Mon Dec 12 19:03:10 2011 UTC (13 years, 1 month ago) by mrg
Branches: MAIN
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +4 -12 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.205.4.1.2.1.2.54: download - view: text, markup, annotated - select for diffs
Thu Dec 1 02:58:53 2011 UTC (13 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.53: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.53: +1 -1 lines
Fix $NetBSD$

Revision 1.250: download - view: text, markup, annotated - select for diffs
Sat Oct 29 18:56:49 2011 UTC (13 years, 2 months ago) by jakllsch
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.249: preferred, colored
Changes since revision 1.249: +5 -2 lines
Add Broadcom BCM3302 CPU to the table.

Revision 1.249: download - view: text, markup, annotated - select for diffs
Thu Sep 22 05:08:52 2011 UTC (13 years, 4 months ago) by macallan
Branches: MAIN
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +5 -3 lines
support BUS_SPACE_MAP_PREFETCH in order to allow mapping device memory and
DMA buffers with cacheing disabled but things like write combining, relaxed
ordering etc. allowed when the CPU supports it
so far enabled only on Loongson, should work on R1xk and probably newer CPUs

Revision 1.248: download - view: text, markup, annotated - select for diffs
Sat Aug 27 16:54:14 2011 UTC (13 years, 5 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +3 -2 lines
There are non-writable bits in MIPS_COP_0_TLB_HI between ASID and VPN, so
mips3_cp0_tlb_entry_hi_probe() returns a value with some 0 in the low 12 bits.
Thus the computed mips_vm_maxuser_address is wrong. Fix by oring PAGE_MASK to
return value of mips3_cp0_tlb_entry_hi_probe().

Revision 1.247: download - view: text, markup, annotated - select for diffs
Wed Aug 24 16:01:53 2011 UTC (13 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +16 -2 lines
When using 16KB pages in a 64 bit kernel, the amount of address space our page
table can address can be larger than the amount of address space the CPU
implementation supports.  This change limits the amount address space to what
the CPU implementation provides.

Revision 1.246: download - view: text, markup, annotated - select for diffs
Tue Aug 16 06:58:15 2011 UTC (13 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +34 -4 lines
Add support for the MIPS DSP ASE (as a second PCU).

Revision 1.245: download - view: text, markup, annotated - select for diffs
Sun Jul 31 15:39:29 2011 UTC (13 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +70 -7 lines
Add support for a loongson2_subr.S.  This is needed since that chip needs
special handling to manually flush the ITLB on TLB updates.

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

Revision 1.244: download - view: text, markup, annotated - select for diffs
Tue Jun 14 05:30:40 2011 UTC (13 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +12 -9 lines
Fix mm_md_direct_mapped_phys

Revision 1.243: download - view: text, markup, annotated - select for diffs
Sun Jun 12 03:35:44 2011 UTC (13 years, 7 months ago) by rmind
Branches: MAIN
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +61 -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.225.4.8: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:01 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.225.4.7: preferred, colored; branchpoint 1.225: preferred, colored; next MAIN 1.226: preferred, colored
Changes since revision 1.225.4.7: +0 -3 lines
sync with head

Revision 1.242: download - view: text, markup, annotated - select for diffs
Tue Jun 7 01:00:35 2011 UTC (13 years, 7 months ago) by matt
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +2 -3 lines
Remove unused variable pcb.

Revision 1.241: download - view: text, markup, annotated - select for diffs
Tue Jun 7 00:48:31 2011 UTC (13 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +2 -4 lines
Switch alpha to use PCU to manage the FPU.
Tested by mhitch and review by rmind.

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

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

Revision 1.205.4.1.2.1.2.53: download - view: text, markup, annotated - select for diffs
Thu May 26 19:21:56 2011 UTC (13 years, 8 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.52: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.52: +184 -13 lines
Add MIPS64_RMIXL (XLR/XLS) and MIPS64R2_RMIXL (XLP).  This allows the kernel
to treat this special which is needed for MP support. When accessing the TLB,
always lock the TLB before hand.  If in the miss handlers, the TLB is already
locked let trap deal with the exeception.

Revision 1.240: download - view: text, markup, annotated - select for diffs
Fri Apr 29 22:04:42 2011 UTC (13 years, 8 months ago) by matt
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +9 -12 lines
Since the RAS lock stubs are the default, don't bother assigning them just
make the default.

Revision 1.205.4.1.2.1.2.52: download - view: text, markup, annotated - select for diffs
Fri Apr 29 08:26:29 2011 UTC (13 years, 8 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.51: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.51: +364 -148 lines
Major merge to/from current.
Adds MIPS32/MIPS64 R2 support (24k, 74k, etc.) including COP0_USERLOCAL
Adds support for emulation of rdhwr $3,$29 instruction.
Major cleanup of SMP code.  (stable on multi-core / single thread per core)
llsc locking code only used in MP capable kernels.

Revision 1.225.4.6: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:12 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.225.4.5: preferred, colored; branchpoint 1.225: preferred, colored
Changes since revision 1.225.4.5: +240 -26 lines
sync with head

Revision 1.239: download - view: text, markup, annotated - select for diffs
Thu Apr 14 05:10:04 2011 UTC (13 years, 9 months ago) by cliff
Branches: MAIN
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +25 -2 lines
- add mips_watchpoint_init() to discover number of CPU watchpoints,
and call that from {mips32,mips32r2,mips64,mips64r2}_vector_init()

Revision 1.238: download - view: text, markup, annotated - select for diffs
Wed Apr 6 05:50:39 2011 UTC (13 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +19 -11 lines
A little constification.
Add MIPS 1004K entry.

Revision 1.237: download - view: text, markup, annotated - select for diffs
Tue Mar 15 07:39:23 2011 UTC (13 years, 10 months ago) by matt
Branches: MAIN
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +203 -20 lines
Add separate support for MIPS32R2 and MIPS64R2.
Use EHB/SSNOP and jr.hb ra as appropriate (COP0_SYNC now uses them).
Add support for COP_0_HWRENA and COP_0_USERLOCAL (use by rdhwr $3,$29
instruction for TLS support).
Add mips3+ reserved instruction handler to emulate rdhwr is many fewer
instructions.

Revision 1.225.4.5: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:51:08 2011 UTC (13 years, 10 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.225.4.4: preferred, colored; branchpoint 1.225: preferred, colored
Changes since revision 1.225.4.4: +707 -858 lines
sync with head

Revision 1.231.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:09:50 2011 UTC (13 years, 10 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.231.4.1: preferred, colored; branchpoint 1.231: preferred, colored; next MAIN 1.232: preferred, colored
Changes since revision 1.231.4.1: +680 -853 lines
Sync with HEAD

Revision 1.236: download - view: text, markup, annotated - select for diffs
Fri Mar 4 22:25:27 2011 UTC (13 years, 10 months ago) by joerg
Branches: MAIN
CVS tags: bouyer-quota2-nbase
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +3 -3 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.235: download - view: text, markup, annotated - select for diffs
Thu Mar 3 18:44:58 2011 UTC (13 years, 10 months ago) by matt
Branches: MAIN
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +59 -28 lines
Change MIPS_CP0FL_CONFIG*
Add MIPS_CP0FL_HWRENA and USERLOCAL

Revision 1.234: download - view: text, markup, annotated - select for diffs
Sun Feb 20 07:45:48 2011 UTC (13 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +640 -844 lines
Major merge forward from matt-nb5-mips64.
New fixup code.
New common SPL code.
New common interrupt code.
Move related variables into structures.
Cleanup locore (move MD variable into it).
Kill StudlyCaps
Use PCU for FPU

Revision 1.231.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:19:28 2011 UTC (13 years, 11 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +9 -5 lines
Sync with HEAD

Revision 1.233: download - view: text, markup, annotated - select for diffs
Wed Jan 26 01:18:54 2011 UTC (14 years ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base7, bouyer-quota2-base
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +7 -3 lines
Add support for the Extensible MIPS ("eMIPS") platform.  The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.

Revision 1.232: download - view: text, markup, annotated - select for diffs
Sat Jan 22 14:47:21 2011 UTC (14 years ago) by tsutsui
Branches: MAIN
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +4 -4 lines
Whitespace nits.

Revision 1.231: download - view: text, markup, annotated - select for diffs
Fri Jan 14 02:06:28 2011 UTC (14 years ago) by rmind
Branches: MAIN
CVS tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +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.230: download - view: text, markup, annotated - select for diffs
Sun Jan 2 12:17:28 2011 UTC (14 years ago) by he
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +3 -3 lines
Make this build again by removing the const qualifier on the
local pcb0 variable in mips_init_lwp0_uarea().

Revision 1.229: download - view: text, markup, annotated - select for diffs
Sat Jan 1 02:08:10 2011 UTC (14 years ago) by nisimura
Branches: MAIN
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +7 -8 lines
- leave lwp0 trapframe zerod since it's never used.
- 64bit op SR[KX] bit is for !o32 cases.
- build struct sigframe_siginfo locally and then operate single copyout()
  to user stack as other ports do.

Revision 1.205.4.1.2.1.2.51: download - view: text, markup, annotated - select for diffs
Wed Dec 29 00:39:40 2010 UTC (14 years ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231
Diff to: previous 1.205.4.1.2.1.2.50: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.50: +3 -4 lines
Janitorial work.
Move emulation prototypes here and get rid of StudLyCaps.
Remove kludgery for lwp/setfunc trampoline and just grab them of the damn
structure.
Make mips_locore_jumpvec contain the routines that don't get reassigned
and move wbflush to mips_locoresw since it does get overridden.

Revision 1.205.4.1.2.1.2.50: download - view: text, markup, annotated - select for diffs
Fri Dec 24 07:21:12 2010 UTC (14 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.49: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.49: +4 -7 lines
Bring locore_mips1.S into the new world order.  You can diff locore_mips1.S
against mipsX_subr.S and have reasonable output.  A lot of comments have
been changed to be common between the two.  The ordering of vectors/functions
have also changed to improve diff output.

Revision 1.205.4.1.2.1.2.49: download - view: text, markup, annotated - select for diffs
Wed Dec 22 06:13:36 2010 UTC (14 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.48: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.48: +6 -5 lines
Rework how fixups are processed.  Inside of generating a table, we just
scan kernel text for jumps to locations between (__stub_start, __stub_end]
and if found, we actually decode the instructions in the stub to find out
where the stub would eventually jump to and then patch the original jump
to jump directly to it bypassing the stub.  This is slightly slower than
the previous method but it's a simplier and new stubs get automagically
handled.

Revision 1.228: download - view: text, markup, annotated - select for diffs
Wed Nov 10 09:27:23 2010 UTC (14 years, 2 months ago) by uebayasi
Branches: MAIN
CVS tags: uebayasi-xip-base6
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +1 -1 lines
Use more VM_PHYSMEM_*() accessors.  No functional changes.

Revision 1.227: download - view: text, markup, annotated - select for diffs
Sat Nov 6 11:46:01 2010 UTC (14 years, 2 months ago) by uebayasi
Branches: MAIN
CVS tags: uebayasi-xip-base5
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +3 -3 lines
Machine dependent code is considered as part of UVM.  Include
internal API header.

Revision 1.205.4.1.2.1.2.48: download - view: text, markup, annotated - select for diffs
Wed Aug 18 07:12:57 2010 UTC (14 years, 5 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-k15
Diff to: previous 1.205.4.1.2.1.2.47: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.47: +7 -7 lines
Make sure UX is set if KX is set.  Use (intptr_t), not (int).

Revision 1.200.2.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:52:23 2010 UTC (14 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.200.2.5: preferred, colored; branchpoint 1.200: preferred, colored; next MAIN 1.201: preferred, colored
Changes since revision 1.200.2.5: +16 -21 lines
sync with head.

Revision 1.205.4.1.2.1.2.47: download - view: text, markup, annotated - select for diffs
Wed Jun 9 14:20:00 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.46: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.46: +23 -8 lines
Add support for setting/clearing PK_32 on _LP64 kernels.  Make cpu_proc_fork
a real function and add it to vm_machdep.c and let it copy PK_32 on fork.
Properly clear/set PK_32 depending on ABI in setregs.  Lack of PX_32 use
tracked down by Cliff Neighbors.  [Ya! ps now works!]

Revision 1.225.4.4: download - view: text, markup, annotated - select for diffs
Sun May 30 05:16:58 2010 UTC (14 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.225.4.3: preferred, colored; branchpoint 1.225: preferred, colored
Changes since revision 1.225.4.3: +16 -21 lines
sync with head

Revision 1.205.4.1.2.1.2.46: download - view: text, markup, annotated - select for diffs
Fri May 28 21:24:47 2010 UTC (14 years, 8 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.45: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.45: +6 -3 lines
When use N32 and we are on a MIPS64 chip, enable 64-bit instructions via
PX so that we can still use the TLB miss exception instead of the XTLB miss
exception path.

Revision 1.225.2.3: download - view: text, markup, annotated - select for diffs
Thu May 27 14:47:29 2010 UTC (14 years, 8 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.225.2.2: preferred, colored; branchpoint 1.225: preferred, colored; next MAIN 1.226: preferred, colored
Changes since revision 1.225.2.2: +1 -1 lines
Fix build.

Revision 1.205.4.1.2.1.2.45: download - view: text, markup, annotated - select for diffs
Thu May 6 19:51:20 2010 UTC (14 years, 8 months ago) by cliff
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.44: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.44: +34 -2 lines
add cputab[] entries for XLS models 208, 204, 108, 104

Revision 1.225.2.2: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:39:36 2010 UTC (14 years, 8 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.225.2.1: preferred, colored; branchpoint 1.225: preferred, colored
Changes since revision 1.225.2.1: +14 -19 lines
Sync with HEAD.

Revision 1.225.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 28 08:31:06 2010 UTC (14 years, 9 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +3 -3 lines
Always use struct vm_physseg *vm_physmem_ptrs[] in MD code.

Revision 1.205.4.1.2.1.2.44: download - view: text, markup, annotated - select for diffs
Tue Apr 27 05:45:22 2010 UTC (14 years, 9 months ago) by cliff
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.43: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.43: +11 -3 lines
add cputab[] entry for RMI CPU MIPS_XLR732C

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

Revision 1.225.4.2: download - view: text, markup, annotated - select for diffs
Sun Apr 25 15:27:36 2010 UTC (14 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.225.4.1: preferred, colored; branchpoint 1.225: preferred, colored
Changes since revision 1.225.4.1: +7 -18 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.226: download - view: text, markup, annotated - select for diffs
Fri Apr 23 19:18:09 2010 UTC (14 years, 9 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +16 -21 lines
Remove lwp_uc_pool, replace it with kmem(9), plus add some consistency.
As discussed, a while ago, with ad@.

Revision 1.205.4.1.2.1.2.43: download - view: text, markup, annotated - select for diffs
Mon Apr 12 22:01:41 2010 UTC (14 years, 9 months ago) by cliff
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.42: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.42: +5 -5 lines
- add whitespace to make print format of regions in
mips_page_physload() more readable

Revision 1.205.4.1.2.1.2.42: download - view: text, markup, annotated - select for diffs
Mon Mar 29 23:33:37 2010 UTC (14 years, 9 months ago) by cliff
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.41: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.41: +10 -2 lines
- add a cputab[] entry for RMI XLR732 (other XLR models are TBD)

Revision 1.205.4.1.2.1.2.41: download - view: text, markup, annotated - select for diffs
Sun Mar 21 17:38:32 2010 UTC (14 years, 10 months ago) by cliff
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.40: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.40: +26 -21 lines
mips_vector_init now takes an argument to specify splsw.
NULL specifies use the default 'std_splsw'

Revision 1.225.4.1: download - view: text, markup, annotated - select for diffs
Thu Mar 18 04:36:50 2010 UTC (14 years, 10 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +54 -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.200.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:02:40 2010 UTC (14 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.200.2.4: preferred, colored; branchpoint 1.200: preferred, colored
Changes since revision 1.200.2.4: +605 -286 lines
sync with head

Revision 1.205.4.1.2.1.2.40: download - view: text, markup, annotated - select for diffs
Mon Mar 1 19:29:41 2010 UTC (14 years, 10 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.39: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.39: +2 -23 lines
Add secondary processor spinup support (cpu_trampoline is in locore_mips3.S).
Nuke lse_boot_secondary_processors (not needed).
Move cpu_info_store to cpu_subr.C

Revision 1.205.4.1.2.1.2.39: download - view: text, markup, annotated - select for diffs
Sun Feb 28 23:45:06 2010 UTC (14 years, 10 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.38: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.38: +11 -625 lines
Split FPU support into separate file and keep internals private to that file.
Make it MPSAFE.  Change interface to be very similar to what's used on other
architectures.
Add l_md.md_fpcpu to mdlwp (needed for MPSAFE)
Move pridtab from <mips/cpu.h> to <mips/locore.h>
Add initial common IPI dispatcher.
Split cpu_* routines from mips_machdep.c into cpu_subr.c
Add cpu_startup_common which has the code replicated in half-dozen
plus machdep.c files.

Revision 1.205.4.1.2.1.2.38: download - view: text, markup, annotated - select for diffs
Sun Feb 28 03:30:34 2010 UTC (14 years, 10 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.37: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.37: +11 -2 lines
#define __INTR_PRIVATE
Add calls to fixup the splcalls and fixup the call to mips_cpu_switch_resume
in cpu_switchto (which remove an indirect calls from a critical routine).

Revision 1.205.4.1.2.1.2.37: download - view: text, markup, annotated - select for diffs
Sat Feb 27 07:58:52 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.36: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.36: +27 -85 lines
Add mipsXX_tlb_enter which modifies/sets a specific TLB entry with a new
mapping (useful for wired TLB entries).
Add mips_fixup_exceptions which will walk through the exception vectors
and allows the fixup of any cpu_info references to be changed to a more
MP-friendly incarnation.
Define a common fixup method to use a wired TLB entry at -PAGE_SIZE allowing
direct loads using a negative based from the zero register.
Change varible pmap_tlb_info t pmap_tlb0_info.

Revision 1.205.4.1.2.1.2.36: download - view: text, markup, annotated - select for diffs
Thu Feb 25 05:45:12 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.35: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.35: +13 -8 lines
Add mipsXX_tlb_record_asids - records what ASIDs have valid TLB entries in
the TLB.
Move some mips3 specific routines from locore.S to locore_mips3.S

Revision 1.205.4.1.2.1.2.35: download - view: text, markup, annotated - select for diffs
Tue Feb 23 20:33:48 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.34: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.34: +86 -74 lines
Make sure <mips/locore.h> is not included by MI code.
Add send_ipi and cpu_offline_md hooks to locoresw.
Add MP support to pmap (pvlist locking, tlb locking).
Add TLB shootdown support (see comment at the top of mips/pmap_tlb.c).
Add mipsXX_tlb_invalidate_globals routine

Revision 1.205.4.1.2.1.2.34: download - view: text, markup, annotated - select for diffs
Tue Feb 16 08:13:57 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.33: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.33: +142 -8 lines
Add __HAVE_PREEMPTION support for NetBSD/mips.  Kill IPL_PREEMPT since it
isn't needed.

Revision 1.205.4.1.2.1.2.33: download - view: text, markup, annotated - select for diffs
Mon Feb 15 07:36:04 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.32: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.32: +124 -7 lines
Completely redo how interrupts and SPL are handled in NetBSD/mips.
[XXX locore_mips1.S still needs to adapted.]

Nested interrupts now work.  Except for MIPS_SOFT_MASK and MIPS_SR_INT_IE,
how interrupts work is completely abstracted.  spl is handled through the
mips_splsw table.  Direct manipulation of the status register is no longer
done (except for MIPS_SR_INT_IE).  A new <mips/intr.h> contains the common
IPL/IST/spl* definitions for all ports.

Interrupt delivery is completely different.  Clock interrupts may interrupt
device interrupts.  ci_idepth is now handled by the caller of cpu_intr as
are softints (both can be optimized/simplified in the case of interrupts of
usermode code).  cpu_intr has new arguments and now get called at IPL_HIGH
with MIPS_SR_INT_IE set and its logic is:

void
cpu_intr(int ppl, vaddr_t pc, uint32_t status)
{
	int ipl;
	uint32_t pending;
	while (ppl < (ipl = splintr(&pending))) {
		splx(ipl);		/* enable interrupts */
		<handle pending interrupts>
		(void)splhigh();	/* disable interrupts */
	}
}

mipsX_subr.S has been reworked.  All user handlers (user_intr, systemcall,
user_gen_exception) now use common return to usermode code in lwp_trampoline.
ast() has changed to void ast(void) since the previous pc argument was never
used.

The playstation IPL_ICU_MASK support has been nuked.
MIPS_DYNAMIC_STATUS_MASK may soon be nuked soon.

A bunch of debugging code was left conditionalized by PARANOIA.  If this
code detects a bug, it will enter an infinite loop.  It is expected that
the kernel will be debugged in a simulator or with a hardware debugger so
that the state at that point can be analyzed.

Revision 1.205.4.1.2.1.2.32: download - view: text, markup, annotated - select for diffs
Sat Feb 6 04:55:01 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.31: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.31: +16 -4 lines
When choosing a msgbuf for a LP32 kernel, make sure it's mappable via KSEG0

Revision 1.205.4.1.2.1.2.31: download - view: text, markup, annotated - select for diffs
Mon Feb 1 06:52:59 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.30: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.30: +12 -4 lines
Allow port-specific code to init lwp0.l_addr early.  (pmax needs it so it
call badaddr).

Revision 1.205.4.1.2.1.2.30: download - view: text, markup, annotated - select for diffs
Mon Feb 1 04:16:19 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.29: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.29: +55 -51 lines
Merge frame into trapframe.  While this costs a bit more stack space on
kernel exceptions, the resulting simplifications are worth it.  This is
a step to fast softints and kernel preemption.

trapframe now includes a struct reg instead of a separate array of registers.

Revision 1.225: download - view: text, markup, annotated - select for diffs
Sat Jan 23 15:55:54 2010 UTC (15 years ago) by mrg
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +5 -5 lines
rename pridtab{}::cpu_name to cpu_displayname.

should fix a build error reported by he@.

Revision 1.205.4.1.2.1.2.29: download - view: text, markup, annotated - select for diffs
Wed Jan 20 22:15:27 2010 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.28: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.28: +15 -13 lines
Mark RMIXL cpus as CPU_MIPS_I_DCACHE_COHERENT.
Print out whether the L1 cache is coherent or not.

Revision 1.205.4.1.2.1.2.28: download - view: text, markup, annotated - select for diffs
Wed Jan 20 09:04:35 2010 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.27: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.27: +4 -4 lines
Adjust things to the new world order.

Revision 1.205.4.1.2.1.2.27: download - view: text, markup, annotated - select for diffs
Wed Jan 20 06:58:36 2010 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.26: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.26: +100 -112 lines
Revamp things a bit.  Move of the globals mips uses into either cpu_info,
mips_options, or mips_cache_info.  Make MALT64 be able to boot MULTIPROCESSOR.
(some pmap MP work).

Revision 1.205.4.1.2.1.2.26: download - view: text, markup, annotated - select for diffs
Sat Jan 16 20:56:33 2010 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.25: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.25: +63 -87 lines
Rework the exception code.  All the exceptions (except for mips3_5900) are
now padded to 128 bytes each and placed in the right order so they can be
copied with one memcpy.  This also allows us to branch to unused space space
since the relative locations will remain the same.

When leaving the exception vectors, k1 will now always contain the address
of CURLWP for that CPU.  The rest of the exception code no longer needs (and
is not allowed to) to access CPUVAR(CURLWP).

kill outofworld and just let trap panic, if it can.  Allow for sb1_subr.S
or rmixl_subr.S in the future.  Fix TLB read/write code.

Revision 1.205.4.1.2.1.2.25: download - view: text, markup, annotated - select for diffs
Fri Jan 15 06:46:59 2010 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.24: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.24: +99 -87 lines
Get rid of most of the studly caps.
First to MULTIPROCESSOR support for pmap: move some pmap globals to cpu_info.
Define per-cpu ASID number spaces.
Remove some mips1/!mips1 difference in db_interface.c
Add mips32/64 knowledge to stacktrace.

Revision 1.205.4.1.2.1.2.24: download - view: text, markup, annotated - select for diffs
Thu Jan 14 17:26:20 2010 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.23: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.23: +38 -52 lines
Simplify mips_page_physload.

Revision 1.205.4.1.2.1.2.23: download - view: text, markup, annotated - select for diffs
Thu Jan 14 00:40:36 2010 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.22: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.22: +33 -31 lines
More fixes for the CFATTAL_DECL_NEW changes and rmixl cpucore/cpu changes.

Revision 1.205.4.1.2.1.2.22: download - view: text, markup, annotated - select for diffs
Wed Jan 13 09:42:38 2010 UTC (15 years ago) by cliff
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.21: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.21: +22 -10 lines
- spec CIDFL's for RMI L2, cores, threads attributes
- add cputab[] entry for RMI XLS404LITE
- cpu_identify() now gets device_t arg; use it instead of static 'label'

Revision 1.205.4.1.2.1.2.21: download - view: text, markup, annotated - select for diffs
Sat Jan 9 06:01:18 2010 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.20: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.20: +5 -3 lines
On _LP64, allocate kernel memory from the first 4GB.  Otherwise first 512MB.
Until we get full bounce buffer support, this should with device that only
support <4GB addresses.

Revision 1.205.4.1.2.1.2.20: download - view: text, markup, annotated - select for diffs
Wed Jan 6 04:25:46 2010 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.19: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.19: +4 -4 lines
Fix a thinko (last -> start + size)

Revision 1.205.4.1.2.1.2.19: download - view: text, markup, annotated - select for diffs
Thu Dec 31 00:54:09 2009 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.18: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.18: +26 -6 lines
Use mips_page_physload and mips_init_lwp0_uarea.

Revision 1.205.4.1.2.1.2.18: download - view: text, markup, annotated - select for diffs
Wed Dec 30 04:51:26 2009 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.17: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.17: +179 -3 lines
Please segtab lookups into separate file.
Add mips_add_physload
Add mips_init_lwp0_uarea
cleanup lwp0/cpu_info_store initialization.

Revision 1.224: download - view: text, markup, annotated - select for diffs
Tue Dec 15 18:24:47 2009 UTC (15 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +7 -2 lines
Make sure the pcb and initial frame area of lwp0 are zeroed since these will
be the basis for all future lwps.

Revision 1.223: download - view: text, markup, annotated - select for diffs
Mon Dec 14 00:46:06 2009 UTC (15 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +587 -281 lines
Merge from matt-nb5-mips64
Merge mips-specific arch files.

Revision 1.222: download - view: text, markup, annotated - select for diffs
Thu Dec 10 14:13:51 2009 UTC (15 years, 1 month ago) by matt
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +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.221: download - view: text, markup, annotated - select for diffs
Fri Nov 27 03:23:11 2009 UTC (15 years, 2 months ago) by rmind
Branches: MAIN
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +3 -4 lines
- Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.

Revision 1.220: download - view: text, markup, annotated - select for diffs
Fri Nov 27 01:37:30 2009 UTC (15 years, 2 months ago) by rmind
Branches: MAIN
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +8 -13 lines
Revert unrelated/unintended changes from previous commit.
Should fix MIPS builds (hi matt@).

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

Revision 1.218: download - view: text, markup, annotated - select for diffs
Sat Nov 21 17:40:28 2009 UTC (15 years, 2 months ago) by rmind
Branches: MAIN
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +21 -11 lines
Use lwp_getpcb() on mips, powerpc and sh3, clean from struct user usage.

Revision 1.205.4.1.2.1.2.17: download - view: text, markup, annotated - select for diffs
Fri Nov 13 05:25:49 2009 UTC (15 years, 2 months ago) by cliff
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20091211
Diff to: previous 1.205.4.1.2.1.2.16: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.16: +96 -85 lines
- pridtab definition is removed to cpu.h
- pritab entries now initialize cpu_cp0flags and cpu_cidflags
except for RMI XLS entries, these are all 0 for now.
- pridtab entries for RMI XLS use those new fields and CPU_MIPS_HAVE_MxCR

Revision 1.205.4.1.2.1.2.16: download - view: text, markup, annotated - select for diffs
Tue Nov 3 16:30:58 2009 UTC (15 years, 2 months ago) by uebayasi
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.15: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.15: +6 -2 lines
Add XLS416.

Revision 1.205.4.1.2.1.2.15: download - view: text, markup, annotated - select for diffs
Tue Sep 22 07:06:14 2009 UTC (15 years, 4 months ago) by cliff
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.14: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.14: +10 -2 lines
add entries in cputab[] for RMI XLS408 and XLS408LITE

Revision 1.205.4.1.2.1.2.14: download - view: text, markup, annotated - select for diffs
Wed Sep 16 04:23:19 2009 UTC (15 years, 4 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.13: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.13: +6 -6 lines
Set early clobber on status.  Make sure to preserve KX.

Revision 1.205.4.1.2.1.2.13: download - view: text, markup, annotated - select for diffs
Tue Sep 15 06:51:02 2009 UTC (15 years, 4 months ago) by cliff
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.12: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.12: +3 -3 lines
MIPS_XLS616 gets CPU_MIPS_NO_LLADDR

Revision 1.205.4.1.2.1.2.12: download - view: text, markup, annotated - select for diffs
Sun Sep 13 03:30:27 2009 UTC (15 years, 4 months ago) by cliff
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.11: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.11: +25 -4 lines
- add support for MIPS_XLS616.
- add RMI and others to cidnames[]
- use MIPS_PHYS_TO_XKPHYS_CACHED to make va for msgbuf and maddr #ifdef _LP64

Revision 1.205.4.1.2.1.2.11: download - view: text, markup, annotated - select for diffs
Sat Sep 12 18:19:17 2009 UTC (15 years, 4 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-u2-k2-k4-k7-k8-k9
Diff to: previous 1.205.4.1.2.1.2.10: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.10: +9 -9 lines
Fix a few IPL32 kernel thinkos.

Revision 1.205.4.1.2.1.2.10: download - view: text, markup, annotated - select for diffs
Sat Sep 12 17:37:00 2009 UTC (15 years, 4 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.9: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.9: +91 -34 lines
Add COMPAT_NETBSD32 support.

Revision 1.205.4.1.2.1.2.9: download - view: text, markup, annotated - select for diffs
Sat Sep 12 00:03:27 2009 UTC (15 years, 4 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.8: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.8: +3 -3 lines
Fix PFN width calculation.

Revision 1.205.4.1.2.1.2.8: download - view: text, markup, annotated - select for diffs
Fri Sep 11 23:51:25 2009 UTC (15 years, 4 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.7: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.7: +71 -10 lines
Add code to probe TLB for VA/PA/PG_MASK sizes
Increase waynames to include 8-way.

Revision 1.205.4.1.2.1.2.7: download - view: text, markup, annotated - select for diffs
Tue Sep 8 08:11:29 2009 UTC (15 years, 4 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.6: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.6: +13 -3 lines
For LP64 kernels, only use KSEG0 for pmap_steal_memory.  Everything else uses
XKPHYS.  Use the new MIPS_PHYS_TO_XKPHYS_{,UN}CACHED macros.

Revision 1.205.4.1.2.1.2.6: download - view: text, markup, annotated - select for diffs
Tue Sep 8 07:46:14 2009 UTC (15 years, 4 months ago) by uebayasi
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.5: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.5: +7 -7 lines
To be consistent, always cast pointers to (intptr_t) even if the address is
in userspace.

Reviewed By:	matt

Revision 1.205.4.1.2.1.2.5: download - view: text, markup, annotated - select for diffs
Mon Sep 7 22:27:30 2009 UTC (15 years, 4 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb4-mips64-k7-u2a-k9b
Diff to: previous 1.205.4.1.2.1.2.4: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.4: +3 -3 lines
Set segbase to an invalid kernel address by default.

Revision 1.205.4.1.2.1.2.4: download - view: text, markup, annotated - select for diffs
Sun Aug 23 06:38:07 2009 UTC (15 years, 5 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-u1-k1-k5
Diff to: previous 1.205.4.1.2.1.2.3: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.3: +4 -4 lines
PRIxVADDR, PRIdVSIZE, PRIxVSIZE, or PRIxPADDR as appropriate.
Use __intXX_t or __uintXX_t as appropriate in <mips/types.h>

Revision 1.205.4.1.2.1.2.3: download - view: text, markup, annotated - select for diffs
Sun Aug 23 03:38:19 2009 UTC (15 years, 5 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.2: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.2: +238 -127 lines
Change lazy fp load/save is done.  fpcurlwp is never NULL.
If no current lwp has the FP, then fpcurlwp is set to lwp0.
this allows many check for NULL and avoids a few null-derefs.
Since savefpregs clear COP1, loadfpregs can be called to reload
fpregs.  If it notices that situation, it just sets COP1 and returns
Save does not reset fpcurlwp, just clears COP1.  load does set fpcurlwp.

If MIPS3_SR_FR is set, all 32 64-bit FP registers are saved/restored via Xdc1.
If MIPS3_SR_FR is clear, only 32 32-bit FP register are saved/restore via Xwc1.
This preserves the existing ABI.

Revision 1.205.4.1.2.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 21 17:48:57 2009 UTC (15 years, 5 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1.2.1: preferred, colored; branchpoint 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1.2.1: +119 -123 lines
Make prototype locoresw const.
Don't cast l_md.md_regs anymore.
Make FP save/resume ABI agnostic.

Revision 1.205.4.1.2.1.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 20 04:36:05 2009 UTC (15 years, 5 months ago) by uebayasi
Branches: matt-nb5-mips64
Diff to: previous 1.205.4.1.2.1: preferred, colored
Changes since revision 1.205.4.1.2.1: +4 -4 lines
Cast register_t to intptr_t before casting to (void *) because
sizeof(register_t) == 64 and sizeof(void *) == 32 in N32 ABI.

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

Revision 1.217: download - view: text, markup, annotated - select for diffs
Sun Aug 9 22:22:51 2009 UTC (15 years, 5 months ago) by matt
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +14 -7 lines
If using 16KB pages, don't enable special CCA for loongson2 cpus.

Revision 1.216: download - view: text, markup, annotated - select for diffs
Sun Aug 9 17:53:54 2009 UTC (15 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +7 -7 lines
Initialize Page Mask register based on PAGE_SIZE, don't assume it's always
going to be 4KB.  (And this change, I can boot a GDIUM kernel with 16KB
pages as far as I could with 4KB).

Revision 1.215: download - view: text, markup, annotated - select for diffs
Sun Aug 9 04:06:35 2009 UTC (15 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +10 -2 lines
Add disabled code to set K0 CCA if CCA_SPECIAL is being used.

Revision 1.214: download - view: text, markup, annotated - select for diffs
Fri Aug 7 03:33:28 2009 UTC (15 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +6 -4 lines
Mark LOONGSON as uncached for the moment.

Revision 1.213: download - view: text, markup, annotated - select for diffs
Thu Aug 6 15:58:12 2009 UTC (15 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +3 -3 lines
Make cidnames const

Revision 1.212: download - view: text, markup, annotated - select for diffs
Thu Aug 6 00:46:34 2009 UTC (15 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +10 -4 lines
Add ICT Loongson2 identification.

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

Revision 1.205.4.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 9 17:48:20 2009 UTC (15 years, 7 months ago) by snj
Branches: netbsd-5-0
CVS tags: netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE
Branch point for: matt-nb5-mips64
Diff to: previous 1.205.4.1: preferred, colored; next MAIN 1.205.4.2: preferred, colored
Changes since revision 1.205.4.1: +3 -3 lines
Pull up following revision(s) (requested by martin in ticket #799):
	sys/arch/mips/include/locore.h: revision 1.79
	sys/arch/mips/mips/locore_mips1.S: revision 1.65
	sys/arch/mips/mips/mipsX_subr.S: revision 1.28
	sys/arch/mips/mips/mips_machdep.c: revision 1.211
	sys/arch/mips/mips/vm_machdep.c: revision 1.123
Do not use the same trampoline for cpu_lwp_fork and cpu_setfunc - only
the former needs to call lwp_startup().

Revision 1.205.4.2: download - view: text, markup, annotated - select for diffs
Tue Jun 9 17:45:01 2009 UTC (15 years, 7 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.205.4.1: preferred, colored; branchpoint 1.205: preferred, colored; next MAIN 1.206: preferred, colored
Changes since revision 1.205.4.1: +3 -3 lines
Pull up following revision(s) (requested by martin in ticket #799):
	sys/arch/mips/include/locore.h: revision 1.79
	sys/arch/mips/mips/locore_mips1.S: revision 1.65
	sys/arch/mips/mips/mipsX_subr.S: revision 1.28
	sys/arch/mips/mips/mips_machdep.c: revision 1.211
	sys/arch/mips/mips/vm_machdep.c: revision 1.123
Do not use the same trampoline for cpu_lwp_fork and cpu_setfunc - only
the former needs to call lwp_startup().

Revision 1.211: download - view: text, markup, annotated - select for diffs
Sat May 30 18:26:06 2009 UTC (15 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +3 -3 lines
Do not use the same trampoline for cpu_lwp_fork and cpu_setfunc - only
the former needs to call lwp_startup().

Revision 1.208.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:18:03 2009 UTC (15 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.208: preferred, colored; next MAIN 1.209: preferred, colored
Changes since revision 1.208: +9 -22 lines
Sync with HEAD.

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

Revision 1.200.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:11:31 2009 UTC (15 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.200.2.1: preferred, colored; branchpoint 1.200: preferred, colored
Changes since revision 1.200.2.1: +66 -26 lines
sync with head.

Revision 1.205.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:34:25 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.205.2.2: preferred, colored; branchpoint 1.205: preferred, colored; next MAIN 1.206: preferred, colored
Changes since revision 1.205.2.2: +9 -22 lines
Sync with HEAD.

Revision 1.210: download - view: text, markup, annotated - select for diffs
Mon Mar 16 23:11:12 2009 UTC (15 years, 10 months ago) by dsl
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.209: preferred, colored
Changes since revision 1.209: +3 -4 lines
ANSIfy functions with function-pointer arguments

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

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

Revision 1.205.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 2 03:30:33 2009 UTC (15 years, 11 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
Branch point for: netbsd-5-0
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +4 -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.208: download - view: text, markup, annotated - select for diffs
Thu Jan 22 11:01:32 2009 UTC (16 years ago) by dogcow
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +4 -4 lines
major() and minor() are now int32_t.

Revision 1.205.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:16:30 2009 UTC (16 years ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +6 -5 lines
Sync with HEAD.

Revision 1.199.6.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:16 2009 UTC (16 years ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.199.6.2: preferred, colored; branchpoint 1.199: preferred, colored; next MAIN 1.200: preferred, colored
Changes since revision 1.199.6.2: +53 -3 lines
Sync with HEAD.

Revision 1.207: download - view: text, markup, annotated - select for diffs
Sun Jan 11 19:58:29 2009 UTC (16 years ago) by rumble
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +4 -4 lines
Make this compile.

Revision 1.201.6.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:13:18 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.201.6.1: preferred, colored; branchpoint 1.201: preferred, colored; next MAIN 1.202: preferred, colored
Changes since revision 1.201.6.1: +4 -3 lines
Update haad-dm branch to haad-dm-base2.

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

Revision 1.201.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:15:52 2008 UTC (16 years, 3 months ago) by haad
Branches: haad-dm
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +57 -5 lines
Sync with HEAD.

Revision 1.205: download - view: text, markup, annotated - select for diffs
Fri Oct 17 00:46:07 2008 UTC (16 years, 3 months ago) by uebayasi
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.204: preferred, colored
Changes since revision 1.204: +1 -1 lines
Oops; redo previous.

Revision 1.204: download - view: text, markup, annotated - select for diffs
Fri Oct 17 00:29:21 2008 UTC (16 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +3 -3 lines
p_smutex was merged into p_lock some time ago.

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

Revision 1.199.6.2: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:04 2008 UTC (16 years, 3 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.199.6.1: preferred, colored; branchpoint 1.199: preferred, colored
Changes since revision 1.199.6.1: +6 -3 lines
Sync with HEAD.

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

Revision 1.190.4.2: download - view: text, markup, annotated - select for diffs
Thu Sep 4 08:46:43 2008 UTC (16 years, 4 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.190.4.1: preferred, colored; branchpoint 1.190: preferred, colored; next MAIN 1.191: preferred, colored
Changes since revision 1.190.4.1: +8 -5 lines
Sync with netbsd-4.

Revision 1.190.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 19:44:36 2008 UTC (16 years, 5 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.190.2.1: preferred, colored; branchpoint 1.190: preferred, colored; next MAIN 1.191: preferred, colored
Changes since revision 1.190.2.1: +6 -3 lines
Pull up following revision(s) (requested by tsutsui in ticket #1181):
	sys/arch/mips/mips/mips_machdep.c: revision 1.202
Add CPU_MIPS_DOUBLE_COUNT to R10K family CPUs and
also remove (unused?) MIPS_NOT_SUPP flag from them.
Problem on R10k O2 is reported by martin@ on port-sgimips.

Revision 1.202: download - view: text, markup, annotated - select for diffs
Sun Aug 3 00:09:20 2008 UTC (16 years, 5 months ago) by tsutsui
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +8 -5 lines
Add CPU_MIPS_DOUBLE_COUNT to R10K family CPUs and
also remove (unused?) MIPS_NOT_SUPP flag from them.

Problem on R10k O2 is reported by martin@ on port-sgimips.

Revision 1.201.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 22 18:12:03 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.201.2.2: preferred, colored; branchpoint 1.201: preferred, colored
Changes since revision 1.201.2.2: +49 -2 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.199.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:22:24 2008 UTC (16 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +4 -11 lines
Sync with HEAD.

Revision 1.199.8.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:32:26 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.199: preferred, colored; next MAIN 1.200: preferred, colored
Changes since revision 1.199: +4 -11 lines
sync with head.

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

Revision 1.201.2.2: download - view: text, markup, annotated - select for diffs
Wed May 14 19:54:10 2008 UTC (16 years, 8 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.201.2.1: preferred, colored; branchpoint 1.201: preferred, colored
Changes since revision 1.201.2.1: +4 -4 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.201.2.1: download - view: text, markup, annotated - select for diffs
Sat May 10 23:48:45 2008 UTC (16 years, 8 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +6 -4 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.201: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:28 2008 UTC (16 years, 9 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, haad-dm
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.200: download - view: text, markup, annotated - select for diffs
Thu Apr 24 18:39:21 2008 UTC (16 years, 9 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +4 -4 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.194.10.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:11 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.194.10.2: preferred, colored; branchpoint 1.194: preferred, colored; next MAIN 1.195: preferred, colored
Changes since revision 1.194.10.2: +10 -2 lines
sync with HEAD

Revision 1.178.2.7: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:22 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.178.2.6: preferred, colored; next MAIN 1.179: preferred, colored
Changes since revision 1.178.2.6: +10 -2 lines
sync with head.

Revision 1.199: download - view: text, markup, annotated - select for diffs
Tue Feb 19 12:15:46 2008 UTC (16 years, 11 months ago) by simonb
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +10 -2 lines
Add entries for MIPS's 24K, 24KE, 34K and 74K cores.

From Alexander Voropay in mail to port-mips@.

Revision 1.194.10.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:47:18 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.194.10.1: preferred, colored; branchpoint 1.194: preferred, colored
Changes since revision 1.194.10.1: +10 -8 lines
sync with HEAD

Revision 1.190.4.1: download - view: text, markup, annotated - select for diffs
Sun Jan 6 05:00:58 2008 UTC (17 years ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +4 -2 lines
Catch up to netbsd-4.0 release.

Revision 1.194.8.3: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:35:38 2007 UTC (17 years, 1 month ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.194.8.2: preferred, colored; branchpoint 1.194: preferred, colored; next MAIN 1.195: preferred, colored
Changes since revision 1.194.8.2: +9 -2 lines
Sync with HEAD.

Revision 1.196.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:17:24 2007 UTC (17 years, 1 month ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.196: preferred, colored; next MAIN 1.197: preferred, colored
Changes since revision 1.196: +10 -8 lines
Sync with HEAD.

Revision 1.178.2.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:25:21 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.178.2.5: preferred, colored
Changes since revision 1.178.2.5: +10 -8 lines
sync with head

Revision 1.193.2.5: download - view: text, markup, annotated - select for diffs
Mon Dec 3 19:03:40 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.193.2.4: preferred, colored; branchpoint 1.193: preferred, colored; next MAIN 1.194: preferred, colored
Changes since revision 1.193.2.4: +2 -9 lines
Sync with HEAD.

Revision 1.193.2.4: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:37:30 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.193.2.3: preferred, colored; branchpoint 1.193: preferred, colored
Changes since revision 1.193.2.3: +16 -2 lines
Sync with HEAD.

Revision 1.198: download - view: text, markup, annotated - select for diffs
Mon Dec 3 15:33:55 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, mjf-devfs-base, matt-armv6-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +9 -2 lines
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.

Revision 1.194.8.2: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:53:23 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.194.8.1: preferred, colored; branchpoint 1.194: preferred, colored
Changes since revision 1.194.8.1: +3 -8 lines
Sync with HEAD.

Revision 1.195.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:19:16 2007 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.195: preferred, colored; next MAIN 1.196: preferred, colored
Changes since revision 1.195: +3 -8 lines
Sync with HEAD

Revision 1.177.8.2: download - view: text, markup, annotated - select for diffs
Mon Nov 19 21:30:26 2007 UTC (17 years, 2 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.177.8.1: preferred, colored; branchpoint 1.177: preferred, colored; next MAIN 1.178: preferred, colored
Changes since revision 1.177.8.1: +2 -0 lines
Pull up following revision(s) (requested by simonb in ticket #1865):
	sys/arch/mips/include/cpuregs.h: revision 1.72
	sys/arch/mips/mips/mips_machdep.c: revision 1.195
Recognise the R2000A cpu as found in some pmaxen.
From Dennis Grevenstein on port-pmax@.
--

Revision 1.197: download - view: text, markup, annotated - select for diffs
Mon Nov 19 19:03:13 2007 UTC (17 years, 2 months ago) by ad
Branches: MAIN
CVS tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +3 -8 lines
Fix cpu_need_resched().

Revision 1.194.10.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:19:10 2007 UTC (17 years, 2 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +4 -2 lines
sync with HEAD

Revision 1.178.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:27:15 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.178.2.4: preferred, colored
Changes since revision 1.178.2.4: +4 -2 lines
sync with head.

Revision 1.194.8.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:42:55 2007 UTC (17 years, 3 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +4 -2 lines
Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.190.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 24 22:10:44 2007 UTC (17 years, 3 months ago) by xtraeme
Branches: netbsd-4
CVS tags: wrstuden-fixsa-base-1, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +4 -2 lines
Pull up following revision(s) (requested by simonb in ticket #936):
	sys/arch/mips/include/cpuregs.h: revision 1.72
	sys/arch/mips/mips/mips_machdep.c: revision 1.195

Recognise the R2000A cpu as found in some pmaxen.
From Dennis Grevenstein on port-pmax@.

Revision 1.193.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:13:31 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.193.2.2: preferred, colored; branchpoint 1.193: preferred, colored
Changes since revision 1.193.2.2: +4 -2 lines
Sync with head.

Revision 1.193.2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 18 15:36:08 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.193.2.1: preferred, colored; branchpoint 1.193: preferred, colored
Changes since revision 1.193.2.1: +3 -5 lines
cpu_need_resched: RESCHED_IMMED refers to IPIs, so ignore it and
always do aston(l).

Revision 1.194.12.1: download - view: text, markup, annotated - select for diffs
Thu Oct 18 08:32:15 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.194: preferred, colored; next MAIN 1.195: preferred, colored
Changes since revision 1.194: +4 -2 lines
sync with head.

Revision 1.196: download - view: text, markup, annotated - select for diffs
Wed Oct 17 19:55:39 2007 UTC (17 years, 3 months ago) by garbled
Branches: MAIN
CVS tags: yamt-x86pmap-base4, jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +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.193.10.2: download - view: text, markup, annotated - select for diffs
Tue Oct 16 18:23:45 2007 UTC (17 years, 3 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.193.10.1: preferred, colored; branchpoint 1.193: preferred, colored; next MAIN 1.194: preferred, colored
Changes since revision 1.193.10.1: +4 -2 lines
Sync with HEAD

Revision 1.195: download - view: text, markup, annotated - select for diffs
Tue Oct 16 12:19:19 2007 UTC (17 years, 3 months ago) by simonb
Branches: MAIN
CVS tags: ppcoea-renovation-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +4 -2 lines
Recognise the R2000A cpu as found in some pmaxen.

From Dennis Grevenstein on port-pmax@.

Revision 1.178.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:28:02 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.178.2.3: preferred, colored
Changes since revision 1.178.2.3: +43 -13 lines
sync with head.

Revision 1.193.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:00:51 2007 UTC (17 years, 6 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.193: preferred, colored; next MAIN 1.194: preferred, colored
Changes since revision 1.193: +36 -6 lines
Sync with head.

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

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

Revision 1.194: download - view: text, markup, annotated - select for diffs
Thu May 17 14:51:24 2007 UTC (17 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +36 -6 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.192.2.5: download - view: text, markup, annotated - select for diffs
Thu Apr 19 03:21:12 2007 UTC (17 years, 9 months ago) by ad
Branches: yamt-idlelwp
Diff to: previous 1.192.2.4: preferred, colored; branchpoint 1.192: preferred, colored; next MAIN 1.193: preferred, colored
Changes since revision 1.192.2.4: +8 -0 lines
... but temporarily continue to set them here too, until I figure out why
pmax clobbers them. Forcing things into the data segment doesn't help.

Revision 1.192.2.4: download - view: text, markup, annotated - select for diffs
Thu Apr 19 02:55:29 2007 UTC (17 years, 9 months ago) by ad
Branches: yamt-idlelwp
Diff to: previous 1.192.2.3: preferred, colored; branchpoint 1.192: preferred, colored
Changes since revision 1.192.2.3: +2 -7 lines
Set up curlwp/curcpu very early, before calling mach_init. Avoids a null
pointer deref on curcpu().

Revision 1.192.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 18 20:27:54 2007 UTC (17 years, 9 months ago) by ad
Branches: yamt-idlelwp
Diff to: previous 1.192.2.2: preferred, colored; branchpoint 1.192: preferred, colored
Changes since revision 1.192.2.2: +11 -8 lines
- Further adaptations to MIPS for the yamt-idlelwp branch.
- Make curlwp a register variable on MIPS.

Revision 1.192.2.2: download - view: text, markup, annotated - select for diffs
Wed Mar 21 21:21:43 2007 UTC (17 years, 10 months ago) by ad
Branches: yamt-idlelwp
Diff to: previous 1.192.2.1: preferred, colored; branchpoint 1.192: preferred, colored
Changes since revision 1.192.2.1: +28 -4 lines
Initial changes for MIPS. Not yet working under gxemul.

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

Revision 1.193: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:00:12 2007 UTC (17 years, 10 months ago) by christos
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.192: preferred, colored
Changes since revision 1.192: +9 -9 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.178.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:07:30 2007 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.178.2.2: preferred, colored
Changes since revision 1.178.2.2: +7 -53 lines
sync with head.

Revision 1.192: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:06 2007 UTC (17 years, 11 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +7 -52 lines
Merge newlock2 to head.

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

Revision 1.187.2.4: download - view: text, markup, annotated - select for diffs
Tue Jan 30 13:49:36 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.187.2.3: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.2.3: +4 -53 lines
Remove support for SA. Ok core@.

Revision 1.191: download - view: text, markup, annotated - select for diffs
Wed Jan 24 13:08:11 2007 UTC (18 years ago) by hubertf
Branches: MAIN
CVS tags: newlock2-nbase, newlock2-base
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +2 -3 lines
Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.

Revision 1.187.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 11 22:22:57 2007 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.187.2.2: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.2.2: +6 -2 lines
Checkpoint work in progress.

Revision 1.178.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:46:33 2006 UTC (18 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.178.2.1: preferred, colored
Changes since revision 1.178.2.1: +13 -11 lines
sync with head.

Revision 1.187.2.2: download - view: text, markup, annotated - select for diffs
Fri Dec 29 20:27:42 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.187.2.1: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.2.1: +4 -4 lines
Checkpoint work in progress.

Revision 1.187.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:27 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.187.4.1: preferred, colored; branchpoint 1.187: preferred, colored; next MAIN 1.188: preferred, colored
Changes since revision 1.187.4.1: +3 -3 lines
sync with head.

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

Revision 1.190: download - view: text, markup, annotated - select for diffs
Mon Oct 23 19:49:47 2006 UTC (18 years, 3 months ago) by he
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, netbsd-4-base, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1
Branch point for: wrstuden-fixsa, netbsd-4
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +3 -3 lines
Constify, since the new gcc propagates constness to struct members.

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

Revision 1.189: download - view: text, markup, annotated - select for diffs
Sat Oct 21 08:09:58 2006 UTC (18 years, 3 months ago) by mrg
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +3 -3 lines
fix errors in the previous changes.

Revision 1.188: download - view: text, markup, annotated - select for diffs
Sat Oct 21 05:54:32 2006 UTC (18 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +6 -4 lines
in cpu_dumpconf(), don't panic() if we can't bdevsw_lookup() the
dumpdev.  this occurs when we try to set the dumpdev to a device
with no driver loaded.  this fixes PR#34872.

in sys_swapctl, if bdevsw_lookup() fails, set dumpdev = NODEV
before calling cpu_dumpconf().  (this also fixes PR#34872.)

XXX: cpu_dumpconf() should probably be changed to take a dumpdev
XXX: and return an error in such cases, but that is a much more
XXX: intrusive change.

XXX2: this is only run-tested on sparc64 and compile tested on a
XXX2: couple of platforms.

Revision 1.184.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:41:26 2006 UTC (18 years, 4 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.184: preferred, colored; next MAIN 1.185: preferred, colored
Changes since revision 1.184: +26 -17 lines
sync with head

Revision 1.184.8.2: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:23:21 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.184.8.1: preferred, colored; branchpoint 1.184: preferred, colored; next MAIN 1.185: preferred, colored
Changes since revision 1.184.8.1: +8 -8 lines
sync with head.

Revision 1.187: download - view: text, markup, annotated - select for diffs
Sat Aug 26 20:18:36 2006 UTC (18 years, 5 months ago) by matt
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +8 -8 lines
Use vaddr_t for virtual addresses.  Don't cast pointers with int or
unsigned, use intptr_t or uintptr_t as appropriate.

Revision 1.178.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:53:44 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +44 -19 lines
sync with head.

Revision 1.184.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:37:42 2006 UTC (18 years, 9 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.184: preferred, colored; next MAIN 1.185: preferred, colored
Changes since revision 1.184: +20 -11 lines
Sync with head.

Revision 1.184.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 02:33:18 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.184: preferred, colored; next MAIN 1.185: preferred, colored
Changes since revision 1.184: +20 -11 lines
sync with head - hopefully this will work

Revision 1.184.8.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:06:21 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +20 -11 lines
sync with head.

Revision 1.184.12.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:47:17 2006 UTC (18 years, 10 months ago) by tron
Branches: peter-altq
Diff to: previous 1.184: preferred, colored; next MAIN 1.185: preferred, colored
Changes since revision 1.184: +20 -11 lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.186: download - view: text, markup, annotated - select for diffs
Tue Mar 21 09:06:21 2006 UTC (18 years, 10 months ago) by simonb
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +11 -11 lines
Reorder a few entries in the CPU table.

Revision 1.185: download - view: text, markup, annotated - select for diffs
Mon Mar 20 18:31:30 2006 UTC (18 years, 10 months ago) by gdamore
Branches: MAIN
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +13 -4 lines
Added support for MIPS architecture revision 2.
Added definitions for various rev 2 CP0 configuration register bits.
Added support for MIPS 4KEc Rev 2 (found in Atheros AR2316, for example).

Revision 1.184: download - view: text, markup, annotated - select for diffs
Sat Dec 24 20:07:19 2005 UTC (19 years, 1 month ago) by perry
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +8 -8 lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.183: download - view: text, markup, annotated - select for diffs
Tue Dec 20 21:06:43 2005 UTC (19 years, 1 month ago) by tron
Branches: MAIN
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +6 -2 lines
Add basic support for Alchemy Au1550 processor (CPU and devices).
Patch contributed by Garrett D'Amore in PR port-evbmips/32030.

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

Revision 1.165.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 10 13:57:33 2005 UTC (19 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.165.2.5: preferred, colored; next MAIN 1.166: preferred, colored
Changes since revision 1.165.2.5: +20 -8 lines
Sync with HEAD. Here we go again...

Revision 1.181: download - view: text, markup, annotated - select for diffs
Sat Nov 5 11:57:25 2005 UTC (19 years, 2 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +9 -2 lines
Make MIPS3_PG_SHIFT a variable and initialize it accordingly
in mips_vector_init() if options MIPS3_4100 is specified
so that kernels which have options MIPS3_4100 also work
on other MIPS3 CPUs.

XXX: now should we rename options MIPS3_4100 to options ENABLE_MIPS_R4100,
XXX: or just make MIPS3_PG_SHIFT always a variable?

Revision 1.180: download - view: text, markup, annotated - select for diffs
Sat Nov 5 11:08:41 2005 UTC (19 years, 2 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +6 -5 lines
Check MIPS_PRID_IMPL(cpu_id) for MIPS3_4100 CPUs at runtime to
initialize the MIPS_COP_0_TLB_PG_MASK register with their specific value.

Revision 1.175.2.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 13 21:28:44 2005 UTC (19 years, 4 months ago) by riz
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1
Diff to: previous 1.175.2.1: preferred, colored; next MAIN 1.176: preferred, colored
Changes since revision 1.175.2.1: +10 -6 lines
Pull up following revision(s) (requested by tsutsui in ticket #5829):
	sys/arch/mips/mips/mips_machdep.c: revision 1.179
Initilize CP0 pagemask register properly.
Fixes PR 30590 and some other mips port.

Revision 1.177.8.1: download - view: text, markup, annotated - select for diffs
Sun Sep 11 22:10:13 2005 UTC (19 years, 4 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, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +10 -6 lines
Pull up following revision(s) (requested by tsutsui in ticket #758):
	sys/arch/mips/mips/mips_machdep.c: revision 1.179
Initilize CP0 pagemask register properly.
Fixes PR 30590 and some other mips port.

Revision 1.179: download - view: text, markup, annotated - select for diffs
Thu Sep 8 15:17:23 2005 UTC (19 years, 4 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, thorpej-vnode-attr-base, thorpej-vnode-attr
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +10 -6 lines
Initilize CP0 pagemask register properly.
Fixes PR 30590 and some other mips port.

Revision 1.178: download - view: text, markup, annotated - select for diffs
Wed Jun 1 16:53:07 2005 UTC (19 years, 7 months ago) by drochner
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +4 -4 lines
cast-qual fallout

Revision 1.165.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:29:58 2005 UTC (20 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.165.2.4: preferred, colored
Changes since revision 1.165.2.4: +3 -3 lines
Sync with HEAD.

Revision 1.177: download - view: text, markup, annotated - select for diffs
Sat Jan 1 03:25:46 2005 UTC (20 years ago) by simonb
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge
Branch point for: netbsd-3
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +3 -3 lines
Use "NULL" instead of "(something-or-other *)0".

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

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

Revision 1.165.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:37:49 2004 UTC (20 years, 5 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.165.2.1: preferred, colored
Changes since revision 1.165.2.1: +112 -84 lines
Sync with HEAD

Revision 1.175.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 4 12:53:59 2004 UTC (20 years, 6 months ago) by he
Branches: netbsd-2-0
CVS tags: netbsd-2-base, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Diff to: previous 1.175: preferred, colored; next MAIN 1.176: preferred, colored
Changes since revision 1.175: +23 -9 lines
Pull up revisoin 1.176 (requested by simonb in ticket #589):
  Changes fixing PR#25942:
   o In cpu_{set,get}context(), copy fht FP registers themselves
     and the FP CSR separately, and from a correctly sized
     __fpregset_t.  The FP CSR is copied separately to avoid
     endianness or alignment issues.

Revision 1.176: download - view: text, markup, annotated - select for diffs
Sat Jul 3 05:08:34 2004 UTC (20 years, 6 months ago) by simonb
Branches: MAIN
CVS tags: kent-audio1-base, kent-audio1
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +23 -9 lines
In cpu_{set,get}context(), copy the FP registers themselves and the FP
CSR separately (and now from the correctly sized __fpregset_t).  The
FP CSR is copied separately to avoid endianness/alignment issues.

Part of fix for PR port-mips/25942.  Thanks to Christos Zoulas and
Klaus Klein for help with debugging this.

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

Revision 1.174: download - view: text, markup, annotated - select for diffs
Tue Mar 9 00:47:14 2004 UTC (20 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +4 -4 lines
proper name for SB-1 is ... SB-1 (not SB1).

Revision 1.173: download - view: text, markup, annotated - select for diffs
Fri Feb 13 11:36:15 2004 UTC (20 years, 11 months ago) by wiz
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +5 -5 lines
Uppercase CPU, plural is CPUs.

Revision 1.172: download - view: text, markup, annotated - select for diffs
Sat Dec 6 15:20:04 2003 UTC (21 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +4 -2 lines
Only compile in sysctl_machdep_booted_kernel() if __HAVE_BOOTINFO_H
is defined.

Revision 1.171: download - view: text, markup, annotated - select for diffs
Thu Dec 4 19:38:21 2003 UTC (21 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +39 -41 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.170: download - view: text, markup, annotated - select for diffs
Thu Dec 4 13:05:16 2003 UTC (21 years, 1 month ago) by keihan
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +3 -3 lines
netbsd.org -> NetBSD.org

All "netbsd.org" is now gone from src/sys/arch.

Revision 1.169: download - view: text, markup, annotated - select for diffs
Wed Nov 26 08:36:49 2003 UTC (21 years, 2 months ago) by he
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +32 -31 lines
Hide the register number constants behind an _R_ prefix, and also
rename FPBASE to _FPBASE, so that we avoid polluting the user's
name space when e.g. <sys/ptrace.h> is included.  Previously, the
PC symbol in mips/regnum.h would conflict with the declaration of
the external variable by the same name in termcap.h, as discovered
by the ``okheaders'' regression test.

Revision 1.168: download - view: text, markup, annotated - select for diffs
Thu Oct 30 00:26:54 2003 UTC (21 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +7 -2 lines
set the onstack flag if requested.

Revision 1.167: download - view: text, markup, annotated - select for diffs
Sun Oct 5 17:31:09 2003 UTC (21 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +3 -3 lines
Update comment to follow the previous R4000 ID addtion.

Revision 1.166: download - view: text, markup, annotated - select for diffs
Sun Sep 28 08:16:51 2003 UTC (21 years, 4 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +5 -2 lines
Add another R4000 CPU revision ID. From Christopher SEKIYA.

Revision 1.165.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 3 02:01:20 2003 UTC (21 years, 6 months ago) by wrstuden
Branches: ktrace-lwp
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +4 -4 lines
LWP-ify to get algor/P4032 working.

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

Revision 1.164: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:24:53 2003 UTC (21 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +4 -4 lines
Fix more needless 'struct proc *' to 'struct lwp *' fallout.

Revision 1.163: download - view: text, markup, annotated - select for diffs
Thu Jun 12 14:35:56 2003 UTC (21 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +11 -11 lines
Consistency nit- always use "#if defined(foo)" for checking MIPSn.

Revision 1.162: download - view: text, markup, annotated - select for diffs
Wed Jun 11 15:27:57 2003 UTC (21 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +2 -4 lines
Don't use "return;" as last statement of a void function.

Revision 1.161: download - view: text, markup, annotated - select for diffs
Mon Jun 9 07:46:20 2003 UTC (21 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +23 -22 lines
Don't use magic numbers in asm code (use MIPS_COP_0_STATUS instead
of "12").

Revision 1.160: download - view: text, markup, annotated - select for diffs
Fri Apr 11 22:02:32 2003 UTC (21 years, 9 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +8 -2 lines
Make cpu_getmcontext() run the PC through ras_lookup() so that kernel
getcontext() plus userlevel setcontext() (as used in libpthread) respects
the atomicity of RAS regions.

Revision 1.159: download - view: text, markup, annotated - select for diffs
Wed Apr 2 03:27:35 2003 UTC (21 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +3 -3 lines
Use PAGE_SIZE rather than NBPG.

Revision 1.158: download - view: text, markup, annotated - select for diffs
Fri Feb 7 17:38:48 2003 UTC (21 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +9 -10 lines
Update to consistently use Broadcom GPL-compatible license on all SiByte code.

Revision 1.157: download - view: text, markup, annotated - select for diffs
Fri Jan 17 23:36:16 2003 UTC (22 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +167 -22 lines
Merge the nathanw_sa branch.

Revision 1.120.2.30: download - view: text, markup, annotated - select for diffs
Thu Dec 19 00:35:07 2002 UTC (22 years, 1 month ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.120.2.29: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120.2.29: +18 -11 lines
Sync with HEAD.

Revision 1.156: download - view: text, markup, annotated - select for diffs
Tue Dec 17 12:07:50 2002 UTC (22 years, 1 month ago) by simonb
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +18 -11 lines
Mark the Au1x00 CPUs as having a fully coherent data cache that doesn't
require flushing (even in the instruction cache handlers).  This gives
about a 4% improvement in a "make depend" benchmark.

Mark the SB-1 CPUs as having a fully coherent data cache that only
require flushing in the instruction cache handlers.  This gives about
a 5% improvement in a "make depend" benchmark.

Revision 1.120.2.29: download - view: text, markup, annotated - select for diffs
Tue Dec 17 02:08:46 2002 UTC (22 years, 1 month ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.120.2.28: preferred, colored
Changes since revision 1.120.2.28: +4 -2 lines
* Always include the SR in the gregset.
* Create space for the 32 64-bit double-precision registers used
  in 64-bit ABIs.

This means we don't follow the SVR4 MIPS PS document, but that document
is somewhat out of date with regard to modern MIPS processors.

Per discussion with Chris Demetriou.

Revision 1.120.2.28: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:11:11 2002 UTC (22 years, 1 month ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.120.2.27: preferred, colored
Changes since revision 1.120.2.27: +4 -4 lines
Sync with HEAD.

Revision 1.120.2.27: download - view: text, markup, annotated - select for diffs
Mon Dec 2 06:12:12 2002 UTC (22 years, 1 month ago) by wdk
Branches: nathanw_sa
Diff to: previous 1.120.2.26: preferred, colored
Changes since revision 1.120.2.26: +6 -4 lines
Tidy up for Scheduler Activations:
 - Change curproc -> curlwp
 - Display LWP id along with PID for kernel generated messages

Revision 1.120.2.26: download - view: text, markup, annotated - select for diffs
Sat Nov 23 23:47:41 2002 UTC (22 years, 2 months ago) by wdk
Branches: nathanw_sa
Diff to: previous 1.120.2.25: preferred, colored
Changes since revision 1.120.2.25: +3 -10 lines
Remove upcall trampoline code.

Revision 1.120.2.25: download - view: text, markup, annotated - select for diffs
Wed Nov 20 11:05:12 2002 UTC (22 years, 2 months ago) by wdk
Branches: nathanw_sa
Diff to: previous 1.120.2.24: preferred, colored
Changes since revision 1.120.2.24: +6 -2 lines
Add missing header files again.

Revision 1.155: download - view: text, markup, annotated - select for diffs
Fri Nov 15 01:16:18 2002 UTC (22 years, 2 months ago) by simonb
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +4 -4 lines
Use COP0_HAZARD_FPUENABLE instead of a hard-coded 4 NOPs when enabling
the FPU.

Revision 1.120.2.24: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:00:47 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.23: preferred, colored
Changes since revision 1.120.2.23: +16 -239 lines
Catch up to -current

Revision 1.154: download - view: text, markup, annotated - select for diffs
Sat Nov 9 04:13:03 2002 UTC (22 years, 2 months ago) by simonb
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +3 -2 lines
Include <sys/device.h> so this compiles again.

Revision 1.153: download - view: text, markup, annotated - select for diffs
Sat Nov 9 02:02:32 2002 UTC (22 years, 2 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +13 -239 lines
- Make monolistic files into smaller manageable pieces, resulting
three new files;
    sig_machdep.c (from mips_machdep.c)
    copy.S and sigcode.S (from locore.S)
- Nuke the local use of struct sigframe, which is now identical to
struct sigcontext, from sendsig() as the consequence of new signal
trampoline.

Revision 1.120.2.23: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:38:46 2002 UTC (22 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.22: preferred, colored
Changes since revision 1.120.2.22: +4 -5 lines
Catch up to -current.

Revision 1.118.2.6: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:34:06 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.118.2.5: preferred, colored; branchpoint 1.118: preferred, colored; next MAIN 1.119: preferred, colored
Changes since revision 1.118.2.5: +31 -22 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.152: download - view: text, markup, annotated - select for diffs
Fri Sep 27 15:36:23 2002 UTC (22 years, 4 months ago) by provos
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +4 -4 lines
remove trailing \n in panic().  approved perry.

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

Revision 1.120.2.22: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:15:49 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.21: preferred, colored
Changes since revision 1.120.2.21: +32 -17 lines
Catch up to -current.

Revision 1.150: download - view: text, markup, annotated - select for diffs
Fri Sep 13 01:27:46 2002 UTC (22 years, 4 months ago) by simonb
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +6 -5 lines
Add CPU_MIPS_DOUBLE_COUNT for the TX49xx cpus.

Revision 1.149: download - view: text, markup, annotated - select for diffs
Mon Sep 9 03:42:04 2002 UTC (22 years, 4 months ago) by simonb
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +8 -8 lines
Fix the order of the CPU revision and company options fields in the cpu
table for the Alchemy CPUs; successfully recognises an Au1500 now.

Revision 1.148: download - view: text, markup, annotated - select for diffs
Fri Sep 6 13:18:43 2002 UTC (22 years, 4 months ago) by gehenna
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +19 -10 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.118.2.5: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:37:38 2002 UTC (22 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.118.2.4: preferred, colored; branchpoint 1.118: preferred, colored
Changes since revision 1.118.2.4: +168 -75 lines
sync kqueue branch with HEAD

Revision 1.129.2.4: download - view: text, markup, annotated - select for diffs
Sat Aug 31 13:45:21 2002 UTC (22 years, 4 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.129.2.3: preferred, colored; branchpoint 1.129: preferred, colored; next MAIN 1.130: preferred, colored
Changes since revision 1.129.2.3: +146 -65 lines
catch up with -current.

Revision 1.147: download - view: text, markup, annotated - select for diffs
Wed Aug 28 02:09:30 2002 UTC (22 years, 5 months ago) by simonb
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +7 -2 lines
Add the Toshiba TX4927 CPU.

Revision 1.120.2.21: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:44:49 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.20: preferred, colored
Changes since revision 1.120.2.20: +3 -3 lines
Catch up to -current.

Revision 1.146: download - view: text, markup, annotated - select for diffs
Mon Aug 19 12:03:04 2002 UTC (22 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +3 -3 lines
Remove CPU_MIPS_DOUBLE_COUNT for the MIPS 20Kc - it's cycle counter runs
at the normel CPU frequency.

Revision 1.120.2.20: download - view: text, markup, annotated - select for diffs
Tue Aug 13 03:29:33 2002 UTC (22 years, 5 months ago) by simonb
Branches: nathanw_sa
Diff to: previous 1.120.2.19: preferred, colored
Changes since revision 1.120.2.19: +4 -6 lines
Remove redundant 'struct sigframe' declaration.
Include a couple of headers to get this to compile.

Revision 1.120.2.19: download - view: text, markup, annotated - select for diffs
Tue Aug 13 02:18:30 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.18: preferred, colored
Changes since revision 1.120.2.18: +79 -16 lines
Catch up to -current.

Revision 1.145: download - view: text, markup, annotated - select for diffs
Tue Aug 6 06:54:36 2002 UTC (22 years, 5 months ago) by shin
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +5 -2 lines
fix CPU_ROOT_DEVICE implementation.

Revision 1.144: download - view: text, markup, annotated - select for diffs
Mon Aug 5 13:02:40 2002 UTC (22 years, 5 months ago) by shin
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +6 -6 lines
* add CPU_MIPS_NO_LLSC to Toshiba TX3912, TX3922, TX3927.
* fix mips_has_llsc calculation logic.

Revision 1.143: download - view: text, markup, annotated - select for diffs
Mon Aug 5 02:18:43 2002 UTC (22 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -3 lines
The TX79 core in the R5900 doesn't support LL/SC.
XXX: Others in this table will need to be updated.

Revision 1.142: download - view: text, markup, annotated - select for diffs
Mon Aug 5 02:13:14 2002 UTC (22 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +8 -8 lines
Use a __HAVE_BOOTINFO_H define to check for bootinfo support instead of
speading port names in arch-dependant code.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Sun Aug 4 03:16:19 2002 UTC (22 years, 5 months ago) by gmcgarry
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +4 -4 lines
mipsco and sgimips also implement bootinfo, but didn't provide
the CPU_BOOTED_KERNEL sysctl variable.

Revision 1.140: download - view: text, markup, annotated - select for diffs
Sun Aug 4 02:27:51 2002 UTC (22 years, 5 months ago) by gmcgarry
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +6 -7 lines
Move LLSC feature test for mips1 to cputab[].

Revision 1.139: download - view: text, markup, annotated - select for diffs
Sun Aug 4 01:47:15 2002 UTC (22 years, 5 months ago) by gmcgarry
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +4 -2 lines
Add sysctl variable to represent native CPU support for LL/SC instructions.

Revision 1.138: download - view: text, markup, annotated - select for diffs
Sun Aug 4 01:43:03 2002 UTC (22 years, 5 months ago) by gmcgarry
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +4 -3 lines
mips1 doesn't have native LL/SC instructions.

Revision 1.137: download - view: text, markup, annotated - select for diffs
Sun Aug 4 01:41:25 2002 UTC (22 years, 5 months ago) by gmcgarry
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +61 -3 lines
Merge cpu_sysctl() for all mips ports, based on powerpc and m68k precedent.

For now, only pmax implements CPU_BOOTED_KERNEL.  Need to revisit.

Revision 1.120.2.18: download - view: text, markup, annotated - select for diffs
Fri Aug 2 09:27:31 2002 UTC (22 years, 5 months ago) by gmcgarry
Branches: nathanw_sa
Diff to: previous 1.120.2.17: preferred, colored
Changes since revision 1.120.2.17: +3 -7 lines
LWPify.  sigframe definition is in frame.h now.

Revision 1.120.2.17: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:42:34 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.16: preferred, colored
Changes since revision 1.120.2.16: +97 -60 lines
Catch up to -current.

Revision 1.136: download - view: text, markup, annotated - select for diffs
Fri Jul 26 00:43:55 2002 UTC (22 years, 6 months ago) by simonb
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +68 -55 lines
Add support for detecting Alchemy Semiconductor CPUs.  Alchemy use the
processor ID field to donote the CPU core revision and the company
options field do donate the SOC chip type, so we need to add an extra
field to the "pridtab" structure to identify these CPUs.

Revision 1.129.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 16 08:50:51 2002 UTC (22 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.129.2.2: preferred, colored; branchpoint 1.129: preferred, colored
Changes since revision 1.129.2.2: +28 -16 lines
catch up with -current.

Revision 1.129.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 14 18:37:15 2002 UTC (22 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.129.2.1: preferred, colored; branchpoint 1.129: preferred, colored
Changes since revision 1.129.2.1: +19 -43 lines
catch up with -current.

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

Revision 1.120.2.15: download - view: text, markup, annotated - select for diffs
Sat Jul 6 03:13:58 2002 UTC (22 years, 6 months ago) by simonb
Branches: nathanw_sa
Diff to: previous 1.120.2.14: preferred, colored
Changes since revision 1.120.2.14: +3 -3 lines
Fix #ifdef SOFTFLOAT code:
   s/p->p_addr/l->l_addr/ and s/p->p_md/l->l_md/

Revision 1.135: download - view: text, markup, annotated - select for diffs
Thu Jul 4 23:32:05 2002 UTC (22 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +26 -8 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.134: download - view: text, markup, annotated - select for diffs
Thu Jul 4 19:20:02 2002 UTC (22 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +2 -10 lines
Eliminate 4 unused sigframe members.

Revision 1.133: download - view: text, markup, annotated - select for diffs
Thu Jun 27 03:43:47 2002 UTC (22 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +4 -2 lines
Add the 20Kc processor ID.

Revision 1.120.2.14: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:05:58 2002 UTC (22 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.13: preferred, colored
Changes since revision 1.120.2.13: +11 -11 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.118.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:38:05 2002 UTC (22 years, 7 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.118.2.3: preferred, colored; branchpoint 1.118: preferred, colored
Changes since revision 1.118.2.3: +42 -57 lines
catch up with -current on kqueue branch

Revision 1.120.2.13: download - view: text, markup, annotated - select for diffs
Fri Jun 21 06:26:35 2002 UTC (22 years, 7 months ago) by gmcgarry
Branches: nathanw_sa
Diff to: previous 1.120.2.12: preferred, colored
Changes since revision 1.120.2.12: +7 -4 lines
need <sys/sa.h> before <syscallargs.h>; pull in <mips/userret.h>; LWPify
some more

Revision 1.120.2.12: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:39:51 2002 UTC (22 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.11: preferred, colored
Changes since revision 1.120.2.11: +23 -45 lines
Catch up to -current.

Revision 1.132: download - view: text, markup, annotated - select for diffs
Fri Jun 7 02:05:22 2002 UTC (22 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +6 -6 lines
Add some ifdef's around the usage of mips_wait_idle; fixes builds for
playstations2 and MIPS1-only kernels.
Based on patch from Bill Squier.

Revision 1.131: download - view: text, markup, annotated - select for diffs
Sat Jun 1 13:45:46 2002 UTC (22 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +13 -37 lines
Use CPU_MIPS_USE_WAIT and CPU_MIPS_NO_WAIT in the CPU table, and use
the generic name "mips_wait_idle" for the old function that had both
rm52xx_idle and mipsNN_idle entry points.

Revision 1.130: download - view: text, markup, annotated - select for diffs
Sat Jun 1 12:27:04 2002 UTC (22 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +6 -6 lines
Standardise on the name "MIPS_SR_BEV" instead of a couple of different
#defines for the same status bit.

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

Revision 1.129: download - view: text, markup, annotated - select for diffs
Fri May 3 03:50:11 2002 UTC (22 years, 8 months ago) by rafal
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: gehenna-devsw
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +6 -4 lines
R4600 and R5000 count registers count at half-cpu-speed as well.

Revision 1.120.2.11: download - view: text, markup, annotated - select for diffs
Wed Apr 17 00:03:48 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.10: preferred, colored
Changes since revision 1.120.2.10: +24 -17 lines
Catch up to -current.

Revision 1.128: download - view: text, markup, annotated - select for diffs
Fri Apr 5 01:22:17 2002 UTC (22 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +24 -16 lines
Add a "CPU_MIPS_DOUBLE_COUNT" flag for CPUs where the cp0 count register
ticks over at half the CPU clock speed, and set this flag for the known
CPUs with this behaviour.  Better names for this flag gratefully accepted!

Also adjust comment about known R4000/R4400 revisions.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Wed Apr 3 03:47:53 2002 UTC (22 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +2 -3 lines
Remove a commented-out debug printf.

Revision 1.120.2.10: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:41:10 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.9: preferred, colored
Changes since revision 1.120.2.9: +710 -272 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.126: download - view: text, markup, annotated - select for diffs
Sun Mar 17 20:54:09 2002 UTC (22 years, 10 months ago) by manu
Branches: MAIN
CVS tags: eeh-devprop-base, eeh-devprop
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +3 -3 lines
Replaced PS_STRINGS by p->p_psstr

Revision 1.118.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 16 15:58:41 2002 UTC (22 years, 10 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.118.2.2: preferred, colored; branchpoint 1.118: preferred, colored
Changes since revision 1.118.2.2: +708 -270 lines
Catch up with -current.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Wed Mar 13 13:18:58 2002 UTC (22 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +4 -2 lines
Add R4400 reg 0x60 to the MIPS CPU table.
From PR port-mips/15894 from Thilo Manske.

Revision 1.124: download - view: text, markup, annotated - select for diffs
Mon Mar 11 16:39:40 2002 UTC (22 years, 10 months ago) by uch
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +13 -8 lines
make this compile and work with MIPS3_5900.

Revision 1.123: download - view: text, markup, annotated - select for diffs
Wed Mar 6 13:10:22 2002 UTC (22 years, 10 months ago) by tsutsui
Branches: MAIN
CVS tags: newlock-base, newlock
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +3 -3 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.122: download - view: text, markup, annotated - select for diffs
Tue Mar 5 15:53:00 2002 UTC (22 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +697 -266 lines
Add support for MIPS32 and MIPS64 architectures:
 - Use a table-driven CPU detection algorithm instead of multiple
   case statements.
 - Add MIPS32/64 feature detection using the architected CP0 registers
   (from Broadcom Corp).
 - Call MD mips_machdep_cache_config() function if
   __HAVE_MIPS_MACHDEP_CACHE_CONFIG is defined - used to set up the
   L2 cache on some ports.

Revision 1.120.2.9: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:10:45 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.8: preferred, colored
Changes since revision 1.120.2.8: +2 -6 lines
Catch up to -current.

Revision 1.118.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:08:37 2002 UTC (22 years, 11 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.118.2.1: preferred, colored; branchpoint 1.118: preferred, colored
Changes since revision 1.118.2.1: +2 -6 lines
Sync w/ -current.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Wed Jan 30 16:10:08 2002 UTC (22 years, 11 months ago) by uch
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +2 -6 lines
remove unused variable.

Revision 1.118.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:46:12 2002 UTC (23 years ago) by thorpej
Branches: kqueue
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +133 -270 lines
Sync kqueue branch with -current.

Revision 1.120.2.8: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:26:23 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.7: preferred, colored
Changes since revision 1.120.2.7: +2 -2 lines
Catch up to -current.

Revision 1.120.2.7: download - view: text, markup, annotated - select for diffs
Fri Dec 28 06:12:20 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.6: preferred, colored
Changes since revision 1.120.2.6: +2 -28 lines
Garbage collect cpu_stashcontext().

Revision 1.120.2.6: download - view: text, markup, annotated - select for diffs
Mon Dec 17 21:31:25 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.120.2.5: preferred, colored
Changes since revision 1.120.2.5: +12 -108 lines
Convert to new, smaller cpu_upcall().

Revision 1.120.2.5: download - view: text, markup, annotated - select for diffs
Wed Nov 28 10:19:15 2001 UTC (23 years, 2 months ago) by wdk
Branches: nathanw_sa
Diff to: previous 1.120.2.4: preferred, colored
Changes since revision 1.120.2.4: +28 -31 lines
* Move struct siginfo into frame.h header file

* In cpu_upcall create a stack frame for carrying 2 extra arguments.
  We can only pass 4 arguments in registers, so sa_arg and sa_upcall
  needs to be passed on the stack.

* Use sadata_upcall_free()

Revision 1.120.2.4: download - view: text, markup, annotated - select for diffs
Sun Nov 18 09:22:32 2001 UTC (23 years, 2 months ago) by wdk
Branches: nathanw_sa
Diff to: previous 1.120.2.3: preferred, colored
Changes since revision 1.120.2.3: +4 -4 lines
Fix typo in last commit

Revision 1.120.2.3: download - view: text, markup, annotated - select for diffs
Sun Nov 18 09:12:00 2001 UTC (23 years, 2 months ago) by wdk
Branches: nathanw_sa
Diff to: previous 1.120.2.2: preferred, colored
Changes since revision 1.120.2.2: +4 -4 lines
Fix off-by-one error when copying register set

Revision 1.120.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 17 23:43:43 2001 UTC (23 years, 2 months ago) by wdk
Branches: nathanw_sa
Diff to: previous 1.120.2.1: preferred, colored
Changes since revision 1.120.2.1: +1562 -0 lines
Inital support for Scheduler Activation on MIPS architectures.

Compiles for sgimips.  Needs more work in locore.S in order to reach
single user and beyond.

Revision 1.120.2.1
Wed Nov 14 18:15:24 2001 UTC (23 years, 2 months ago) by wdk
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.120: +0 -1303 lines
file mips_machdep.c was added on branch nathanw_sa on 2001-11-17 23:43:43 +0000

Revision 1.120: download - view: text, markup, annotated - select for diffs
Wed Nov 14 18:15:24 2001 UTC (23 years, 2 months ago) by thorpej
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +125 -279 lines
Merge the thorpej-mips-cache branch onto the trunk.  This is an
overhaul of how caches are handled for NetBSD's MIPS ports.

Revision 1.119.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 10 16:26:16 2001 UTC (23 years, 2 months ago) by uch
Branches: thorpej-mips-cache
Diff to: previous 1.119.2.1: preferred, colored; branchpoint 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119.2.1: +13 -13 lines
new cache code for R5900 and playstation2

Revision 1.119.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 24 17:38:10 2001 UTC (23 years, 3 months ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +116 -270 lines
Update for the new cache code.  Some careful code review is needed
here, esp. by people who have done recent MIPS pmap hacking.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Tue Oct 16 16:31:38 2001 UTC (23 years, 3 months ago) by uch
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Branch point for: thorpej-mips-cache
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +26 -9 lines
R5900 support.
 COP0_SYNC
	In R5900 mtc0, tlbr, tlbp, tlbwi, tlbwr must be followed by sync.p.
	if defined MIPS3_5900, COP0_SYNC is defined as sync.p. else nothing.
 IPL_ICU_MASK
	mask interrupt directly ICU instead of SR.IM.
	I've added this feature to support software interrupt for R5900.
	and this option may be useful for platform which has cascaded ICU.

Revision 1.112.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 19:28:09 2001 UTC (23 years, 7 months ago) by nathanw
Diff to: previous 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112: +60 -7 lines
Catch up to -current.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Jun 11 23:52:39 2001 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +10 -2 lines
Always indirect through the "locoresw" to get the cache ops, since
there are just far too many combinations to handle with magic
#ifdefs in any sane way.  Also, add a HitFlushDCache op to the
"locoresw", and fill it in as appropriate (it's NULL on MIPS-I,
so watch out).

These changes ensure that my R4600 Indy (with 2-way cache) gets
the correct cache ops when the kernel is built with only MIPS3
support, resulting in a kernel that is significantly more stable.

Revision 1.90.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 7 15:58:29 2001 UTC (23 years, 7 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.90: preferred, colored; next MAIN 1.91: preferred, colored
Changes since revision 1.90: +21 -2 lines
Pull up revisions 1.114-1.115 (via patch, requested by hubertf,
	reviewed by thorpej):
  Implement power saving for RM5200 and RM7000 CPUs, as used in
  e.g. Cobalt RaQ2.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Thu May 31 02:06:26 2001 UTC (23 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +9 -8 lines
PRiD 0x18 is shared by RC32334, 332 and 355.  These SoCs are
distinguished by SYSID register in the system controller.  Note
that PRiD 0x20 is for a standalone RC32364 processor which has the
same 32300 core inside.  Rather better to name them MIPS32 ISA.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Wed May 30 09:06:28 2001 UTC (23 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +3 -2 lines
Add a case clause for IDT RC32332/RC32334 processor personality
inside a commented-out block.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Tue May 29 18:19:20 2001 UTC (23 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +3 -2 lines
The QED RM7000 can use the same idle routine as the QED RM52xx.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Tue May 29 17:54:56 2001 UTC (23 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +20 -2 lines
Install power-saving idle routines at the end of cpu_identify().  We
currently handle the QED RM52xx here.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Wed May 2 21:23:03 2001 UTC (23 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +26 -2 lines
Size the number of initial color bins based on the size and
associativity of the L1 cache.

Note, doesn't really do anything for virtually-indexed caches,
but it doesn't hurt them, either.

Revision 1.57.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:34:44 2001 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.57.2.3: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.3: +34 -12 lines
Sync with HEAD

Revision 1.112: download - view: text, markup, annotated - select for diffs
Sun Dec 31 19:06:40 2000 UTC (24 years ago) by castor
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +10 -2 lines
Fix sendsig/sigreturn for SOFTFLOAT case.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Thu Dec 28 09:27:09 2000 UTC (24 years, 1 month ago) by castor
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +10 -4 lines
Disable FPU in sys___sigreturn14() so floating point registers are
properly restored.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Fri Dec 22 22:58:55 2000 UTC (24 years, 1 month ago) by jdolecek
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +11 -12 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.109: download - view: text, markup, annotated - select for diffs
Wed Dec 20 05:48:06 2000 UTC (24 years, 1 month ago) by jeffs
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +11 -2 lines
Hook mips3 cache error vector.  No real handler, only set-up for a panic.
A real handler is hard.

Revision 1.57.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:28:22 2000 UTC (24 years, 1 month ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.57.2.2: preferred, colored
Changes since revision 1.57.2.2: +6 -5 lines
Sync with HEAD.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Nov 27 06:38:54 2000 UTC (24 years, 2 months ago) by soren
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +6 -5 lines
Correct a few cpu/fpu ids.

Revision 1.57.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 20 20:13:35 2000 UTC (24 years, 2 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.57.2.1: preferred, colored
Changes since revision 1.57.2.1: +359 -137 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.107: download - view: text, markup, annotated - select for diffs
Thu Oct 5 02:36:45 2000 UTC (24 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +5 -5 lines
clean up and consistency for CP0 Count, Compare, Wired, and Config
access function names and prototypes.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Thu Oct 5 01:06:07 2000 UTC (24 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +4 -3 lines
nuke mips3_clearBEV().  There's really no point in coding a
special-purpose assembly routine for things like this.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Thu Oct 5 00:53:01 2000 UTC (24 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +23 -23 lines
tweak cpu_arch.  Eliminate all direct checks of it (making them
use the macro CPUISMIPS3 -- which is badly misnamed), and set it
from #defines named CPU_ARCH_N (where N is 1..5, 32, 64).

Revision 1.104: download - view: text, markup, annotated - select for diffs
Wed Oct 4 21:41:47 2000 UTC (24 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -3 lines
the generic MIPS code doesn't even play at doing anything useful
with a MIPS4 option at this point -- all the code except for one single
spot is conditionalized with MIPS3.  So, don't even pretend about
MIPS4 for now, until it all gets cleaned up.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Mon Sep 18 18:17:32 2000 UTC (24 years, 4 months ago) by uch
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -3 lines
[R3900/R3920] sync with
 | Module Name:	syssrc
 | Committed By:	nisimura
 | Date:		Sat Sep 16 07:20:17 UTC 2000

Revision 1.102: download - view: text, markup, annotated - select for diffs
Sat Sep 16 07:20:16 2000 UTC (24 years, 4 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +5 -3 lines
Introduce new MIPS1 direct mapped cache capacity detection logics.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Sat Sep 16 00:04:57 2000 UTC (24 years, 4 months ago) by chuck
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +31 -9 lines
IDT32364's Config register uses a different base for IC/DC (instruction
and data cache sizes).   R4000 uses 2^(12+IC) and 2^(12+DC).  IDT32364
uses 2^(9+IC) and 2^(9+DC).

abstract around the problem by making the base a parameter to the
MIPS3_CONFIG_CACHE_SIZE macro.   we pass the base down from mips_vector_init
to mips3_vector_init and to mips3_ConfigCache (where it is used).

XXX: someone with an MIPS3_4100 should switch to this and get rid
of the ugly ifdefs in cpuregs.h

Revision 1.100: download - view: text, markup, annotated - select for diffs
Wed Sep 13 01:53:01 2000 UTC (24 years, 4 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +4 -2 lines
Introduce 'segbase' global variable to hold the pointer to current
process's segtab, retiring 'pcb_segtab' field from 'struct pcb'.
This would be another MULTIPROCESSOR unfriendly and the necessity
might be eliminated when the way to hold PTE is redesigned.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Wed Aug 2 06:46:47 2000 UTC (24 years, 5 months ago) by jeffs
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +2 -14 lines
setregs() cache sync turns out not to be needed with kern_exec 1.104
(which was 2 weeks after our internal trees full sync).

Revision 1.98: download - view: text, markup, annotated - select for diffs
Thu Jul 27 17:29:06 2000 UTC (24 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +23 -16 lines
convert PRID handling to use macros on an int, not bit-fields.
there's no reason to use bit-fields, and they just complexity to
the header.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Jul 27 08:28:36 2000 UTC (24 years, 6 months ago) by jeffs
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +4 -3 lines
Fix to actually compile MIPS1 only.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Thu Jul 27 06:28:06 2000 UTC (24 years, 6 months ago) by jeffs
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -4 lines
Do not attempt mips3 style cache flush on mips1 in setregs() as it
is illegal to flush on user addresses.  In theory the race exists
on MIPS1, but it is rather unlikely in common use.  I have
seen it with regress/sys/kern/sigtramp on a QED 5231 system.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Thu Jul 20 18:33:42 2000 UTC (24 years, 6 months ago) by jeffs
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -2 lines
Make pmap_prefer() use a global setting based on cache size
instead of assuming 64KB.   This allows best fit and will
support bigger caches.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Mon Jul 10 23:21:16 2000 UTC (24 years, 6 months ago) by jeffs
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +9 -3 lines
Update mips3_locore_vec cache functions for mips3_L1TwoWayCache.  Add cast
for clean compilation with _MIPS_BSD_API_LP32_64CLEAN set.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Jul 10 21:12:13 2000 UTC (24 years, 6 months ago) by jeffs
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +12 -2 lines
In setregs() flush sigreturn trampoline code from the d (MIPS3) and i cache.
Tested on geocast RM5231 platform.  This fixes a race in
regress/sys/kern/sigtramp.  Some other ports do the same thing.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Jun 29 08:11:27 2000 UTC (24 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +2 -4 lines
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Jun 26 02:55:47 2000 UTC (24 years, 7 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +2 -4 lines
Abandon {mips1,mips3}_TBRPL()s which have little gain.  They were
expected to be better than MachTLBUpdate(). After all, TLBUpdate()
is rather harmful and should be replaced with TBIS().

Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:01:36 2000 UTC (24 years, 7 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +167 -12 lines
Sync w/ netbsd-1-5-base.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sat Jun 17 06:38:25 2000 UTC (24 years, 7 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +3 -3 lines
cod: any of various bottom-dwelling fishes (family Gadidae, the cod
  family) that usually occur in cold marine waters and often have barbels
  and three dorsal fins.
code: a set of instructions for a computer.

The latter is more appropriate in the comment corrected here.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Jun 15 23:39:14 2000 UTC (24 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +5 -5 lines
when printing the cpu_id (because it's unknown or not supported),
print the whole PRID value.  Also, print the PRID value in addition to
the name, when the CPU is known (for data collection purposes).

Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri Jun 9 06:07:02 2000 UTC (24 years, 7 months ago) by soda
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3 lines
Decrease MIPS3_TLB_WIRED_ENTRIES from 8 to 2,
and rename it to MIPS3_TLB_WIRED_UPAGES.
The value of wired register becomes variable on arc port,
and arc is the only mips3 port which uses the wired TLB entries 2..7.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Jun 8 04:47:13 2000 UTC (24 years, 7 months ago) by mhitch
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -3 lines
Fix loadfpregs():  the register used to access the floating point registers
was not getting loaded, and the floating point registers were being loaded
from the proc structure rather than the FP registers in the pcb.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Tue Jun 6 17:36:12 2000 UTC (24 years, 7 months ago) by soren
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -3 lines
R12K has 64 TLBs too.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Jun 5 23:44:59 2000 UTC (24 years, 7 months ago) by jhawk
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +2 -3 lines
Do not clear msgbufenabled in dumpsys().  Dump messages will now go to
the message buffer. This can be invaluable in debugging if the dump
fails (assuming a persistant message buffer)

Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue May 30 01:29:59 2000 UTC (24 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +2 -4 lines
FPA ownership is now guarded by MDP_FPUSED flag and there is no necessity
to have #if ... around savefpregs() calls.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue May 30 01:23:55 2000 UTC (24 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +158 -0 lines
- Have savefpregs() and loadfpregs() in C codes with lengthy inlined
  asm statements, obsoluting asm routines in locore.S.  They are
  designed to work in symmetry as names suggests.  savefpregs()
  does not clear a global variable fpcurproc.  Both would be noops when
  NOFPU global symbol is defined.
- MDP_FPUSED flag is not turned on for FPA-less processors like Vr4100
  and TX3900 even when processes execute FP insns.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon May 29 09:47:19 2000 UTC (24 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3 lines
Put an additional check to see curproc was an FPA owner process.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Tue May 23 04:21:40 2000 UTC (24 years, 8 months ago) by soren
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +5 -24 lines
MachForceCacheUpdate and cacheflush_bug have never been used in NetBSD,
so remove references them, and do a little other cleanup.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun May 21 04:25:57 2000 UTC (24 years, 8 months ago) by soren
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +9 -3 lines
R10K has 64 TLBs.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Sun May 21 04:03:34 2000 UTC (24 years, 8 months ago) by soren
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +9 -5 lines
Add R12K PRID.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Wed May 17 23:35:44 2000 UTC (24 years, 8 months ago) by soren
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +4 -4 lines
Make cache printing a little more consistent.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed May 10 01:34:15 2000 UTC (24 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +10 -8 lines
Have mips_locoresw[] of 3 entry pointer array for different
implementation of locore routines between MIPS1 and MIPS3.  It's
independent from mips_locore_jumpvec_t which is for cache/TLB
manipulating routines peculiar to processor designs.  mips_locore_jumpvec_t
will be replaced with "processor closures" encapsulating implementation
parameters (cpuinfo) and pointers to conventaion routines (cpuops),
eventually.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed Apr 12 01:05:35 2000 UTC (24 years, 9 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +5 -5 lines
- Implement mips3_TBIAP().
- Remove obsoluted routines in locore_mips3.S
- addiu -> addu, andi -> and, ori -> or.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Mar 28 02:58:49 2000 UTC (24 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -3 lines
Don't `extern' function declarations.  While we're there, remove trailing
blank lines and white space.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Mar 28 02:53:18 2000 UTC (24 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +6 -6 lines
Use the recent alpha solution to getting the printf() format right in
mips_init_msgbuf().

Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue Mar 28 00:52:57 2000 UTC (24 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -8 lines
Remove duplication declarations of Sysmap and Sysmapsize - these are
in <mips/pte.h>

Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Mar 27 05:30:41 2000 UTC (24 years, 10 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3 lines
Have TBIA/TBIAP an argument refering to a global variable instead
of a compile time constant.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Mar 27 05:23:42 2000 UTC (24 years, 10 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +28 -29 lines
- Rename some of TLB ops to have handy abbrivations hired from VAX and
  ALPHA; mips1_TBIA, mips1_TBIAP, mips1_TBIS.
- Make sure TBIA and TBIAP ops to have an argument for the size of TLB
  which varies across even for MIPS1 implementations.
- Nuke the unused cpu_isa field from processor personality list.

- XXX XXX XXX
  it's less-than-optimal and likely a mistake to have TLBUpdate().
  It's costy to try to invalidate a single TLB entry whenver a certain
  PTE is going to be modified by traversing the entire TLB looking
  for the modified PTE because the PTE in question is not in TLB in
  most cases.  ASID bump could do the invalidation smartly.  Solution
  is planned for now.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Mar 27 02:55:16 2000 UTC (24 years, 10 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -6 lines
Nuke MIPS_16K_PAGE conditional which should be commited in.  It
was used for debugg'n purposes which only make senses on particular
hardware configurations and has never been intended to extend pagesize
of NetBSD/mips.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Mar 24 18:15:41 2000 UTC (24 years, 10 months ago) by soren
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +7 -3 lines
Missing in previous; set cache alias mask properly on processors with
two-way set associative L1 caches.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Mar 19 19:16:14 2000 UTC (24 years, 10 months ago) by soren
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +9 -7 lines
Updated RM5231 cache code from Jeff Smith and Ethan Solomita at Geocast.
Many thanks.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Mar 3 12:43:52 2000 UTC (24 years, 10 months ago) by soda
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +7 -3 lines
use callback function to set up secondary cache related things on arc.
XXX - perhaps it is better to separate cache related initialization
from mips_vector_init().

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Feb 19 04:00:59 2000 UTC (24 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -3 lines
Don't print an extra cpu0: prefix.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Feb 1 18:38:50 2000 UTC (24 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -8 lines
No need for mips_locore_jumpvec to be initialized data.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Jan 28 15:08:37 2000 UTC (25 years ago) by takemura
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -4 lines
CPU specific idle hook and VR idle routine.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Jan 19 20:05:43 2000 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -3 lines
Move callout initialization to a single location; no need to duplicate
that code all over the place.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sun Jan 9 08:01:54 2000 UTC (25 years ago) by shin
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3 lines
split 'options SOFTFLOAT' to

	NOFP		don't touch FPU registers in kernel
	SOFTFLOAT	emulate FPU instructions in kernel

Revision 1.56.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:32:48 1999 UTC (25 years, 1 month ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +43 -8 lines
Pull up to last week's -current.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Dec 22 05:54:18 1999 UTC (25 years, 1 month ago) by tsubai
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -2 lines
* news5000 support.
* mips3_VCE[DI] now support L2CacheLSize != 32.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Nov 29 11:12:14 1999 UTC (25 years, 2 months ago) by uch
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +38 -2 lines
TX3912/22 support. ENABLE_MIPS_TX3900 enables it.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Nov 18 06:47:49 1999 UTC (25 years, 2 months ago) by jun
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -2 lines
on port-mips@netbsd.org:
Shuichiro URATA <ur@a-r.org> makes kernel softfloat emulation code.

http://www.a-r.org/~ur/softfloat1116.diff.gz

is Patch for
      sys/arch/mips/conf/files.mips
      sys/arch/mips/mips/fp.S
      sys/arch/mips/mips/fpemu.c
      sys/arch/mips/mips/genassym.cf
      sys/arch/mips/mips/locore.S
      sys/arch/mips/mips/mips_machdep.c
      sys/arch/mips/mips/process_machdep.c
      sys/arch/mips/mips/trap.c
      sys/arch/mips/mips/vm_machdep.c
After apply this patch,pmax package binary works on hpcmips!

Revision 1.57.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:38:41 1999 UTC (25 years, 2 months ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +2 -5 lines
Sync with -current

Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 20 22:02:23 1999 UTC (25 years, 3 months ago) by thorpej
Branches: thorpej_scsipi
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -5 lines
Sync w/ trunk.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Oct 20 14:21:10 1999 UTC (25 years, 3 months ago) by simonb
Branches: MAIN
CVS tags: fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -5 lines
Remove unused variable.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Oct 18 17:23:00 1999 UTC (25 years, 3 months ago) by soren
Branches: MAIN
Branch point for: thorpej_scsipi, fvdl-softdep
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +5 -5 lines
Shorten fpuname for built-in FPUs.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Sep 25 00:00:39 1999 UTC (25 years, 4 months ago) by shin
Branches: MAIN
Branch point for: wrstuden-devbsize
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +17 -3 lines
Changes for NetBSD/hpcmips.

	Support VR4100.
	Support 16KB page.
	Support CPU without FPU.

Fix virtual alias problem(physio() case).

[new options]

options		MIPS3_4100	/* VR4100 core */
options		MIPS_16K_PAGE	/* enable kernel support for 16k pages  */
options		SOFTFLOAT 	/* No FPU; avoid touching FPU registers */

Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Sep 24 00:37:52 1999 UTC (25 years, 4 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +5 -5 lines
'KB' for kilo-bytes as humanize_number().

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Aug 16 02:59:23 1999 UTC (25 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
Spell "privilege" correctly (correct spelling from Jonathan Stone).

Revision 1.48.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 00:52:09 1999 UTC (25 years, 7 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +12 -123 lines
Sync w/ -current.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu May 20 08:21:45 1999 UTC (25 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -89 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.52: download - view: text, markup, annotated - select for diffs
Tue May 18 01:36:52 1999 UTC (25 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -23 lines
- Move MachSetPID(1) call to pmap_bootstrap() adajacent to kernel pmap
initialization code.
- Abandon mips_init_proc0() and do the 4 lines straightly in MD mach_init().
- Restore a block of code accidentally lost in prevous commit.
- Change the term 'tlbpid' to a MIPS3 nomenclature 'asid'.
- Hide PTE size exposures by symbolic names in locore.S

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Apr 25 02:56:28 1999 UTC (25 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -5 lines
g/c REAL_CLISTS.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Apr 24 15:04:32 1999 UTC (25 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
Oops, deleted a register_t instead of register in previous.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Apr 24 08:10:41 1999 UTC (25 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +17 -17 lines
Nuke register and remove trailling white space.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Mar 24 05:51:05 1999 UTC (25 years, 10 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -8 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.47: download - view: text, markup, annotated - select for diffs
Sat Feb 27 06:39:36 1999 UTC (25 years, 11 months ago) by scottr
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -2 lines
defopt BUFCACHE and BUFPAGES.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Jan 23 06:13:30 1999 UTC (26 years ago) by nisimura
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -2 lines
- Add NEC Vr5400 processor ID.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Jan 15 23:35:54 1999 UTC (26 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -4 lines
__pmax__ -> pmax, __arc__ -> arc, like other ports.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Jan 15 22:26:43 1999 UTC (26 years ago) by castor
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -4 lines
* Add prototype for mips1_clean_tlb
* Add the correct version of locore_mips1.S [ See previous revision for
	description of changes ]
* Use defopt'ed MIPS3_L2CACHE_ABSENT in mips_machdep.c and pmap.c
	to avoid generating extraneous code.
* GC pmap_set_referenced in pmap.c

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Jan 15 09:58:43 1999 UTC (26 years ago) by castor
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3 lines
Fix typo in mips3_ConfigCache() -- mips3_L2CachePresent

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Jan 15 01:23:15 1999 UTC (26 years ago) by castor
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +33 -94 lines
* Elimination of UADDR/KERNELSTACK

   Affected files:
	include/mips_param.h, include/pcb.h,
	mips/locore_mips1.S, mips/locore_mips3.S,
	mips/mips_machdep.c, mips/vm_machdep.c

   Issue:

So far, NetBSD/mips has not successfully got rid of fixed-address
kernel stack.  USPACE (two 4KB pages) of each process has two distinct
KSEG2 addresses, both refer to a single physical storage; one address
for fixed range [ UADDR .. KERNELSTACK ), and another for "normal" KSEG2
address which was allocated by kernel memory manager and unique to each
others of processes.

"Doubly mapped" USPACE complicates context switch.  Both address ranges
have to be managed with a special care of "wired" TLB entries which
are never replaced until next context switch to ensure no TLB miss for
USPACE access.  It's equally crumbersome that MIPS processor's cache
machinary gets be confused about USPACE contents because there are two
distinct KSEG2 addresses to manipulate one physical storage.

   Solution:

Purge KERNELSTACK constant for kernel stack pointer and replace
it with process unique values.  Kernel stack bottom is located at
'curproc->p_addr + USPACE'.  Context switch is simplified as it unloads
half of TLB hardwiring burden.  It just manages the unique KSEG2 address
of each USPACE to be wired.  As the side effect, switch_exit() has no
MIPS processor ISA dependent code anymore.  It switchs kernel stack to
proc0's USPACE which has KSEG0 address and no need of TLB entry.

* Extensive use of 'genassym.cf'

To hide target port dependent and/or processor register size dependent
constants from assembler routines, 'genassym.cf' now has an extentive
set of definitions for various constants and offset values of
structural objects.  This change will contribute possible NetBSD/mips64
portability too.

* Separation and rename of locore_r2000/_r4000.S

Those files are now indepedent standalones from locore.S to ease
maintainance works, and renamed to match MIPS processor ISA version.

* Changes in kernel mode exception handlers

Kernel mode exception handlers hold exception contexts by pushing a
certain set of register values on stack for resuming kernel mode
processing.  This context is now represented with 'struct trapframe',
which is smaller than full scale (user mode) exception context 'struct
frame'.  Stack consumption of kernel mode exception services is now
similar to 4.4BSD/mips.

* Relocation of exception frame

User mode context 'struct frame' is moved to the very bottom of kernel
stack at 'curproc->p_addr + USPACE - sizeof(struct frame)'  This change
saves a bit of instructions on every return to user processes as it
eliminates reference to global variable 'curpcb' each time.

* Refurblished DDB backtrace routine

It's a growing concern to maintain stacktrace() code correctly.  It
could be simplified by enforcing special arrangements for some of
obscure locore routines which violate usual coding conventions.

New backtrace code searchs for certain instructions peculiar to any of
function tails.  Specifically, "jr ra" for normal function returns, "jr
k0" for MIPS1 exception handlers and "eret" for MIPS3 handlers.

* Support for 64-bit safe user code
    Affected Files:
	${ARCH}/include/pubassym.cf lib/libc/arch/mips/gen/*setjmp*
	include/setjmp.h mips/include/[lots] mips/mips/[lots]

    Solution:

	We define macros REG_L/REG_S and SZREG for loading and storing
	registers and for the size of registers.  The exact meaning
	of these is controlled by a macro (currently _MIPS64) which
	allows one to treat the registers as either 32-bit or 64-bit.
	There are data types mips_reg_t and mips_fpreg_t which represent
	the true register sizes, and avoid confusing register_t.

	We needed a way to dynamically gen the structure sizes of things
	like sigcontext for setjmp.h, so we defined a pubassym.cf for
	libc routines like setjmp and longjmp.

	NetBSD/mips allows ${ARCH}'s to be defined which preserve
	all 64-bits of registers across user context switches.  There
	are still a few niceties to clean up for kernel mode context
	switches.

* Support for QED 52xx processors
    Affected Files:
	mips/locore_mips3.S mips/pmap.c include/locore.h

    Issue:
	The QED 52xx family of processors are targeted at low cost
	embedded systems, (i.e. CPUs ~$30) for systems like routers, printers,
	etc.  We have added preliminary support for some of the idiosyncrasies
	of this processor, e.g. no L2 cache, etc.  More work needs to be
	done here because with a modest 2-way  L1 cache, some of the rampant
	flushing has significant performance implications.  However,
	it doesn't crash, which is a start.

    Solution:
	A routine for flushing the cache based on virtual addresses was added;
	a routine which deals with the two-way set associativity of the
	5230 L1 cache was added, accomodations to 5230's instruction hazards
	were added.


* TLB Miss code for mips3/mips4 processors cleaned up significantly.
    Affected Files:
	mips/locore_mips3.S mips/vm_machdep.c include/locore.h mips_machdep.c
    Issue:
	The TLB Miss handler exceeded the allowed size, which wasn't
	a problem because there was no handler for when the processor
	was in 64-bit mode.  The handler for invalid TLB exceptions
	also appears to have much vestigial code, which made it
	difficult to understand.

    Solution:
	Use the XCONTEXT register to store a pointer to the segment
	map table, this coupled with removing some dead code allows
	the handlers to fit.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Dec 7 04:21:57 1998 UTC (26 years, 1 month ago) by nisimura
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -4 lines
- Remove improper casts mistakenly creeped in the last commit.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Dec 3 06:28:45 1998 UTC (26 years, 1 month ago) by nisimura
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +44 -47 lines
- Use explicite structure member reference with 'struct frame' to alter
register values of exception frame pointed with p->p_md.md_regs.
- Local auto variable 'cpustate' in cpu_coredump() was never used correctly.

Revision 1.36.2.4: download - view: text, markup, annotated - select for diffs
Mon Nov 16 10:41:32 1998 UTC (26 years, 2 months ago) by nisimura
Branches: nisimura-pmax-wscons
Diff to: previous 1.36.2.3: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.3: +27 -21 lines
- Step forward to MIPS64 support.  Incorporate partially Caster Fu's
patches.  Still some work is missing to satisfy his QED 5230 port.

- More symbolic definitions in genassym.cf which improve possible 64bit-ness
of locore_mips{1,3}.S.

- Fix mips3 L1 cache line size detection logic in cpuarch.h as pointed by
Caster.

- Fix a bug in proc_trampoline() code in locore_mips3.S as pointed by Caster.

- Replace vm_offset_t with vaddr_t/paddr_t entirely.  Note that
NetBSD/newsmips has purged vm_offset_t too.

- Synchronize various files according to recent changes made in main trunk.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Nov 2 07:43:37 1998 UTC (26 years, 2 months ago) by simonb
Branches: MAIN
CVS tags: chs-ubc-base, chs-ubc
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +19 -17 lines
Implement the new BUFCACHE option.

Revision 1.36.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 20 09:27:14 1998 UTC (26 years, 3 months ago) by drochner
Branches: nisimura-pmax-wscons
Diff to: previous 1.36.2.2: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.2: +3 -2 lines
sync to trunk rev. 1.38

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Oct 19 22:09:19 1998 UTC (26 years, 3 months ago) by tron
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -2 lines
Defopt SYSVMSG, SYSVSEM and SYSVSHM.

Revision 1.36.2.2: download - view: text, markup, annotated - select for diffs
Mon Oct 19 20:29:11 1998 UTC (26 years, 3 months ago) by drochner
Branches: nisimura-pmax-wscons
Diff to: previous 1.36.2.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.1: +4 -2 lines
sync to trunk rev. 1.37

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Oct 18 22:00:17 1998 UTC (26 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -2 lines
Zero-initialize the initial u-area. This cures the "random process killed
by SIGPROF or SIGVTALRM" syndrome.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 15 03:16:48 1998 UTC (26 years, 3 months ago) by nisimura
Branches: nisimura-pmax-wscons
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -9 lines
- Split MIPS1/MIPS3 specific codes from locore.S.  They stand independently
  as locore_mips1.S and locore_mips3.S respectively.
- Change function declaration macros in asm.h.  They are now more NetBSD/alpha
  look like.  All of *.S files were changed.
- TLB dump codes now reside in db_interface.c.  Minor change was done in
  locore_mips1.S for it.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Oct 5 05:26:00 1998 UTC (26 years, 3 months ago) by nisimura
Branches: MAIN
CVS tags: nisimura-pmax-wscons-base
Branch point for: nisimura-pmax-wscons
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +140 -212 lines
* Make cpu_identify() routine table-driven.
* MIPS3 sanity check now allow MIPS1 models to boot.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Oct 2 18:59:56 1998 UTC (26 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -3 lines
set up old style sigmask on COMPAT_ULTRIX too

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Oct 1 00:42:38 1998 UTC (26 years, 4 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +17 -6 lines
More patches for ARC from Noriyuki Soda:
  * commit isapnpvar.h changes required for ARC to support plain isa.
  * fixup mistake over mips/include/cpuregs.h.
  * mips/mips_machdep.c:
     set L2 cache-size for arc, cleanup use of L2cache present
     vs L2 cache-size variables. check for no L2 cache on kernels
     configured to require one. misc cleanups.
  * mips/mpis/trap.c: more locore stack-traceback  label cleanup.
XXX  Locore callbacks for mips3, mips4, r4600 cacheflush need more work.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Sep 14 07:04:06 1998 UTC (26 years, 4 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -4 lines
Fix typos in signal rework (sc.regs -> sc-regs, rege -> regs).

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Sep 13 11:58:00 1998 UTC (26 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +8 -4 lines
Fix omission in previous; remember to record that we're on the signal stack.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Sep 13 10:29:05 1998 UTC (26 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +85 -81 lines
Make signal delivery work again.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Sep 11 16:46:33 1998 UTC (26 years, 4 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +235 -24 lines
Changes to sys/arch/mips from ARC port, from Noriyuki Soda <soda@sra.co.jp>.
Adds (most) support for ARC platform to port-independent mips code.

Some changes (e.g., clean up of overlapping CPU/FPU ids) inspired by
comparison to the OpenBSD 2.1 codebase of Soda's ARC port.

Open issues:
 * Still no support for r4600 or mipsIV CPUs with two-way L1 cache.
   Code derived from Per Fogelstrom's OpenBSD source  doesn't work
   on mips3 pmaxes with L2 cache.

 * Still some port-specific  #ifdefs, for interrupt enable and
   pmax L2 cache-size.  Needs more thought, but overlaps with
   work-in-progress by Tohru and Tsubai on spl()s and related stuff.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Sep 2 06:41:22 1998 UTC (26 years, 4 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +31 -38 lines
- kernel boot flag 'd' now means "enter DDB asap" like as other ports.
- bump cpu_model[] length as the longest name occupies over 30 characters.
- place machine_arch[] beside machine[] for clearity.
- nuke useless #include directives.
- small scale cleanup in vm_machdep.c

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Jul 14 03:19:17 1998 UTC (26 years, 6 months ago) by mhitch
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
PS -> SR:  PS as alias to SR was removed due to conflict with other usage.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri May 8 16:55:16 1998 UTC (26 years, 8 months ago) by kleink
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -4 lines
Fix some arithmetics lossage on typeless pointers.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Apr 27 07:34:28 1998 UTC (26 years, 9 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -2 lines
Commit definition of mips_set_wbflush().

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Mar 22 06:31:40 1998 UTC (26 years, 10 months ago) by mhitch
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -4 lines
Set the PID before setting up the wired TLB entries for proc0.  The
mips3_HitFlushDCache() fails with a TLB miss otherwise.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Mar 12 05:45:06 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +14 -2 lines
Add support for UVM.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Feb 25 23:24:35 1998 UTC (26 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +202 -12 lines
Pull some code out of N mach_init() functions, and place it in a
common place:
- allocsys(), which computes space for and assigns addresses
  to kernel data structures at boot time.
- mips_init_msgbuf(), which initializes the error message
  buffer at the end of core.
- mips_init_proc0(), which initializes the U-area for proc0
  and nullproc.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Feb 19 23:09:30 1998 UTC (26 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +315 -4 lines
Implement new style crash dumps for NetBSD/mips, lifted from NetBSD/alpha.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Oct 17 09:35:11 1997 UTC (27 years, 3 months ago) by jonathan
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.20: preferred, colored
Changes since revision 1.20: +7 -1 lines
Add explicit #include <vm/vm.h> before mips/pte.h is included.

Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 16 03:48:56 1997 UTC (27 years, 4 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.1: +2 -3 lines
Update marc-pcmcia branch from trunk.

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

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 8 23:38:09 1997 UTC (27 years, 4 months ago) by thorpej
Branches: thorpej-signal
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +10 -11 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.18.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 23 07:11:17 1997 UTC (27 years, 5 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +8 -2 lines
Update marc-pcmcia branch from trunk.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Aug 9 19:06:45 1997 UTC (27 years, 5 months ago) by jonathan
Branches: MAIN
CVS tags: thorpej-signal-base
Branch point for: thorpej-signal
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +8 -2 lines
Definition of cpu_mhz.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Jul 19 09:54:37 1997 UTC (27 years, 6 months ago) by jonathan
Branches: MAIN
CVS tags: marc-pcmcia-bp
Branch point for: marc-pcmcia
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
* Re-apply changes from rev 1.6 of sys/arch/mips/include/reg.h accidentally
  undone by rev 1.7:
  >redo pmax/include/reg.h
  >so that the definitions needed by locore.S are in a separate file,
  >pmax/include/regnum.h.

* Add explicit `#include <mips/regnum.h>'  where symbolic offsets
  into a mips trapframe or struct reg are used..

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jul 1 09:32:13 1997 UTC (27 years, 7 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +242 -2 lines
Move generic mips functions setregs(), sendsig(), sys_signal()
to sys/arch/mips/mips/mips_machdep.c.  Delete from pica, pmax machdep.c.

Delint pica machdep.c.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jun 22 12:22:37 1997 UTC (27 years, 7 months ago) by jonathan
Branches: MAIN
CVS tags: bouyer-scsipi
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +7 -8 lines
Disambiguate cache-size message, as suggested by cgd.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jun 22 07:43:01 1997 UTC (27 years, 7 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4 lines
* Change Sprite MACH_xxx prefix to MIPS_xxx.

* Use standard mips terminology (xxx_KSEG0, xxx_KSEG1) instead of the
  (more meaningful) Sprite names (xxx_CACHED, xxx_UNCACHED).

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jun 22 03:17:42 1997 UTC (27 years, 7 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -6 lines
Final changes for configuring MIPS1 and MIPS3 in a single kernel.

  * cpuregs.h:
    rename remaining VMMACH_xxx TLB macros to MIPS_TLB_xxx.
    Add compile-time MIPS3-only, compile-time  MIPS1-only, and
    runtime (both) definitions  for number of TLB ASIDs (tlb pids)
    and shift count to extract a TLB pid.

  * locore.h:
    Delete unused vector slot for indexed TLB writes.
    mips1 and mips3 TLBs are different enough that we have
    to break them out at the caller anyway.

  * Add compile-time MIPS3-only andcompile-time  MIPS1-only
    macros to call locore functions directly by name.
    Use the  existing method table only if

  * mips/mips_machdep.c, mips/trap.c, mips/pmap.c, pmax/machdep.c:
    Use MIPS3_ or MIPS1_ specific names for TLB pids in
    mips3 and mips1 specific code paths (e.g., creating the kernel stack
    for process 0).

Add `options MIPS3' to pmax/conf/GENERIC.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Jun 21 04:18:17 1997 UTC (27 years, 7 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
More mips1/mips3 changes to cpuregs.h and psl.h:
* cpuregs.h:
  Delete unused VMMACH_ names (e.g., duplicates of PTE bits in  pte.h).
  Change remaining VMMACH_xxx  names to MIPS1_xxx or MIPS3_xx.
  Fold remaining compile-time definitions into a single #ifdef MIPS3.

* Use MIPS1_ names  in locore_r2000.S, mips3_ names in locore_r4000.S

* Garbage-collect MachHitFlushDCache()

* psl.h:
  use MIPS1_, MIPS3_  symbolic names for Cause register bits.
  change  _R3K to MIPS1_,  _R4K to MIPS3. Conditionalize for mips1 only,
  mips3 only, or when both are defined,  use runtime CPUISMIPS3 test.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jun 19 06:30:08 1997 UTC (27 years, 7 months ago) by mhitch
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +11 -7 lines
More merged mips1/mips3 support:
Remove cpu-specific routines from locore.S and add them to locore_r2000.S
and locore_r4000.S.  Add entries in locore jump vector table for switch_exit()
and the cpu_switch() context resume.
Add offsets into the jump vector to genassym.cf for use in locore.S.

Use same cachesize variables for mips1 and mips3, and rename the variables
per Jonathan's request.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Jun 16 23:41:52 1997 UTC (27 years, 7 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +33 -14 lines
Changes for configuring both MIPS1 and MIPS3, from a merge of
similar design and code by Jason Thorpe and Jonathan Stone.

NOTE: the kernel-stack-switching code and cacheflush() calls in
locore.S still use #ifdef MIPS3 and need more work.

mips/include/cpu.h:
    Add CPUISMIPS3 for run-time tests of what CPU architecture level
    we're running on.

mips/include/locore.h:
    Add declarations of locore cache-size variables for ref/def toolchain.

mips/include/mips1_pte.h:
    mips1 TLB bit definitions.

mips/include/mips3_pte.h:
    mips3 TLB bit definitions.

mips/include/pte.h:
    define accesor macros for TLB bits (e.g., mips_pg_m_bit(),
    that expand to CPU constants if only one CPU arch is configured,
    or to inline functions if both MIPS1 and MIPS3 are configured.

mips/mips/locore_r2000.S:
    Use MIPS1_PG_xxx constants inside mips1-specific code.

mips/mips/locore_r4000.S:
    Use MIPS3_PG_xxx constants inside mips3-specific code.

mips/mips/locore.S:
    Use MIPS1_PG_xxx constants inside mips3-specific code.
    Use MIPS1_PG_xxx constants inside mips1-specific code.
    (Needs more  work!)

mips/mips/{pmap.c,vm_machdep.c,trap.c}, pmax/pmax/machdep.c:
    Use MIPS3_PG_xxx constants inside mips3-specific functions,
         and MIPS1_PG_XXX inside mips1-specific code.
    Otherwise, use mips_pg_XXX_bit() macros where they apply,
    and use "if (CPUISMIPS3) { ... } else {... }" where they don't.

mips/mips/mips_machdep.c:
    Import Michael Hitch's fixes from the pmax locore-init code
    into mips_vector_init().

pmax/pmax/machdep.c:
    Use generic mips_vector_init() locore vector-init function.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jun 16 05:37:40 1997 UTC (27 years, 7 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Garbage-collect MIPS_3K_xxx, MIPS_4K_xxx  outidde mips/include/cpuregs.h:
    MIPS_3K_xxx ->    MIPS1_xxx
    MIPS_4K_xxx ->    MIPS3_xxx

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jun 15 17:47:46 1997 UTC (27 years, 7 months ago) by mhitch
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +19 -13 lines
More merged MIPS1/MIPS3 support.  Added wbflush() and proc_trampoline() to
locore vector.  Display level 2 (secondary) cache size.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Jun 8 10:48:02 1997 UTC (27 years, 7 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
Initialize machine_arch from MACHINE_ARCH.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jun 6 23:26:04 1997 UTC (27 years, 7 months ago) by veego
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -1 lines
Add 'char machine_arch[] = "xxx";' for the new sysctl hw.machine_arch.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Oct 13 21:37:51 1996 UTC (28 years, 3 months ago) by jonathan
Branches: MAIN
CVS tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +40 -40 lines
Rename mips CPU-family locore prefixes for case-consistency:
    mips_r2000_, mips_R2000_ -> mips1_
    mips_r4000_, mips_R4000_ -> mips3_
(which are also, for mnemonic reasons,  consistent with gcc flag usage,
 rather than using mipsI_ and mipsIII_).

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

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Oct 11 00:22:15 1996 UTC (28 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +38 -38 lines
printf -> kprintf

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Oct 7 02:17:37 1996 UTC (28 years, 3 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +15 -15 lines
Use "MIPS1" and "MIPS3" as preprocessor tokens to select {config,compile}-time
support for mips-1 (r2000 family) and mips-3 (r4000 family) CPUs.
Avoids inconsistent use of CPU_R2000 and CPU_R3000.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Aug 13 08:19:50 1996 UTC (28 years, 5 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +73 -47 lines
* Add declarations for MIPS-III (r4000) locore entrypoints.
* Add initialization code to set MIPS-III exception vector and runtime
  jump-table for locore functions.
* Clean up for -Wall, pass 1.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun May 19 00:31:57 1996 UTC (28 years, 8 months ago) by jonathan
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Create mips_machdep.c, which contains Mips-specific functions common
to all mips ports.

So far, this consists of code to initialize a vector, or jump-table, of
pointers to locore functions that require different definitions on different
Mips CPUs (eg., r2000/3000 and r4000); a generic wrapper for setting up
CPU-specific exception vectors; and CPU and FPU identification code.

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>