The NetBSD Project

CVS log for src/sys/arch/powerpc/include/cpu.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.124 / (download) - annotate - [select for diffs], Wed Jul 26 06:36:20 2023 UTC (8 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.123: +3 -3 lines
Diff to previous 1.123 (colored) to selected 1.29 (colored)

Trailing whitespace

Revision 1.123 / (download) - annotate - [select for diffs], Tue Nov 15 12:43:14 2022 UTC (17 months ago) by macallan
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.122: +1 -5 lines
Diff to previous 1.122 (colored) to selected 1.29 (colored)

remove workaround for old clang - it's not needed anymore and caused problems
elsewhere

Revision 1.122 / (download) - annotate - [select for diffs], Mon May 30 14:48:08 2022 UTC (22 months, 2 weeks ago) by rin
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.121: +2 -1 lines
Diff to previous 1.121 (colored) to selected 1.29 (colored)

Export CPU capability of unaligned memory access to userland
as machdep.no_unaligned sysctl(7) variable.

This will be used for ld.so.conf in order to provide strictly-
aligned versions of libc routines.

Revision 1.121 / (download) - annotate - [select for diffs], Mon May 30 14:05:36 2022 UTC (22 months, 2 weeks ago) by rin
Branch: MAIN
Changes since 1.120: +6 -1 lines
Diff to previous 1.120 (colored) to selected 1.29 (colored)

Introduce PPC_NO_UNALIGNED flag to indicate that CPU cannot handle
unaligned memory access, and emulation should be provided to userland.

Revision 1.120 / (download) - annotate - [select for diffs], Tue Nov 2 11:26:04 2021 UTC (2 years, 5 months ago) by ryo
Branch: MAIN
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored) to selected 1.29 (colored)

In order to prevent _mcount() from being recursively called when built with COPTS=-O0,
sprinkle `__always_inline' to make _mcount() be generated as a single function.

Revision 1.119 / (download) - annotate - [select for diffs], Sat Aug 14 17:51:19 2021 UTC (2 years, 8 months ago) by ryo
Branch: MAIN
Changes since 1.118: +5 -1 lines
Diff to previous 1.118 (colored) to selected 1.29 (colored)

Improved the performance of kernel profiling on MULTIPROCESSOR, and possible to get profiling data for each CPU.

In the current implementation, locks are acquired at the entrance of the mcount
internal function, so the higher the number of cores, the more lock conflict
occurs, making profiling performance in a MULTIPROCESSOR environment unusable
and slow. Profiling buffers has been changed to be reserved for each CPU,
improving profiling performance in MP by several to several dozen times.

- Eliminated cpu_simple_lock in mcount internal function, using per-CPU buffers.
- Add ci_gmon member to struct cpu_info of each MP arch.
- Add kern.profiling.percpu node in sysctl tree.
- Add new -c <cpuid> option to kgmon(8) to specify the cpuid, like openbsd.
  For compatibility, if the -c option is not specified, the entire system can be
  operated as before, and the -p option will get the total profiling data for
  all CPUs.

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:34 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.115: +36 -26 lines
Diff to previous 1.115 (colored) next main 1.116 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.118 / (download) - annotate - [select for diffs], Sun Mar 7 14:42:53 2021 UTC (3 years, 1 month ago) by rin
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.117: +6 -4 lines
Diff to previous 1.117 (colored) to selected 1.29 (colored)

For LP64, remove members of struct cpu_info that exist just for
compatible with booke or ibm4xx. Even if MODULAR || _MODULE,
these members are useless for powerpc64.

Revision 1.117 / (download) - annotate - [select for diffs], Wed Feb 24 16:42:38 2021 UTC (3 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.116: +5 -1 lines
Diff to previous 1.116 (colored) to selected 1.29 (colored)

Add a provision for a per-cpu battable.  Each CPU starts with the global
one, but this allows CPUs to temporarily switch to an alternate battable
if needed.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Feb 3 10:37:05 2021 UTC (3 years, 2 months ago) by rin
Branch: MAIN
Changes since 1.115: +27 -23 lines
Diff to previous 1.115 (colored) to selected 1.29 (colored)

Pull out constant definitions inside struct declaration.

Enable CTASSERT(9) for CPUSAVE_SIZE.

Revision 1.115 / (download) - annotate - [select for diffs], Wed Jul 15 08:58:51 2020 UTC (3 years, 9 months ago) by rin
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.114: +3 -1 lines
Diff to previous 1.114 (colored) to selected 1.29 (colored)

Factor out emulation code for m[ft]msr in user mode from oea, and
adjust it for systems without FPU.

Now, it can be used from booke and ibm4xx in order to support fenv(3).

Revision 1.114 / (download) - annotate - [select for diffs], Tue Jul 7 01:39:23 2020 UTC (3 years, 9 months ago) by rin
Branch: MAIN
Changes since 1.113: +2 -1 lines
Diff to previous 1.113 (colored) to selected 1.29 (colored)

Part of PR port-powerpc/55425
openssl fails on FPU emulation for powerpc

Provide machdep.fpu_present sysctl variable like other ports.

Userland can get informed that FPU is absent and emulated in software
(and calculation results may not be correct in bit-to-bit precision).

This variable should be useful even if we could fix FPU emulation;
it is much faster to skip FPU arithmetic in general, rather than
relying upon emulation by kernel via illegal instruction handler.

Revision 1.113 / (download) - annotate - [select for diffs], Mon Jul 6 13:20:55 2020 UTC (3 years, 9 months ago) by rin
Branch: MAIN
Changes since 1.112: +5 -4 lines
Diff to previous 1.112 (colored) to selected 1.29 (colored)

Use (CI_SAVEMAX*CPUSAVE_LEN) as CPUSAVE_SIZE for MODULAR || _MODULE,
since it exceeds 128 (256 for now).

XXX
We should use CTASSERT here, but it conflicts with genassym...

Revision 1.112 / (download) - annotate - [select for diffs], Mon Jul 6 10:50:32 2020 UTC (3 years, 9 months ago) by rin
Branch: MAIN
Changes since 1.111: +1 -2 lines
Diff to previous 1.111 (colored) to selected 1.29 (colored)

Drop unused opt_lockdebug.h.

Revision 1.111 / (download) - annotate - [select for diffs], Sat Jun 27 07:33:51 2020 UTC (3 years, 9 months ago) by macallan
Branch: MAIN
Changes since 1.110: +3 -1 lines
Diff to previous 1.110 (colored) to selected 1.29 (colored)

apply __HIDE_DELAY so zfs and friends at least compile

Revision 1.106.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:49 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.106.2.1: +2 -4 lines
Diff to previous 1.106.2.1 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored) to selected 1.29 (colored)

Merge changes from current as of 20200406

Revision 1.110 / (download) - annotate - [select for diffs], Sun Dec 1 15:34:45 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.109: +2 -2 lines
Diff to previous 1.109 (colored) to selected 1.29 (colored)

Fix false sharing problems with cpu_info.  Identified with tprof(8).
This was a very nice win in my tests on a 48 CPU box.

- Reorganise cpu_data slightly according to usage.
- Put cpu_onproc into struct cpu_info alongside ci_curlwp (now is ci_onproc).
- On x86, put some items in their own cache lines according to usage, like
  the IPI bitmask and ci_want_resched.

Revision 1.109 / (download) - annotate - [select for diffs], Sat Nov 23 19:40:36 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.108: +1 -3 lines
Diff to previous 1.108 (colored) to selected 1.29 (colored)

cpu_need_resched():

- Remove all code that should be MI, leaving the bare minimum under arch/.
- Make the required actions very explicit.
- Pass in LWP pointer for convenience.
- When a trap is required on another CPU, have the IPI set it locally.
- Expunge cpu_did_resched().

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

Sync with HEAD

Revision 1.103.2.5 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:39 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.103.2.4: +1 -2 lines
Diff to previous 1.103.2.4 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored) to selected 1.29 (colored)

Sync with HEAD

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

Revision 1.108 / (download) - annotate - [select for diffs], Wed Aug 22 01:05:23 2018 UTC (5 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.107: +1 -2 lines
Diff to previous 1.107 (colored) to selected 1.29 (colored)

- Cleanup for dynamic sysctl:
  - Remove unused *_NAMES macros for sysctl.
  - Remove unused *_MAXID for sysctls.
- Move CTL_MACHDEP sysctl definitions for m68k into m68k/include/cpu.h and
  use them on all m68k machines.

Revision 1.103.2.4 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:39 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.103.2.3: +2 -2 lines
Diff to previous 1.103.2.3 (colored) to branchpoint 1.103 (colored) to selected 1.29 (colored)

Sync with HEAD

Revision 1.107 / (download) - annotate - [select for diffs], Sun Jul 15 05:16:44 2018 UTC (5 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.106: +2 -2 lines
Diff to previous 1.106 (colored) to selected 1.29 (colored)

Retire ipkdb entirely. The option was removed from the config files
yesterday.

ok kamil christos

Revision 1.103.2.3 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:45 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.103.2.2: +2 -1 lines
Diff to previous 1.103.2.2 (colored) to branchpoint 1.103 (colored) to selected 1.29 (colored)

Sync with HEAD

Revision 1.106 / (download) - annotate - [select for diffs], Fri May 25 23:00:34 2018 UTC (5 years, 10 months ago) by macallan
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.105: +2 -1 lines
Diff to previous 1.105 (colored) to selected 1.29 (colored)

copy HID1 from the boot CPU to secondary CPUs as well on 64bit CPUs
now the 2nd CPU on my G5s runs at full speed

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Mon May 21 04:36:01 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.103.2.1: +3 -1 lines
Diff to previous 1.103.2.1 (colored) to branchpoint 1.103 (colored) to selected 1.29 (colored)

Sync with HEAD

Revision 1.105 / (download) - annotate - [select for diffs], Fri May 4 17:01:29 2018 UTC (5 years, 11 months ago) by macallan
Branch: MAIN
CVS Tags: pgoyette-compat-0521
Changes since 1.104: +3 -1 lines
Diff to previous 1.104 (colored) to selected 1.29 (colored)

save & restore HID4 and HID5, zero SPR_HIOR on 970

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Fri Mar 30 06:20:12 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.103: +5 -1 lines
Diff to previous 1.103 (colored) to selected 1.29 (colored)

Resolve conflicts between branch and HEAD

Revision 1.104 / (download) - annotate - [select for diffs], Thu Mar 22 15:18:05 2018 UTC (6 years ago) by macallan
Branch: MAIN
CVS Tags: pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330
Changes since 1.103: +5 -1 lines
Diff to previous 1.103 (colored) to selected 1.29 (colored)

first step towards G5 SMP:
- only save/restore BATs on CPUs that have them
- treat HID0 as 64bit on 64bit CPUs

Revision 1.102.8.1 / (download) - annotate - [select for diffs], Mon Feb 26 00:19:44 2018 UTC (6 years, 1 month ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.102: +5 -2 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.29 (colored)

Pull up following revision(s) (requested by skrll in ticket #566):
	sys/arch/arm/include/cpu.h: 1.94
	sys/arch/mips/include/cpu.h: 1.122
	sys/arch/powerpc/include/cpu.h: 1.103
	sys/sys/cpu.h: 1.42
CPU_INFO_FOREACH() must always iterate at least the boot cpu.
document this in sys/cpu.h and fix the arm and mips versions
to check ncpu is non zero before using it as an iterator max.
this should fix the new assert in init_main.c.
--
apply the same change for powerpc as mrg did for arm and mips:
CPU_INFO_FOREACH() must always iterate at least the boot cpu.
document this in sys/cpu.h and fix the arm and mips versions
to check ncpu is non zero before using it as an iterator max.
this should fix the new assert in init_main.c.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Dec 17 17:18:34 2017 UTC (6 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.102: +5 -2 lines
Diff to previous 1.102 (colored) to selected 1.29 (colored)

apply the same change for powerpc as mrg did for arm and mips:

CPU_INFO_FOREACH() must always iterate at least the boot cpu.
document this in sys/cpu.h and fix the arm and mips versions
to check ncpu is non zero before using it as an iterator max.

this should fix the new assert in init_main.c.

Revision 1.93.2.5 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:37 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.93.2.4: +9 -1 lines
Diff to previous 1.93.2.4 (colored) next main 1.94 (colored) to selected 1.29 (colored)

update from HEAD

Revision 1.100.6.2 / (download) - annotate - [select for diffs], Mon Dec 5 10:54:57 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.100.6.1: +2 -2 lines
Diff to previous 1.100.6.1 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored) to selected 1.29 (colored)

Sync with HEAD

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:03 2016 UTC (7 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.101: +2 -2 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.29 (colored)

Sync with HEAD

Revision 1.102 / (download) - annotate - [select for diffs], Wed Oct 19 00:08:42 2016 UTC (7 years, 6 months ago) by nonaka
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.101: +2 -2 lines
Diff to previous 1.101 (colored) to selected 1.29 (colored)

Added MSI/MSI-X and interrupt_distribute(9) support for powerpc.

Revision 1.100.6.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:00 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.100: +9 -1 lines
Diff to previous 1.100 (colored) to selected 1.29 (colored)

Sync with HEAD

Revision 1.101 / (download) - annotate - [select for diffs], Fri Jan 23 07:27:05 2015 UTC (9 years, 2 months ago) by nonaka
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.100: +9 -1 lines
Diff to previous 1.100 (colored) to selected 1.29 (colored)

ddb MP support

Revision 1.93.2.4 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:19 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.93.2.3: +27 -8 lines
Diff to previous 1.93.2.3 (colored) to selected 1.29 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.88.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:40:04 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.88.2.3: +29 -10 lines
Diff to previous 1.88.2.3 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.29 (colored)

sync with head.

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

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

Revision 1.96.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:22 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.96.4.1: +22 -3 lines
Diff to previous 1.96.4.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.29 (colored)

sync with head

Revision 1.100 / (download) - annotate - [select for diffs], Mon Mar 24 19:29:59 2014 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.99: +1 -2 lines
Diff to previous 1.99 (colored) to selected 1.29 (colored)

use cpu_{g,s}etmodel

Revision 1.99 / (download) - annotate - [select for diffs], Mon Mar 3 15:36:36 2014 UTC (10 years, 1 month ago) by macallan
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.98: +21 -1 lines
Diff to previous 1.98 (colored) to selected 1.29 (colored)

support ppc601
from scole_mail, ok matt@

Revision 1.98 / (download) - annotate - [select for diffs], Fri Nov 8 03:59:35 2013 UTC (10 years, 5 months ago) by nisimura
Branch: MAIN
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored) to selected 1.29 (colored)


resort the sys/cpu.h way for unused cii iterator in !MULTIPROCESSOR case.

Revision 1.96.4.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:20 2013 UTC (10 years, 7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.96: +7 -7 lines
Diff to previous 1.96 (colored) to selected 1.29 (colored)

sync with head

Revision 1.96.6.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:34 2013 UTC (10 years, 8 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.96: +7 -7 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.29 (colored)

sync with HEAD

Revision 1.97 / (download) - annotate - [select for diffs], Wed Jul 17 23:27:02 2013 UTC (10 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.96: +7 -7 lines
Diff to previous 1.96 (colored) to selected 1.29 (colored)

kcpuset_t changes for the pmap and removal of __cpuset_t

Revision 1.93.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:10 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.93.2.2: +2 -2 lines
Diff to previous 1.93.2.2 (colored) to selected 1.29 (colored)

resync from head

Revision 1.96 / (download) - annotate - [select for diffs], Thu Apr 25 00:08:48 2013 UTC (10 years, 11 months ago) by macallan
Branch: MAIN
CVS Tags: riastradh-drm2-base, khorben-n900
Branch point for: rmind-smpnet, riastradh-drm2
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored) to selected 1.29 (colored)

we can read the timebase register as a 64bit chunk when _ARCH_PPC64 is defined,
not necessarily LP64

Revision 1.93.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:53 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.93.2.1: +2 -1 lines
Diff to previous 1.93.2.1 (colored) to selected 1.29 (colored)

resync with head

Revision 1.88.2.3 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:02 2013 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.88.2.2: +2 -1 lines
Diff to previous 1.88.2.2 (colored) to branchpoint 1.88 (colored) to selected 1.29 (colored)

sync with (a bit old) head

Revision 1.95 / (download) - annotate - [select for diffs], Tue Nov 27 19:24:45 2012 UTC (11 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, agc-symver-base, agc-symver
Changes since 1.94: +2 -1 lines
Diff to previous 1.94 (colored) to selected 1.29 (colored)

Make the 85xx get closer to spinning up the secondary CPUs.
Don't assume TLB1[0] has the mapping for VA/PA 0.
Make sure the TLB1 entries that map physical memory have the M (memory
coherent) bit set.

Revision 1.93.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:01:38 2012 UTC (11 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.93: +3 -2 lines
Diff to previous 1.93 (colored) to selected 1.29 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.88.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:11 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.88.2.1: +5 -3 lines
Diff to previous 1.88.2.1 (colored) to branchpoint 1.88 (colored) to selected 1.29 (colored)

sync with head

Revision 1.94 / (download) - annotate - [select for diffs], Sat Oct 20 14:42:15 2012 UTC (11 years, 6 months ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.93: +3 -2 lines
Diff to previous 1.93 (colored) to selected 1.29 (colored)

Support Cache Protocol 'MEI' with MULTIPROCESSOR.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Jul 28 23:11:00 2012 UTC (11 years, 8 months ago) by matt
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.92: +2 -1 lines
Diff to previous 1.92 (colored) to selected 1.29 (colored)

Fix -fno-common fallout.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Jul 9 17:45:22 2012 UTC (11 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored) to selected 1.29 (colored)

More cleanup.  Use a union (pmap_segtab) and a typedef (pmap_segtab_t).  Add
more functionality from the mips pmap and try to make it more common to ease
the transition for mips in the future.

Revision 1.89.2.2 / (download) - annotate - [select for diffs], Thu May 17 18:24:27 2012 UTC (11 years, 11 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.89.2.1: +3 -2 lines
Diff to previous 1.89.2.1 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored) to selected 1.29 (colored)

Pull up following revision(s) (requested by matt in ticket #251):
	sys/arch/powerpc/powerpc/powerpc_machdep.c: revision 1.64
	sys/arch/powerpc/include/cpu.h: revision 1.90
Add CPU_EXECPROT sysctl so that atf can enable exec permission tests for
PPC Booke.

Revision 1.89.2.1 / (download) - annotate - [select for diffs], Wed May 9 22:47:03 2012 UTC (11 years, 11 months ago) by riz
Branch: netbsd-6
Changes since 1.89: +5 -1 lines
Diff to previous 1.89 (colored) to selected 1.29 (colored)

Pull up following revision(s) (requested by matt in ticket #242):
	sys/arch/powerpc/include/cpu.h: revision 1.91
Don't use global asm for __clang__

Revision 1.88.6.3 / (download) - annotate - [select for diffs], Sun Apr 29 23:04:41 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.88.6.2: +5 -1 lines
Diff to previous 1.88.6.2 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.29 (colored)

sync to latest -current.

Revision 1.88.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:47 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.88: +8 -3 lines
Diff to previous 1.88 (colored) to selected 1.29 (colored)

sync with head

Revision 1.91 / (download) - annotate - [select for diffs], Tue Apr 10 16:57:50 2012 UTC (12 years ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.90: +5 -1 lines
Diff to previous 1.90 (colored) to selected 1.29 (colored)

Don't use global asm for __clang__

Revision 1.88.6.2 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:18 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.88.6.1: +3 -2 lines
Diff to previous 1.88.6.1 (colored) to branchpoint 1.88 (colored) to selected 1.29 (colored)

sync to latest -current.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Mar 16 07:41:54 2012 UTC (12 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8
Changes since 1.89: +3 -2 lines
Diff to previous 1.89 (colored) to selected 1.29 (colored)

Add CPU_EXECPROT sysctl so that atf can enable exec permission tests for
PPC Booke.

Revision 1.88.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:32:54 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored) to selected 1.29 (colored)

merge to -current.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Dec 13 11:03:52 2011 UTC (12 years, 4 months ago) by kiyohara
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored) to selected 1.29 (colored)

Remove white-spaces.

Revision 1.65.22.3 / (download) - annotate - [select for diffs], Fri Oct 14 17:21:26 2011 UTC (12 years, 6 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.65.22.2: +10 -1 lines
Diff to previous 1.65.22.2 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.29 (colored)

Sync with current pulling P2020 and other newer processor support.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Jun 30 00:52:59 2011 UTC (12 years, 9 months ago) by matt
Branch: 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
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored) to selected 1.29 (colored)

Modify mapiodev to take a third argument indicating whether the space
should be prefetchable (true) or not (false).

Revision 1.87 / (download) - annotate - [select for diffs], Wed Jun 29 06:00:17 2011 UTC (12 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.86: +27 -11 lines
Diff to previous 1.86 (colored) to selected 1.29 (colored)

Cleanup hatch names.
Add cpuset_info.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:30 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.76: +125 -147 lines
Diff to previous 1.76 (colored) next main 1.77 (colored) to selected 1.29 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Jun 21 06:32:36 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.85: +3 -1 lines
Diff to previous 1.85 (colored) to selected 1.29 (colored)

Add a common cpu_ast(l, ci) routine.
Add a ci_pmap_asid_cur for BOOKE debugging.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Jun 21 04:21:17 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.84: +6 -13 lines
Diff to previous 1.84 (colored) to selected 1.29 (colored)

Reap the ci_ev_soft* evcnts since every variant implements __HAVE_FAST_SOFTINTS

Revision 1.84 / (download) - annotate - [select for diffs], Mon Jun 20 17:15:38 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.83: +36 -24 lines
Diff to previous 1.83 (colored) to selected 1.29 (colored)

Make struct cpu_info the same size if building MODULAR
kernels or compiling a module.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Jun 20 08:47:12 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.82: +74 -107 lines
Diff to previous 1.82 (colored) to selected 1.29 (colored)

Make more module friendly (part 1).
Don't export frame.h and psl.h to all of the kernel.
add lwp_pc and clkf accessor functions.
whitespace cleanup.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Jun 17 19:04:00 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored) to selected 1.29 (colored)

struct device * -> device_t

Revision 1.81 / (download) - annotate - [select for diffs], Wed Jun 15 15:18:20 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.80: +3 -1 lines
Diff to previous 1.80 (colored) to selected 1.29 (colored)

Move booke_fixup_stubs() to fixup.c and rename it to cpu_fixup_stubs().
This makes it easier for other PPC variants to use it.

Revision 1.80 / (download) - annotate - [select for diffs], Tue Jun 14 22:36:12 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.79: +2 -1 lines
Diff to previous 1.79 (colored) to selected 1.29 (colored)

Take the fast softint support in e500_intr.c and make generic so that it can
be used to provide fast softint for other interrupt implementations.

Revision 1.79 / (download) - annotate - [select for diffs], Mon Jun 13 21:19:01 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.78: +5 -4 lines
Diff to previous 1.78 (colored) to selected 1.29 (colored)

Add __HAVE_CPU_UAREA_ROUTINES support so that uareas will be direct-mapped.
(This avoids the nasty tlb recursion problem on ibm4xx as well on mpc85xx).

Revision 1.78 / (download) - annotate - [select for diffs], Sun Jun 12 16:27:14 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored) to selected 1.29 (colored)

Use mfsprg0 instead of mfsprg r,0

Revision 1.68.2.4 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:04 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.68.2.3: +9 -9 lines
Diff to previous 1.68.2.3 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.29 (colored)

sync with head

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:06:27 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.73: +104 -92 lines
Diff to previous 1.73 (colored) next main 1.74 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Jun 5 16:52:25 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.76: +10 -10 lines
Diff to previous 1.76 (colored) to selected 1.29 (colored)

Remove <machine/atomic.h>; use <sys/atomic.h> instead.
Add <powerpc/cpuset.h> (for mpc85xx pmap).
Add some initial MP code for mpc85xx
Rework ipi code to be common across all ppcs
Change PPC to keep curlwp in %r13 while in the kernel.
Move astpending from cpu_info to mdlwp
Improve cpu_need_resched to be more MP friendly.

Revision 1.68.2.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:14 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.68.2.2: +22 -0 lines
Diff to previous 1.68.2.2 (colored) to branchpoint 1.68 (colored) to selected 1.29 (colored)

sync with head

Revision 1.76 / (download) - annotate - [select for diffs], Wed May 4 04:33:37 2011 UTC (12 years, 11 months ago) by macallan
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.75: +23 -1 lines
Diff to previous 1.75 (colored) to selected 1.29 (colored)

add access functions for the Instruction Cache Throttling Control register
found in 750 and newer CPUs

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:51:37 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.68.2.1: +90 -90 lines
Diff to previous 1.68.2.1 (colored) to branchpoint 1.68 (colored) to selected 1.29 (colored)

sync with head

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Thu Feb 17 11:59:56 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.74: +3 -2 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.29 (colored)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Wed Feb 16 18:42:33 2011 UTC (13 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: uebayasi-xip-base7, jym-xensuspend-nbase, jym-xensuspend-base, bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.74: +3 -2 lines
Diff to previous 1.74 (colored) to selected 1.29 (colored)

Fix CLKF_INTR
Add debug evcnt.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Jan 18 01:02:54 2011 UTC (13 years, 3 months ago) by matt
Branch: MAIN
Branch point for: bouyer-quota2
Changes since 1.73: +77 -88 lines
Diff to previous 1.73 (colored) to selected 1.29 (colored)

Add support for BookE Freescale MPC85xx (e500 core) processors.
Add fast softint support for PowerPC (though only booke uses it).
Redo FPU/VEC support and add e500 SPE support.
Rework trap/intrs to use a common trapframe format.
Support SOFTFLOAT (no hardfloat or fpu emulation) for BookE.

Revision 1.65.22.2 / (download) - annotate - [select for diffs], Mon Jan 17 07:45:59 2011 UTC (13 years, 3 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.65.22.1: +44 -52 lines
Diff to previous 1.65.22.1 (colored) to branchpoint 1.65 (colored) to selected 1.29 (colored)

Add SPE (signal processing engine) support for mpc85xx/booke.  Think of it
as AltiVec-lite (really lite).  Genercize AltiVec support so that it could
the same interface could support SPE as well.  Rework the FPU support along
the same lines.  Move the __asm() to their own XXX_subr.S (altivec, fpu, spe).

Revision 1.65.22.1 / (download) - annotate - [select for diffs], Fri Jan 7 01:59:40 2011 UTC (13 years, 3 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.65: +55 -11 lines
Diff to previous 1.65 (colored) to selected 1.29 (colored)

Add booke support.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Dec 21 20:39:53 2010 UTC (13 years, 4 months ago) by phx
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr
Changes since 1.72: +9 -2 lines
Diff to previous 1.72 (colored) to selected 1.29 (colored)

All ports have to expose 'struct cpu_info' when _KMEMUSER is defined.
We will just expose cpu_info.ci_data for the moment, which is needed for
vmstat(1) to compile. Doing so with the whole cpu_info structure is
problematic, because of imask_t.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Nov 13 13:13:34 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: MAIN
CVS Tags: uebayasi-xip-base6
Changes since 1.71: +3 -2 lines
Diff to previous 1.71 (colored) to selected 1.29 (colored)

Include sys/device_if.h instead of sys/device.h.  machine/cpu.h is
one of the lower-most definitions.  Relying on the huge sys/device.h
is not a good idea.

Revision 1.67.2.2 / (download) - annotate - [select for diffs], Fri Oct 22 07:21:29 2010 UTC (13 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.67.2.1: +2 -0 lines
Diff to previous 1.67.2.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored) to selected 1.29 (colored)

Sync with HEAD (-D20101022).

Revision 1.71 / (download) - annotate - [select for diffs], Wed Oct 20 18:52:33 2010 UTC (13 years, 6 months ago) by phx
Branch: MAIN
CVS Tags: uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.70: +3 -1 lines
Diff to previous 1.70 (colored) to selected 1.29 (colored)

Support sysctl machdep.cpu_speed for 7447A and 7448 based Macs. On those
machines the CPU's DFS (Dynamic Frequency Switching) feature is used instead
of a GPIO to control the speed.
Two new functions in powerpc/oea/cpu_subr.c were introduced to support
reading and writing of DFS: cpu_get_dfs() and cpu_set_dfs(). Also works
for multiple CPUs, but not before interrupts are enabled.

Revision 1.64.4.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:52:34 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.64.4.2: +26 -2 lines
Diff to previous 1.64.4.2 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:03 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.68: +26 -2 lines
Diff to previous 1.68 (colored) to selected 1.29 (colored)

sync with head

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:39:43 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.67: +41 -2 lines
Diff to previous 1.67 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Apr 24 09:39:57 2010 UTC (13 years, 11 months ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored) to selected 1.29 (colored)

Support 64-bit imask for powerpc/pic.

Revision 1.69 / (download) - annotate - [select for diffs], Thu Mar 18 13:47:05 2010 UTC (14 years, 1 month ago) by kiyohara
Branch: MAIN
Changes since 1.68: +25 -1 lines
Diff to previous 1.68 (colored) to selected 1.29 (colored)

Support PowerPC 405EX/EXr.
  1. Add some new source and header files.
     (MAL(split) and RGMII(new) relations for EMAC)
  2. Create dcr4xx.h.  Its moved from dcr405gp.h.  Also remove dcr405xx.h.
  3. intr.c supports MULTIUIC with virtual-irq.  likes to oea.
     support 32-virq/128-hwirq.
  4. multiple emac support.
  5. WALNUT and VIRTEX_* includes arch/powerpc/conf/files.ibm4xx.
  6. WALNUT pci uses arch/powerpc/ibm4xx/pci/.

Revision 1.64.4.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:02:50 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.64.4.1: +16 -4 lines
Diff to previous 1.64.4.1 (colored) to branchpoint 1.64 (colored) to selected 1.29 (colored)

sync with head

Revision 1.68 / (download) - annotate - [select for diffs], Tue Mar 9 22:41:03 2010 UTC (14 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.67: +16 -1 lines
Diff to previous 1.67 (colored) to selected 1.29 (colored)

Add BookE modifications to cpu_info

Revision 1.67 / (download) - annotate - [select for diffs], Sat Oct 24 20:03:56 2009 UTC (14 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip
Changes since 1.66: +1 -2 lines
Diff to previous 1.66 (colored) to selected 1.29 (colored)

Provide cpu_lwp_free* stubs in vax and powerpc.
Reported by <he>.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:01 2009 UTC (14 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.65: +1 -3 lines
Diff to previous 1.65 (colored) to selected 1.29 (colored)

Remove uarea swap-out functionality:

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

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

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

Revision 1.62.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:32 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.62.6.1: +4 -3 lines
Diff to previous 1.62.6.1 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:35 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored) next main 1.65 (colored) to selected 1.29 (colored)

sync with head.

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

sync with head.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Apr 30 23:21:29 2008 UTC (15 years, 11 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: matt-nb5-pq3
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored) to selected 1.29 (colored)

add dummy argument to cpu_did_resched() so kern_synch.c is happy again

Revision 1.64 / (download) - annotate - [select for diffs], Tue Apr 8 02:33:03 2008 UTC (16 years ago) by garbled
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored) to selected 1.29 (colored)

SMP support for ofppc.  (finally)  Much thanks to Matt Thomas for help in
figuring out all the crazy nuances of getting this working, and to
Michael Lorenz for testing/fixing my changes on macppc.  Tested with a
quad-proc 7044-270.
Summary of changes:

Bumped CPU_MAXNUM to 16 on ofppc.
Added md_* routines to ofppc/cpu.c, to sync the timebase, and awaken the CPUs.
Fixed a bug in the test for a 64bit bridge cpu early in locore.S
Added code to set the interrupt priority for all CPUs with an openpic.
Change rtas to probe before cpus, to allow use of the rtas freeze/thaw
timebase code routines.
Fix CPU_INFO_FOREACH macro to iterate through detected cpus, not CPU_MAXNUM.
Change most uses of ci_cpuid to ci_index, to deal with CPUs that do not allow
writing to SPR_PIR.  Don't write SPR_PIR unless the secondary cpu identifies
itself as 0.
Change the hatchstack/interrupt stack allocations to allocate a 8192byte
interrupt stack, and a 4096 byte hatch stack, align them to 16 bytes, and
allocate them no lower than 0x10000.  Allocate them separately to prevent the
hatch stack corrupting the interrupt stack later on.
If the CPU is a 64bit cpu, copy SPR_ASR in cpu_hatch()
Set the idle stack to ci->ci_data.cpu_idlelwp->l_addr->u_pcb.pcb_sp.
Add OF_start_cpu().  Add a routine to ofwoea_initppc to spin up secondary
procs early, and place them into a spinloop waiting for the hatch routines
to be ready.
Modify the ipi routines to deal with openpics that reverse byte order on read
from an ipi register. (such as on the 7044)
Change the rtas setup to allocate the rtas physical base address above
the kernel, to avoid mucking up the hatch/interrupt stacks.

Revision 1.62.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:23 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.62: +1 -13 lines
Diff to previous 1.62 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:02 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.62: +1 -13 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.58.10.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:17 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.58.10.2: +10 -17 lines
Diff to previous 1.58.10.2 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored) to selected 1.29 (colored)

sync with HEAD

Revision 1.44.6.8 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:22 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.44.6.7: +1 -13 lines
Diff to previous 1.44.6.7 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Feb 27 18:26:16 2008 UTC (16 years, 1 month ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.62: +1 -13 lines
Diff to previous 1.62 (colored) to selected 1.29 (colored)

Remove CTL_MACHDEP_NAMES, it's not used anywhere.

Ok by martin@.

Revision 1.59.2.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:58 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.59.2.1: +10 -5 lines
Diff to previous 1.59.2.1 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.44.6.7 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:28 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.44.6.6: +10 -5 lines
Diff to previous 1.44.6.6 (colored) to branchpoint 1.44 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Feb 5 18:52:55 2008 UTC (16 years, 2 months ago) by garbled
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.61: +7 -4 lines
Diff to previous 1.61 (colored) to selected 1.29 (colored)

Replace as much of the hardcoded CACHELINESIZE with
curcpu()->ci_ci.dcache_line_size as I can.  With this change, an ofppc kernel
compiled with both PPC_OEA and PPC_OEA64_BRIDGE defined, boots.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Feb 5 18:10:46 2008 UTC (16 years, 2 months ago) by garbled
Branch: MAIN
Changes since 1.60: +4 -2 lines
Diff to previous 1.60 (colored) to selected 1.29 (colored)

Rewrite a big chunk of the pmap and locore code for powerpc to better
deal with the 64bit bridge mode.  pmap changes by Matt Thomas, rest by myself.

Change pmap.c to work similar to exec_elf.c to allow us to compile in
multiple pmaps to a single kernel.  This allows the pmap for bridge64 to
co-exist with the 32bit pmap.

Yank __HAVE_PMAP_PHYSSEG from all the oea code.

Add a new global, "oeacpufeat", which is used early in locore to determine
certain cpu features.  This allows us to conditionalize code early in the boot
for certain CPUs that have special needs.

Yank most of the ifdef PPC_OEA_BRIDGE64 code from almost every file it was
found in.  Some of it seemed incorrect, and my 7044 booted just fine
without it.  It would appear that the bridge cpus treat BAT instructions
as nops, so they seem to be safe.

In ofppc, check the oeacpufeat, and if we are on a 64bit proc, clear
MSR[SF], and ASR[V].

With all of these changes, a kernel with both PPC_OEA and PPC_OEA_BRIDGE64
will boot on the POWERIII-2 cpu.  However, it will not yet boot on a 32bit
cpu, because of CACHELINESIZE.  Work remains to be done there to fix that.

Revision 1.58.10.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:47:48 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.58.10.1: +2 -1 lines
Diff to previous 1.58.10.1 (colored) to branchpoint 1.58 (colored) to selected 1.29 (colored)

sync with HEAD

Revision 1.58.8.2 / (download) - annotate - [select for diffs], Sun Dec 9 19:35:59 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.58.8.1: +2 -1 lines
Diff to previous 1.58.8.1 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:17:38 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.44.6.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:25:53 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.44.6.5: +2 -1 lines
Diff to previous 1.44.6.5 (colored) to branchpoint 1.44 (colored) to selected 1.29 (colored)

sync with head

Revision 1.55.2.4 / (download) - annotate - [select for diffs], Mon Dec 3 18:38:20 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.55.2.3: +2 -1 lines
Diff to previous 1.55.2.3 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Dec 3 15:34:12 2007 UTC (16 years, 4 months ago) by ad
Branch: 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, matt-armv6-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored) to selected 1.29 (colored)

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.58.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:20:32 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.58: +26 -1 lines
Diff to previous 1.58 (colored) to selected 1.29 (colored)

sync with HEAD

Revision 1.44.6.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:27:44 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.44.6.4: +26 -1 lines
Diff to previous 1.44.6.4 (colored) to branchpoint 1.44 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.58.8.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:43:15 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.58: +26 -1 lines
Diff to previous 1.58 (colored) to selected 1.29 (colored)

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.58.14.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:36:25 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.58: +26 -1 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.55.2.3 / (download) - annotate - [select for diffs], Tue Oct 23 20:14:09 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.55.2.2: +26 -1 lines
Diff to previous 1.55.2.2 (colored) to branchpoint 1.55 (colored) to selected 1.29 (colored)

Sync with head.

Revision 1.58.12.1 / (download) - annotate - [select for diffs], Thu Oct 18 08:32:37 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.58: +26 -1 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Oct 17 19:56:40 2007 UTC (16 years, 6 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.58: +26 -1 lines
Diff to previous 1.58 (colored) to selected 1.29 (colored)

Merge the ppcoea-renovation branch to HEAD.

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

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

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

Revision 1.55.10.5 / (download) - annotate - [select for diffs], Thu Oct 11 18:51:53 2007 UTC (16 years, 6 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.55.10.4: +25 -1 lines
Diff to previous 1.55.10.4 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.29 (colored)

Move a bunch of the macppc SMP code out of macppc, and down into the
generic OEA code.  Add a set of md callbacks into these shared routines,
that any oeappc SMP machine needs to provide.  This allows for generally
shared SMP startup code, but still allows for machine-specific
differences in the setup and kicking of the new CPU.

Convert macppc to this new layout.  Tested by Macallan.

Add an initial attempt at SMP to prep.  Tested on UP machine only,
untested on SMP yet.

Revision 1.55.10.4 / (download) - annotate - [select for diffs], Thu Oct 4 18:23:39 2007 UTC (16 years, 6 months ago) by macallan
Branch: ppcoea-renovation
Changes since 1.55.10.3: +2 -1 lines
Diff to previous 1.55.10.3 (colored) to branchpoint 1.55 (colored) to selected 1.29 (colored)

add event counters for IPIs received on each CPU

Revision 1.44.6.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:28:58 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.44.6.3: +12 -7 lines
Diff to previous 1.44.6.3 (colored) to branchpoint 1.44 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.55.10.3 / (download) - annotate - [select for diffs], Thu Aug 2 05:34:16 2007 UTC (16 years, 8 months ago) by macallan
Branch: ppcoea-renovation
Changes since 1.55.10.2: +0 -0 lines
Diff to previous 1.55.10.2 (colored) to branchpoint 1.55 (colored) to selected 1.29 (colored)

sync with HEAD

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:01:27 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.55: +11 -6 lines
Diff to previous 1.55 (colored) next main 1.56 (colored) to selected 1.29 (colored)

Sync with head.

Revision 1.55.10.2 / (download) - annotate - [select for diffs], Tue Jun 26 18:13:25 2007 UTC (16 years, 9 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.55.10.1: +5 -3 lines
Diff to previous 1.55.10.1 (colored) to branchpoint 1.55 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Sat Jun 9 23:55:22 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.55.2.1: +5 -3 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored) to selected 1.29 (colored)

Sync with head.

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jun 1 14:23:50 2007 UTC (16 years, 10 months ago) by nisimura
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.57: +5 -3 lines
Diff to previous 1.57 (colored) to selected 1.29 (colored)

- add booted_device and booted_kernel sysctl nodes to let userland know
  about runtime environment.

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Sun May 27 12:27:57 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.55: +7 -4 lines
Diff to previous 1.55 (colored) to selected 1.29 (colored)

Sync with head.

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

Update to HEAD.

Revision 1.57 / (download) - annotate - [select for diffs], Fri May 18 11:16:27 2007 UTC (16 years, 11 months ago) by rjs
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored) to selected 1.29 (colored)

Fix for yamt-idlelwp merge.

Revision 1.56 / (download) - annotate - [select for diffs], Thu May 17 14:51:26 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.55: +8 -5 lines
Diff to previous 1.55 (colored) to selected 1.29 (colored)

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.54.2.3 / (download) - annotate - [select for diffs], Sat Apr 7 17:53:39 2007 UTC (17 years ago) by matt
Branch: yamt-idlelwp
Changes since 1.54.2.2: +3 -2 lines
Diff to previous 1.54.2.2 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored) to selected 1.29 (colored)

Add cpu_did_resched()

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Tue Apr 3 15:20:09 2007 UTC (17 years ago) by matt
Branch: yamt-idlelwp
Changes since 1.54.2.1: +6 -4 lines
Diff to previous 1.54.2.1 (colored) to branchpoint 1.54 (colored) to selected 1.29 (colored)

Adapt powerpc to yamt-idlelwp.  Nuke cpu_setfunc.
Don't define _HAVE_BITENDIAN_BITOPS.  Misc cleanups.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:50:06 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Mar 4 06:00:37 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, ppcoea-renovation, mjf-ufs-trans
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored) to selected 1.29 (colored)

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

Revision 1.44.6.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:07:53 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.44.6.2: +6 -9 lines
Diff to previous 1.44.6.2 (colored) to branchpoint 1.44 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Feb 16 02:53:50 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.53: +1 -6 lines
Diff to previous 1.53 (colored) to selected 1.29 (colored)

Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:10 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.52: +6 -4 lines
Diff to previous 1.52 (colored) to selected 1.29 (colored)

Merge newlock2 to head.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Sun Jan 28 08:59:45 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.52: +6 -4 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.29 (colored)

powerpc changes.

Revision 1.44.6.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:46:44 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.44.6.1: +11 -5 lines
Diff to previous 1.44.6.1 (colored) to branchpoint 1.44 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.46.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:42:28 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.46: +47 -14 lines
Diff to previous 1.46 (colored) next main 1.47 (colored) to selected 1.29 (colored)

sync with head

Revision 1.47.2.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:23:27 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.47.2.2: +2 -1 lines
Diff to previous 1.47.2.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Aug 31 18:18:17 2006 UTC (17 years, 7 months ago) by matt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Branch point for: newlock2
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored) to selected 1.29 (colored)

Add unmapiodev.

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:42:40 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.47.2.1: +10 -5 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) to selected 1.29 (colored)

sync with head

Revision 1.51 / (download) - annotate - [select for diffs], Sat Aug 5 21:26:48 2006 UTC (17 years, 8 months ago) by sanjayl
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.50: +6 -2 lines
Diff to previous 1.50 (colored) to selected 1.29 (colored)

1st cut of Powermac G5 support (uses bridge mode).

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:01 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.49: +5 -4 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.29 (colored)

Merge from HEAD.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jun 30 17:54:51 2006 UTC (17 years, 9 months ago) by freza
Branch: MAIN
Changes since 1.49: +5 -4 lines
Diff to previous 1.49 (colored) to selected 1.29 (colored)

Bring ibm4xx interrupt code up to date:

- generic soft interrupts (ie. use powerpc/softintr.c)
- interrupt event counters (using the ones from powerpc/cpu.h:cpu_info
  where appropriate)
- cleanup ibm4xx_intr.h, move implementation details to intr.c

Convert all affected evbppc platforms.

OK by simonb@, some points discussed with matt@

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:45:13 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.47: +28 -1 lines
Diff to previous 1.47 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.44.6.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:55:03 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.44: +37 -10 lines
Diff to previous 1.44 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.47.8.1 / (download) - annotate - [select for diffs], Mon Jun 19 03:44:53 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.47: +28 -1 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.29 (colored)

Sync with head.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jun 13 18:24:37 2006 UTC (17 years, 10 months ago) by freza
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart
Changes since 1.48: +10 -1 lines
Diff to previous 1.48 (colored) to selected 1.29 (colored)

Merge multiple definitions of cntlzw() ("count leading zeros")
instruction-wrapper to <powerpc/cpu.h>.

OK by briggs@

Revision 1.46.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:35:16 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.46.6.1: +19 -1 lines
Diff to previous 1.46.6.1 (colored) next main 1.47 (colored) to selected 1.29 (colored)

Sync with head.

Revision 1.48 / (download) - annotate - [select for diffs], Tue May 30 22:44:13 2006 UTC (17 years, 10 months ago) by freza
Branch: MAIN
CVS Tags: simonb-timecounters-base
Changes since 1.47: +19 -1 lines
Diff to previous 1.47 (colored) to selected 1.29 (colored)

Remove duplicate definitions of mfdcr()/mtdcr() in favor of a single one
in cpu.h

OK Matt Thomas

Revision 1.46.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:37:53 2006 UTC (18 years ago) by simonb
Branch: simonb-timecounters
Changes since 1.46: +10 -10 lines
Diff to previous 1.46 (colored) to selected 1.29 (colored)

Sync with head.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:38:44 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.46: +10 -10 lines
Diff to previous 1.46 (colored) next main 1.47 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Feb 16 20:17:14 2006 UTC (18 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, chap-midi
Changes since 1.46: +10 -10 lines
Diff to previous 1.46 (colored) to selected 1.29 (colored)

Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Dec 24 20:07:28 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.45: +19 -19 lines
Diff to previous 1.45 (colored) to selected 1.29 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Dec 11 12:18:43 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.44: +1 -1 lines
Diff to previous 1.44 (colored) to selected 1.29 (colored)

merge ktrace-lwp.

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:20 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.29 (colored)

sync with -current

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:39 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored) next main 1.44 (colored) to selected 1.29 (colored)

sync with head.

Revision 1.30.2.6 / (download) - annotate - [select for diffs], Fri Feb 4 11:44:48 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.30.2.5: +2 -1 lines
Diff to previous 1.30.2.5 (colored) next main 1.31 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Feb 3 14:47:09 2005 UTC (19 years, 2 months ago) by briggs
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored) to selected 1.29 (colored)

Keep track of the CPU's current speed (in kHz) in the cpu info structure,
if we can get it.  May want to expand this in the future to include min
and max speeds for systems where we can adjust the speed.

Revision 1.30.2.5 / (download) - annotate - [select for diffs], Mon Jan 24 08:34:27 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.30.2.4: +2 -1 lines
Diff to previous 1.30.2.4 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jan 19 22:22:56 2005 UTC (19 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base
Branch point for: yamt-km
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored) to selected 1.29 (colored)

Split the hw-dependent powermanglement into its own function and make
Idle call that.  Add a ci_idlespin function pointer to cpu_info.
Update INIT_CPUINFO to initialize it to a naked 'blr' instruction.
In oea/cpu_subr.c, add cpu_idlespin and make ci_idlespin point to it.

Revision 1.30.2.4 / (download) - annotate - [select for diffs], Fri Sep 24 10:53:17 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.30.2.3: +3 -7 lines
Diff to previous 1.30.2.3 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Sep 22 11:32:03 2004 UTC (19 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.41: +3 -7 lines
Diff to previous 1.41 (colored) to selected 1.29 (colored)

move some per-cpu data definitions to MI place so that they can be modified
without touching all ports.  discussed on tech-kern@.

Revision 1.30.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:20:41 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.30.2.2: +1 -1 lines
Diff to previous 1.30.2.2 (colored) to selected 1.29 (colored)

Fix the sync with head I botched.

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:39:11 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.30.2.1: +0 -0 lines
Diff to previous 1.30.2.1 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:39:29 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.30: +29 -13 lines
Diff to previous 1.30 (colored) to selected 1.29 (colored)

Sync with HEAD

Revision 1.41 / (download) - annotate - [select for diffs], Sun Jun 6 10:45:06 2004 UTC (19 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored) to selected 1.29 (colored)

Mark cr0 as clobbered in mfrtc().

Revision 1.40 / (download) - annotate - [select for diffs], Tue Feb 17 22:03:52 2004 UTC (20 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.39: +2 -4 lines
Diff to previous 1.39 (colored) to selected 1.29 (colored)

Don't waste space on likely unused sysmon structure.
Instead malloc them as needed.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jan 4 11:33:30 2004 UTC (20 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.38: +1 -2 lines
Diff to previous 1.38 (colored) to selected 1.29 (colored)

Rearrange process exit path to avoid need to free resources from different
process context ('reaper').

From within the exiting process context:
* deactivate pmap and free vmspace while we can still block
* introduce MD cpu_lwp_free() - this cleans all MD-specific context (such
  as FPU state), and is the last potentially blocking operation;
  all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free()
* process is now immediatelly marked as zombie and made available for pickup
  by parent; the remaining last lwp continues the exit as fully detached
* MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same
  for both 'process' and 'lwp' exit

uvm_lwp_exit() is modified to never block; the u-area memory is now
always just linked to the list of available u-areas. Introduce (blocking)
uvm_uarea_drain(), which is called to release the excessive u-area memory;
this is called by parent within wait4(), or by pagedaemon on memory shortage.
uvm_uarea_free() is now private function within uvm_glue.c.

MD process/lwp exit code now always calls lwp_exit2() immediatelly after
switching away from the exiting lwp.

g/c now unneeded routines and variables, including the reaper kernel thread

Revision 1.38 / (download) - annotate - [select for diffs], Fri Nov 21 18:07:29 2003 UTC (20 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.37: +3 -1 lines
Diff to previous 1.37 (colored) to selected 1.29 (colored)

Restore ci_curpm since it re-enables 603 to working state.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Sep 3 21:33:31 2003 UTC (20 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.36: +6 -2 lines
Diff to previous 1.36 (colored) to selected 1.29 (colored)

Move CLKF_BASEPRI to machine specific <intr.h> file since it depends on
the encoding of the spl for the port.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Aug 18 22:10:33 2003 UTC (20 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored) to selected 1.29 (colored)

Not all PPC ports (e.g. macppc) equate IPL_NONE with 0.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Aug 12 05:06:53 2003 UTC (20 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.34: +1 -3 lines
Diff to previous 1.34 (colored) to selected 1.29 (colored)

Nuke ci_curpm and curpm.  Nuke pcb_pmreal.  Those were use for spill stacks
and those no longer exist.  for few uses that need CURPM, use CURPCB/PCB_PM

Revision 1.34 / (download) - annotate - [select for diffs], Fri Aug 8 07:14:26 2003 UTC (20 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.33: +1 -2 lines
Diff to previous 1.33 (colored) to selected 1.29 (colored)

Nuke ci_spillstk/CI_SPILLSTK.  No longer needed.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Aug 4 22:26:59 2003 UTC (20 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored) to selected 1.29 (colored)

Make that OEA based kernels can properly deal with kernel ISI faults.  Now
that LKMs are supported, it is possible for a LKM page to be "outspilled"
resulting in a possible ISI fault.  Try to spill the page back in.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Aug 2 19:35:26 2003 UTC (20 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.31: +20 -5 lines
Diff to previous 1.31 (colored) to selected 1.29 (colored)

Add symbolic offsets for what's in cpu save locations.
Add a PPC64 variant of mftb

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jul 25 10:12:45 2003 UTC (20 years, 9 months ago) by scw
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) to selected 1.29 (colored)

Switch ibm4xx over to using the more flexible powerpc bus_space/bus_dma code.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Mar 13 17:30:38 2003 UTC (21 years, 1 month ago) by matt
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.29: +10 -10 lines
Diff to previous 1.29 (colored)

Use __asm & __volatile to make lint(1) happy.

Revision 1.29 / (download) - annotate - [selected], Tue Mar 11 10:40:16 2003 UTC (21 years, 1 month ago) by hannken
Branch: MAIN
Changes since 1.28: +22 -4 lines
Diff to previous 1.28 (colored)

Add support for the IBM 403GCX cpu. Enabled with "options PPC_IBM403".

  - different set of device control registers.
  - non-standard access to the time base.
  - 16 byte cache lines.

Approved by: Eduardo Horvath <eeh@netbsd.org>

Revision 1.28 / (download) - annotate - [select for diffs], Tue Mar 4 07:48:09 2003 UTC (21 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored) to selected 1.29 (colored)

Add some missing volatiles.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Feb 10 04:01:37 2003 UTC (21 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.26: +9 -11 lines
Diff to previous 1.26 (colored) to selected 1.29 (colored)

Only include kernel headers if _KERNEL is defined.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Feb 3 17:10:01 2003 UTC (21 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.25: +6 -6 lines
Diff to previous 1.25 (colored) to selected 1.29 (colored)

Rename PPC_MPC6XX to PPC_OEA (and any mpc6xx reference to oea).

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 2 20:43:23 2003 UTC (21 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.24: +32 -34 lines
Diff to previous 1.24 (colored) to selected 1.29 (colored)

Perform a rototill of the powerpc code.  Mandate use of SPRG0 to store
a pointer to current cpu's cpu_info structure.  Use cpu_info for
intstk,intr_depth,still_stk,idle_pcb,curpcb,curlwp,etal even on
non-MULTIPROCESSOR machines.  Add common macros GET_CPUINFO and
INIT_CPUINFO to get and initialize the cpu_info struct on startup.  Make
ibm4xx use the standard <powerpc/frame.h>.  Use IFRAME_xx in ibm4xx
trap_subr.S instead of explicit magic offsets.  Move INTSTK and SPILLSTK
to std.<platform>.  Change faultbuf to a struct instead of an array.

On MPC6XX cpus, stop using the vector page for temporary space and use
reserved space in cpu_info.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jan 22 21:05:50 2003 UTC (21 years, 3 months ago) by kleink
Branch: MAIN
Changes since 1.23: +24 -1 lines
Diff to previous 1.23 (colored) to selected 1.29 (colored)

Add mfrtcl() and mfrtc(), similar to mftbl() and mftb().

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jan 18 06:23:29 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +7 -6 lines
Diff to previous 1.22 (colored) to selected 1.29 (colored)

Merge the nathanw_sa branch.

Revision 1.10.6.13 / (download) - annotate - [select for diffs], Wed Dec 11 06:11:41 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.10.6.12: +7 -7 lines
Diff to previous 1.10.6.12 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored) to selected 1.29 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Nov 25 01:31:12 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.21: +7 -7 lines
Diff to previous 1.21 (colored) to selected 1.29 (colored)

No newlines in string constants.

Revision 1.10.6.12 / (download) - annotate - [select for diffs], Fri Oct 18 02:39:31 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.10.6.11: +2 -2 lines
Diff to previous 1.10.6.11 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

Catch up to -current.

Revision 1.8.2.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:35:19 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.8.2.5: +2 -2 lines
Diff to previous 1.8.2.5 (colored) next main 1.9 (colored) to selected 1.29 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.21 / (download) - annotate - [select for diffs], Thu Sep 26 01:13:32 2002 UTC (21 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored) to selected 1.29 (colored)

In mftb(), make sure we say we are clobbering cr0.

Revision 1.8.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:39:14 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.8.2.4: +94 -13 lines
Diff to previous 1.8.2.4 (colored) to selected 1.29 (colored)

sync kqueue branch with HEAD

Revision 1.15.2.3 / (download) - annotate - [select for diffs], Sat Aug 31 13:45:46 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.15.2.2: +61 -3 lines
Diff to previous 1.15.2.2 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.29 (colored)

catch up with -current.

Revision 1.10.6.11 / (download) - annotate - [select for diffs], Tue Aug 27 23:45:15 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.10.6.10: +5 -5 lines
Diff to previous 1.10.6.10 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

Catch up to -current.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Aug 14 15:41:57 2002 UTC (21 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored) to selected 1.29 (colored)

Prepare for PPC64.  Use register_t for mtmsr/mfmsr since the msr on PPC64
is 64bits wide.  Define proper types for PPC64 if _LP64 is defined.

Revision 1.10.6.10 / (download) - annotate - [select for diffs], Tue Aug 6 22:47:09 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.10.6.9: +35 -1 lines
Diff to previous 1.10.6.9 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

Catch up with powerpc rototilling.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Aug 6 06:14:37 2002 UTC (21 years, 8 months ago) by chs
Branch: MAIN
Changes since 1.18: +35 -1 lines
Diff to previous 1.18 (colored) to selected 1.29 (colored)

move more inlines to cpu.h: mftb(), mftbl() and mfpvr().
(the mftb() in pmap.c only wanted the lower 32 bits, so that's now mftbl()).

Revision 1.10.6.9 / (download) - annotate - [select for diffs], Thu Aug 1 04:03:21 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.10.6.8: +2 -2 lines
Diff to previous 1.10.6.8 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

LWPify.

Revision 1.10.6.8 / (download) - annotate - [select for diffs], Thu Aug 1 02:43:03 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.10.6.7: +59 -14 lines
Diff to previous 1.10.6.7 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

Catch up to -current.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jul 28 07:02:29 2002 UTC (21 years, 8 months ago) by chs
Branch: MAIN
Changes since 1.17: +26 -2 lines
Diff to previous 1.17 (colored) to selected 1.29 (colored)

define CPU_INFO iterators so that the CPU-states sysctl works for MP.

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Sun Jul 21 13:00:47 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.15.2.1: +4 -2 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored) to selected 1.29 (colored)

catch up with -current.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 16 23:04:20 2002 UTC (21 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.16: +4 -2 lines
Diff to previous 1.16 (colored) to selected 1.29 (colored)

Add machdep.powerpc sysctl.  Change the default value of powersave to -1
(< 0 mean no powersave available).  Enable powersave by default for
750/7400/7410 but leave if off for 7450/7455.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Tue Jul 16 13:09:57 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.15: +32 -11 lines
Diff to previous 1.15 (colored) to selected 1.29 (colored)

catch up with -current.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jul 5 18:45:21 2002 UTC (21 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.15: +32 -11 lines
Diff to previous 1.15 (colored) to selected 1.29 (colored)

Peform a rototill over the powerpc-based ports.

Move the trap/vector initialization for MPC6xx ports to mpc6xx_machdep.c
Also move softnet, install_extintr, mapiodev, kvtop.  Add common BAT
initialization code.

Add user Altivec support.

Fix calls to OF_call_method in macppc/macppc/machdep.c.

Use ci_fpuproc in cpu_info instead of separate fpuproc.

Add separate syscall.c and defined __HAVE_SYSCALL_INTERN.

Revision 1.10.6.7 / (download) - annotate - [select for diffs], Mon Jun 24 22:07:04 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.10.6.6: +5 -5 lines
Diff to previous 1.10.6.6 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

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.8.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:39:40 2002 UTC (21 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.8.2.3: +2 -2 lines
Diff to previous 1.8.2.3 (colored) to selected 1.29 (colored)

catch up with -current on kqueue branch

Revision 1.10.6.6 / (download) - annotate - [select for diffs], Mon Apr 1 07:42:03 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.10.6.5: +25 -3 lines
Diff to previous 1.10.6.5 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.15 / (download) - annotate - [select for diffs], Tue Mar 26 21:20:24 2002 UTC (22 years ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored) to selected 1.29 (colored)

Use size_t in prototype (so this will be LP64 clean for PPC64 someday).
Calculate len separately for icache & dcache in case each has different
cacheline widths.  Make the code for both loops the same except for the
dcbst/icbi.  Deal with sizes >=2GB properly (like that'll happen but ...)

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Sat Mar 16 15:59:16 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.8.2.2: +24 -2 lines
Diff to previous 1.8.2.2 (colored) to selected 1.29 (colored)

Catch up with -current.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 13 00:38:13 2002 UTC (22 years, 1 month ago) by eeh
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.13: +21 -2 lines
Diff to previous 1.13 (colored) to selected 1.29 (colored)

Add cache_info to cpu_info which provides details about D$ and I$
sizes and line sizes.  This is needed for cache flusing, clearing
memory, and several other operations.  This information is accessible
from userland through a new CPU_CACHEINFO sysctl.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Mar 6 06:37:17 2002 UTC (22 years, 1 month ago) by nathanw
Branch: MAIN
CVS Tags: newlock-base, newlock
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored) to selected 1.29 (colored)

Move #include <dev/sysmon/sysmonvar.h> inside #ifdef _KERNEL.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 3 07:09:09 2002 UTC (22 years, 1 month ago) by nathanw
Branch: MAIN
Changes since 1.11: +5 -1 lines
Diff to previous 1.11 (colored) to selected 1.29 (colored)

Add sysmon data structures to struct cpu_info.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:48:01 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.8.2.1: +5 -3 lines
Diff to previous 1.8.2.1 (colored) to selected 1.29 (colored)

Sync kqueue branch with -current.

Revision 1.10.6.5 / (download) - annotate - [select for diffs], Tue Jan 8 00:27:10 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.10.6.4: +5 -3 lines
Diff to previous 1.10.6.4 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

Catch up to -current.

Revision 1.10.6.4 / (download) - annotate - [select for diffs], Sat Dec 8 08:22:43 2001 UTC (22 years, 4 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.10.6.3: +2 -1 lines
Diff to previous 1.10.6.3 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

Add a cpu_proc_fork(), called from uvm_proc_fork(), which takes care
of machine-dependent handling a fork() time (this is different from
forking the actual context in an LWP world).  #define it away on
platforms which do not need it.

Problem noted by Gregory McGarry.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Dec 5 05:02:10 2001 UTC (22 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.10: +5 -3 lines
Diff to previous 1.10 (colored) to selected 1.29 (colored)

fix macppc MULTIPROCESSOR compilation.

Revision 1.10.6.3 / (download) - annotate - [select for diffs], Thu Nov 15 14:42:31 2001 UTC (22 years, 5 months ago) by briggs
Branch: nathanw_sa
Changes since 1.10.6.2: +2 -2 lines
Diff to previous 1.10.6.2 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

PROC_PC -> LWP_PC.  (thanks, thorpej)

Revision 1.10.6.2 / (download) - annotate - [select for diffs], Mon Nov 5 19:46:16 2001 UTC (22 years, 5 months ago) by briggs
Branch: nathanw_sa
Changes since 1.10.6.1: +187 -0 lines
Diff to previous 1.10.6.1 (colored) to branchpoint 1.10 (colored) to selected 1.29 (colored)

Initial SA support for ppc.  Test-booted on sandpoint, macppc, & walnut.
mcontext and cpu_getmcontext()/cpu_setmcontext() from Klaus Klein
<kleink@netbsd.org>.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Thu Sep 13 01:14:22 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.8: +137 -5 lines
Diff to previous 1.8 (colored) to selected 1.29 (colored)

Update the kqueue branch to HEAD.

Revision 1.10.6.1, Tue Aug 28 03:03:43 2001 UTC (22 years, 7 months ago) by briggs
Branch: nathanw_sa
Changes since 1.10: +0 -185 lines
FILE REMOVED

file cpu.h was added on branch nathanw_sa on 2001-11-05 19:46:16 +0000

Revision 1.10 / (download) - annotate - [select for diffs], Tue Aug 28 03:03:43 2001 UTC (22 years, 7 months ago) by matt
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: nathanw_sa
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored) to selected 1.29 (colored)

__syncicache needs to be exports to userspace as well as the kernel.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 26 02:47:39 2001 UTC (22 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.8: +136 -5 lines
Diff to previous 1.8 (colored) to selected 1.29 (colored)

Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports.  Make
other mpc6xx ports use it.  Add evcnts for mpc6xx traps.

Revision 1.6.16.1 / (download) - annotate - [select for diffs], Thu Jun 21 19:32:11 2001 UTC (22 years, 10 months ago) by nathanw
Changes since 1.6: +7 -3 lines
Diff to previous 1.6 (colored) next main 1.7 (colored) to selected 1.29 (colored)

Catch up to -current.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 13 06:01:48 2001 UTC (22 years, 10 months ago) by simonb
Branch: MAIN
Branch point for: kqueue
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.29 (colored)

Add a port to IBM's PPC405GP Reference Board (the "walnut")
by Eduardo Horvath and Simon Burge of Wasabi Systems.

IBM 4xx series CPU features:
 - New pmap and revised trap handler.
 - Support on-chip timers, PCI controller, UARTs
 - Framework for on-chip ethernet and watchdog timer.
General PowerPC features:
 - Add in-kernel PPC floating point emulation
 - New in{,4}_cksum that is between 1.5 and 5 times faster than the
   old version depending on CPU type.
General changes:
 - Kernel support for generic dbsym-style symbols.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 6 17:36:02 2001 UTC (22 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.6: +6 -2 lines
Diff to previous 1.6 (colored) to selected 1.29 (colored)

Introduce a new & faster pmap for the MPC6xx (60x, 7xx, 7xxx) PPC CPUs.
Move MPC6xx dependent header files to powerpc/include/mpc6xx/

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:01:03 1999 UTC (24 years, 10 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored) next main 1.7 (colored) to selected 1.29 (colored)

Sync w/ -current.

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 5 11:20:54 1999 UTC (24 years, 11 months ago) by tsubai
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej_scsipi, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: chs-ubc2
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored) to selected 1.29 (colored)

Add missing CPU_MAXID definition.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Apr 17 21:16:47 1999 UTC (25 years ago) by ws
Branch: MAIN
Changes since 1.4: +14 -84 lines
Diff to previous 1.4 (colored) to selected 1.29 (colored)

Modify syncicache on PowerPC from an inline to a real function.
Support different cache line sizes with the same object code in userland.
While here, move the function to implementation name space.

Revision 1.4, Thu May 28 07:56:43 1998 UTC (25 years, 10 months ago) by sakamoto
Branch: MAIN
Changes since 1.3: +1 -1 lines
FILE REMOVED

Rename NetBSD/powerpc to NetBSD/ofppc.
New sys/arch/powerpc with PowerPC-generic stuff.

Revision 1.2.8.1 / (download) - annotate - [select for diffs], Wed Nov 5 04:19:55 1997 UTC (26 years, 5 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: 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
Changes since 1.2: +7 -7 lines
Diff to previous 1.2 (colored) next main 1.3 (colored) to selected 1.29 (colored)

Update from trunk: asm -> __asm__, volatile -> __volatile

Revision 1.3 / (download) - annotate - [select for diffs], Wed Nov 5 04:19:04 1997 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +7 -7 lines
Diff to previous 1.2 (colored) to selected 1.29 (colored)

asm -> __asm__, volatile -> __volatile

Revision 1.2 / (download) - annotate - [select for diffs], Wed Apr 16 22:54:21 1997 UTC (27 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Branch point for: netbsd-1-3
Changes since 1.1: +32 -5 lines
Diff to previous 1.1 (colored) to selected 1.29 (colored)

Definitions for machine_vec interface, from Wolfgang Solfrank.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Sep 30 16:34:21 1996 UTC (27 years, 6 months ago) by ws
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Diff to selected 1.29 (colored)

PowerPC port

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




CVSweb <webmaster@jp.NetBSD.org>