The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.106 / (download) - annotate - [select for diffs], Sun Mar 31 17:13:29 2024 UTC (2 weeks, 2 days ago) by thorpej
Branch: MAIN
CVS Tags: HEAD
Changes since 1.105: +3 -1 lines
Diff to previous 1.105 (colored)

Add machdep.rpb_type and machdep.rpb_variation sysctl nodes.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Nov 22 01:56:14 2023 UTC (4 months, 3 weeks ago) by thorpej
Branch: MAIN
Changes since 1.104: +5 -1 lines
Diff to previous 1.104 (colored)

If not _KERNEL, include <stddef.h> to make sure we have offsetof().

Revision 1.104 / (download) - annotate - [select for diffs], Sat Aug 14 17:51:18 2021 UTC (2 years, 8 months ago) by ryo
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.103: +5 -1 lines
Diff to previous 1.103 (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.101.2.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:01 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.101: +3 -2 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

Sync with HEAD.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Jul 22 01:39:18 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.102: +2 -1 lines
Diff to previous 1.102 (colored)

Various minor cleanups and bug fixes to the FP software completion code:
- Use __CTASSERT() instead of rolling our own compile-time assertion
  using cpp.
- Use __BIT() &c instead of rolling our own.
- Improve some comments.
- Define a default FP_C and FPCR value that is self-consistent, and
  initialize it properly at process creation time.
- Fix signal information when the trap shadow cannot be resolved.
- Use defined constants rather than magic numbers for the exception
  summary bits.
- Add a machdep sysctl to enable FP software-completion debugging.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jun 26 15:02:19 2021 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.101: +2 -2 lines
Diff to previous 1.101 (colored)

Fix typo in comment

Revision 1.101 / (download) - annotate - [select for diffs], Tue Apr 20 00:09:45 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.100: +2 -2 lines
Diff to previous 1.100 (colored)

Slight tweak to previous changes:

Rather than simply increment the interrupt depth for the clock interrupt,
we add 0x10.  Why?  Because while we only use a single Alpha IPL (4) for
IPL_{BIO,NET,TTY,VM}, technically the architecture specification suports
two in the OSF/1 PALcode (3 [low-pri] and 4 [high-pri]), meaning we could
conceiveably have intrdepth > 1 just for device interrupts.

Adding 0x10 here means that cpu_intr_p() can check for "intrdepth != 0" for
"in interrupt context" and CLKF_INTR() can check "(intrdepth & 0xf) != 0" for
"was processing interrupts when the clock interrupt happened".

Revision 1.99.4.1 / (download) - annotate - [select for diffs], Sat Apr 17 17:26:12 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.99: +3 -2 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

Sync with HEAD.

Revision 1.100 / (download) - annotate - [select for diffs], Thu Apr 15 08:23:24 2021 UTC (3 years ago) by rin
Branch: MAIN
CVS Tags: thorpej-cfargs-base
Changes since 1.99: +3 -2 lines
Diff to previous 1.99 (colored)

Fix fallout from alpha/interrupt.c rev 1.93:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/alpha/alpha/interrupt.c#rev1.93

by which interrupts *seem* to occupy 100% CPU time.

Now, we bump ci_intrdepth for clock interrupt. Therefore, if ci_intrdepth > 1
is observed in statclock(), CPU is actually occupied by interrupts.

Thanks jklos and thorpej for notice!

Revision 1.99 / (download) - annotate - [select for diffs], Thu Oct 15 01:00:01 2020 UTC (3 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex
Branch point for: thorpej-cfargs
Changes since 1.98: +4 -1 lines
Diff to previous 1.98 (colored)

Expose a bunch of CPU details, including implementation version and
architecture extensions, via sysctl:

hw.cpu0.model = 21264A-0 (EV67)
hw.cpu0.major = 11
hw.cpu0.minor = 0
hw.cpu0.implver = 2
hw.cpu0.amask = 0x1307
hw.cpu0.bwx = 1
hw.cpu0.fix = 1
hw.cpu0.cix = 1
hw.cpu0.mvi = 1
hw.cpu0.pat = 1
hw.cpu0.pmi = 1
hw.cpu0.vax_fp = 1
hw.cpu0.ieee_fp = 1
hw.cpu0.primary_eligible = 1
hw.cpu0.primary = 1
hw.cpu0.cpu_id = 0
hw.cpu0.pcc_freq = 239990688

as well as some potentially interesting system-level variables:

machdep.cctr = 0
machdep.is_qemu = 1

Should address the basic concern in PR port-alpha/15835.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Sep 29 01:33:00 2020 UTC (3 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.97: +6 -2 lines
Diff to previous 1.97 (colored)

Improve time keeping and host CPU usage when running in Qemu:
- clockattach(): Allow multiple calls when running in Qemu. Anything
  after this first one is ignored, but this gives us a change to use
  a clock source provided by the VM directly, rather than relying on
  a more expensive hardware emulation.
- Add cpu_initclocks_secondary(), to handle clock setup on secondary
  CPUs, if needed.
- Allow us to use the WTINT PALcode call in cpu_idle() to idle in a lower
  power state (Qemu's PALcode supports this).
- Use the Qemu per-cpu set-alarm-rel call as the hardclock interrupt
  source.  In Qemu environments, reduce hz to 50 (rather than the
  default 1024) to give the clock a snowball's chance when running on
  a host system with hz=100.  XXX We have to manually re-calculate
  tick and tickadj.  There should be MI code to do this for us.  Also
  in Qemu environments, let hardclock() drive the sched clock by setting
  schedhz=0.

Revision 1.97 / (download) - annotate - [select for diffs], Fri Sep 25 03:40:11 2020 UTC (3 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.96: +2 -1 lines
Diff to previous 1.96 (colored)

Changes to make interrupt {,dis}establish MP-safe on Alpha:
- Protect all of the system interrupt linkage with the cpu_lock mutex.
- Re-order some of the stores to the SCB vector table to make it safe
  in the face of lockless interrupt dispatch.
- Add a framework for routing interrupts to specific CPUs.  Interrupts
  are still funneled only to the primary CPU, but that will change for
  some systems soon.  Ensure that interrupt handler lists are manipulated
  only on the CPUs that handle that specific interrupt source.  This required
  a re-factor of the alpha_shared_intr_*() family of functions.
- Enable __HAVE_INTR_CONTROL, although interrupt redistribution is still
  a no-op.
- Reduce code duplication in the Jenson direct-SCB interrupt handlers.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Sep 16 04:07:32 2020 UTC (3 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.95: +4 -1 lines
Diff to previous 1.95 (colored)

Implement fast soft interrupts for Alpha.  It's not yet enabled, because
there is a bug lurking that causes problems when user space starts up,
so we'll stick with the slow path for now.

Revision 1.95 / (download) - annotate - [select for diffs], Sat Sep 5 18:01:42 2020 UTC (3 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.94: +4 -2 lines
Diff to previous 1.94 (colored)

Track the SSIR per-cpu, rather than globally.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Sep 4 15:50:09 2020 UTC (3 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored)

Put the MI cpu_data at the beginning of cpu_info so that it is
cache line aligned.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Sep 4 03:53:12 2020 UTC (3 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.92: +4 -3 lines
Diff to previous 1.92 (colored)

Use SysValue to store curlwp rather than curcpu.  curlwp is acceessed
much more frequently, and this makes curlwp preemption-safe.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Sep 4 01:57:29 2020 UTC (3 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.91: +35 -29 lines
Diff to previous 1.91 (colored)

Shuffle fields in cpu_info for better cache behavior.
XXX More changes to come after curlwp is overhauled.

Revision 1.91 / (download) - annotate - [select for diffs], Thu Sep 3 14:27:47 2020 UTC (3 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.90: +1 -7 lines
Diff to previous 1.90 (colored)

Garbage-collect fpcurlwp -- it has been obsolete since FPU tracking
was converted over to PCU.

Revision 1.90 / (download) - annotate - [select for diffs], Thu Sep 3 04:20:54 2020 UTC (3 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.89: +1 -3 lines
Diff to previous 1.89 (colored)

Garabage-collect curpcb / cpu_info::ci_curpcb.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Aug 29 20:07:00 2020 UTC (3 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.88: +3 -5 lines
Diff to previous 1.88 (colored)

- Centralize per-CPU pmap initialization into a new pmap_init_cpu()
  function.  Call in from pmap_bootstrap() for the boot CPU, and
  from cpu_hatch() for secondaary CPUs.
- Eliminiate the dedicated I-stream memory barrier IPI; handle it all from
  the TLB shootdown IPI.  Const poison, and add some additional memory
  barriers and a TBIA to the PAUSE IPI.
- Completly rewrite TLB management in the alpha pmap module, borrowing
  somoe ideas from the x86 pmap and adapting them to the alpha environment.
  See the comments for theory of operation.  Add a bunch of stats that
  can be reported (disabled by default).
- Add some additional symbol decorations to improve cache behavior on
  MP systems.  Ensure coherency unit alignment for several structures
  in the pmap module.  Use hashed locks for pmap structures.
- Start out all new processes on the kernel page tables until their
  first trip though pmap_activate() to avoid the potential of polluting
  the current ASN in TLB with cross-process mappings.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Aug 29 19:06:33 2020 UTC (3 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.87: +4 -24 lines
Diff to previous 1.87 (colored)

- cpu_need_resched(): Explicitly cover each RESCHED_* case, and add a
  comment explaining why we don't need to act on IDLE+REMOTE.
- cpu_signotify(): Move to machdep.c, and if we're asked to notify
  an LWP running on another CPU, send an AST IPI to that CPU.  Add some
  assertions.
- cpu_need_proftick(): Move to machdep.c, add some assertions.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Aug 17 00:57:37 2020 UTC (3 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.86: +7 -1 lines
Diff to previous 1.86 (colored)

- Track the currently-activated pmap in struct cpu_info.
- Reserve some space in struct cpu_info for future pmap changes.

Revision 1.83.16.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:25 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.83.16.1: +4 -2 lines
Diff to previous 1.83.16.1 (colored) to branchpoint 1.83 (colored) next main 1.84 (colored)

Merge changes from current as of 20200406

Revision 1.86 / (download) - annotate - [select for diffs], Sun Dec 1 15:34:44 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.85: +2 -1 lines
Diff to previous 1.85 (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.85 / (download) - annotate - [select for diffs], Sun Nov 24 15:40:24 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.84: +3 -2 lines
Diff to previous 1.84 (colored)

Make ci_want_resched a u_int.

Revision 1.83.16.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:46 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.83: +1 -2 lines
Diff to previous 1.83 (colored)

Sync with HEAD

Revision 1.83.14.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:23 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.83: +1 -2 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

Sync with HEAD

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

Revision 1.84 / (download) - annotate - [select for diffs], Wed Aug 22 01:05:21 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.83: +1 -2 lines
Diff to previous 1.83 (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.78.6.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:46 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.78.6.1: +2 -2 lines
Diff to previous 1.78.6.1 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored)

update from HEAD

Revision 1.82.6.1 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:01 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

Sync with HEAD

Revision 1.82.10.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:09 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

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

Revision 1.83 / (download) - annotate - [select for diffs], Sat Dec 17 14:36:29 2016 UTC (7 years, 4 months ago) by flxd
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

Fix typo "one the" and architecture where appropriate.

Revision 1.78.6.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:41 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.78: +5 -5 lines
Diff to previous 1.78 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.77.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:39:27 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.77.2.1: +5 -5 lines
Diff to previous 1.77.2.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (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.78.10.1 / (download) - annotate - [select for diffs], Sun May 18 17:44:53 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.78: +5 -5 lines
Diff to previous 1.78 (colored) next main 1.79 (colored)

sync with head

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jan 22 22:52:04 2014 UTC (10 years, 2 months 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, riastradh-drm2-base3, pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, 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, localcount-20160914
Branch point for: pgoyette-localcount, nick-nhusb
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

undo rump workaround

Revision 1.81 / (download) - annotate - [select for diffs], Tue Jan 21 20:18:46 2014 UTC (10 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

rumpkernel needs ci_pcc_freq

Revision 1.80 / (download) - annotate - [select for diffs], Sun Nov 10 00:50:13 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.79: +3 -4 lines
Diff to previous 1.79 (colored)

use __unused instead of __USE and void cast to mark iterator variable unused
where needed (from phone)

Revision 1.79 / (download) - annotate - [select for diffs], Sun Nov 3 01:12:16 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.78: +3 -2 lines
Diff to previous 1.78 (colored)

use __USE() in the iterator variable

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:55 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

sync with head

Revision 1.77.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:30:57 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

merge to -current.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Jan 21 21:49:50 2012 UTC (12 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

cpu_uarea_free returns bool, not void

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

Catchup with rmind-uvmplock merge.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Jun 14 07:53:29 2011 UTC (12 years, 10 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.76: +3 -1 lines
Diff to previous 1.76 (colored)

Add latent support for __HAVE_CPU_UAREA_ROUTINES

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:04:44 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.75: +2 -40 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

Sync with HEAD.

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

sync with head

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

Sync with HEAD

Revision 1.76 / (download) - annotate - [select for diffs], Tue Feb 8 20:20:07 2011 UTC (13 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base7, rmind-uvmplock-nbase, rmind-uvmplock-base, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: cherry-xenmp
Changes since 1.75: +2 -40 lines
Diff to previous 1.75 (colored)

Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Dec 26 18:00:41 2010 UTC (13 years, 3 months ago) by he
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.74: +10 -2 lines
Diff to previous 1.74 (colored)

Since struct cpu_data isn't the first member in struct cpu_info, instead
expose the initial portion of struct cpu_info if _KMEMUSER is defined.

Revision 1.72.16.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:46 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.72.16.1: +0 -7 lines
Diff to previous 1.72.16.1 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)

Sync with HEAD.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:31:23 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.73: +1 -8 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

sync with head.

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:21:45 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.73: +1 -8 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

sync with head.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:11 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base9, 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, yamt-nfs-mp-base11, yamt-nfs-mp-base10, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, 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-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, 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: rmind-uvmplock
Changes since 1.73: +1 -8 lines
Diff to previous 1.73 (colored)

Remove clause 3 and 4 from TNF licenses

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

Sync with HEAD.

Revision 1.72.12.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:52 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.72: +1 -12 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

sync with head.

Revision 1.71.6.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:03:52 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.71.6.1: +1 -12 lines
Diff to previous 1.71.6.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

sync with HEAD

Revision 1.63.12.4 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:13 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63.12.3: +1 -12 lines
Diff to previous 1.63.12.3 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

sync with head.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Feb 27 18:26:15 2008 UTC (16 years, 1 month ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.72: +1 -12 lines
Diff to previous 1.72 (colored)

Remove CTL_MACHDEP_NAMES, it's not used anywhere.

Ok by martin@.

Revision 1.71.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:13:53 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.71: +1 -1 lines
Diff to previous 1.71 (colored)

sync with HEAD

Revision 1.72 / (download) - annotate - [select for diffs], Wed Oct 17 19:52:58 2007 UTC (16 years, 6 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-base, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.71: +1 -1 lines
Diff to previous 1.71 (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.67.14.2 / (download) - annotate - [select for diffs], Wed Oct 3 19:22:01 2007 UTC (16 years, 6 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.67.14.1: +4 -4 lines
Diff to previous 1.67.14.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

Sync with HEAD

Revision 1.63.12.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:22:23 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63.12.2: +12 -19 lines
Diff to previous 1.63.12.2 (colored) to branchpoint 1.63 (colored)

sync with head.

Revision 1.67.6.2 / (download) - annotate - [select for diffs], Mon Aug 20 18:36:56 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.67.6.1: +4 -4 lines
Diff to previous 1.67.6.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

Sync with HEAD.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:47:00 2007 UTC (16 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with HEAD.

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Tue Aug 7 18:04:53 2007 UTC (16 years, 8 months ago) by matt
Branch: matt-mips64
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with HEAD.

Revision 1.71 / (download) - annotate - [select for diffs], Sat Jul 21 11:59:56 2007 UTC (16 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, matt-mips64-base, jmcneill-pm, hpcarm-cleanup, bouyer-xenamd64
Branch point for: matt-armv6
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored)

Add MI todr(9) support and timercounter(9) support with kern_cctr.c to alpha:
- use todr(9) API with MI mc146818(4) driver and remove homegrown
  todr stuff from MD alpha/clock.c and alpha/mcclock.c
- also remove obsolete cc_microtime stuff from MD code
- add ci_pcc_freq member in struct cpu_info for cpu_frequency(), and
  calibrate it with mc146818 interval clock in mcclock attachment
- call cc_init() in cpu_initclocks(9) because all alpha cpus have
  a pcc counter

Tested on DEC 3000/300 and AlphaPC 164, but not on any SMP machines yet.

Revision 1.67.8.1 / (download) - annotate - [select for diffs], Wed Jul 11 19:57:27 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.67: +9 -16 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

Sync with head.

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

Sync with head.

Revision 1.67.14.1 / (download) - annotate - [select for diffs], Tue May 22 17:26:29 2007 UTC (16 years, 10 months ago) by matt
Branch: ppcoea-renovation
Changes since 1.67: +9 -16 lines
Diff to previous 1.67 (colored)

Update to HEAD.

Revision 1.70 / (download) - annotate - [select for diffs], Sat May 19 17:09:35 2007 UTC (16 years, 11 months ago) by mhitch
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment, matt-mips64
Changes since 1.69: +7 -3 lines
Diff to previous 1.69 (colored)

Fix multiprocessor operation:  move a couple of fields in struct cpu_info
to the beginning so they can still be accessed in assymbly code using 8 bit
offsets.  The addition of a big structure in cpu_data moved these outside
the range of the addq instruction.  Gas should have complained that the
immediate value was too large, but just silently truncated it.  I can now
run multiprocessor again.

Revision 1.69 / (download) - annotate - [select for diffs], Fri May 18 02:45:18 2007 UTC (16 years, 11 months ago) by mhitch
Branch: MAIN
Changes since 1.68: +1 -2 lines
Diff to previous 1.68 (colored)

Fix alpha MP for idlelwp:  ci_idle_lwp was added to cpu_info
structure, but never initialized.  There's already a cpu_idlelwp
in ci_data, which appears to be the same thing, so use that instead.

Revision 1.68 / (download) - annotate - [select for diffs], Thu May 17 14:51:13 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.67: +4 -14 lines
Diff to previous 1.67 (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.67.12.1 / (download) - annotate - [select for diffs], Wed Apr 18 04:16:37 2007 UTC (17 years ago) by thorpej
Branch: thorpej-atomic
Changes since 1.67: +6 -6 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

Convert to the new atomic op API.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Tue Mar 20 12:07:13 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.67: +4 -14 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

adapt alpha.

Revision 1.63.12.2 / (download) - annotate - [select for diffs], Mon Feb 26 09:05:37 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63.12.1: +10 -10 lines
Diff to previous 1.63.12.1 (colored) to branchpoint 1.63 (colored)

sync with head.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Feb 16 02:53:44 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, vmlocking, thorpej-atomic, ppcoea-renovation, mjf-ufs-trans
Changes since 1.66: +1 -3 lines
Diff to previous 1.66 (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.66 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:01 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.65: +10 -8 lines
Diff to previous 1.65 (colored)

Merge newlock2 to head.

Revision 1.65.20.1 / (download) - annotate - [select for diffs], Thu Jan 11 22:22:56 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.65: +10 -8 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Checkpoint work in progress.

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

sync with head.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Dec 24 20:06:46 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, 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, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Changes since 1.64: +7 -7 lines
Diff to previous 1.64 (colored)

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

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

merge ktrace-lwp.

Revision 1.60.2.4 / (download) - annotate - [select for diffs], Fri Sep 24 10:53:16 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.60.2.3: +5 -19 lines
Diff to previous 1.60.2.3 (colored) next main 1.61 (colored)

Sync with HEAD.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Sep 22 11:32:02 2004 UTC (19 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.62: +5 -19 lines
Diff to previous 1.62 (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.60.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:11:48 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.60.2.2: +1 -1 lines
Diff to previous 1.60.2.2 (colored)

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:31:19 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.60: +36 -3 lines
Diff to previous 1.60 (colored)

Sync with HEAD

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jan 4 11:33:29 2004 UTC (20 years, 3 months ago) by jdolecek
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.61: +1 -2 lines
Diff to previous 1.61 (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.61 / (download) - annotate - [select for diffs], Thu Aug 7 16:26:33 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.60: +36 -2 lines
Diff to previous 1.60 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.60 / (download) - annotate - [select for diffs], Wed Feb 5 12:16:43 2003 UTC (21 years, 2 months ago) by nakayama
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.59: +10 -8 lines
Diff to previous 1.59 (colored)

Share alpha/microtime.c with i386 and sparc64 as kern_microtime.c.
(approved by martin)

Revision 1.59 / (download) - annotate - [select for diffs], Fri Jan 17 22:11:16 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.58: +9 -8 lines
Diff to previous 1.58 (colored)

Merge the nathanw_sa branch.

Revision 1.58.4.4 / (download) - annotate - [select for diffs], Mon Jun 24 22:03:20 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.58.4.3: +7 -7 lines
Diff to previous 1.58.4.3 (colored) to branchpoint 1.58 (colored) next main 1.59 (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.58.4.3 / (download) - annotate - [select for diffs], Sat Dec 8 08:22:39 2001 UTC (22 years, 4 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.58.4.2: +2 -1 lines
Diff to previous 1.58.4.2 (colored) to branchpoint 1.58 (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.58.4.2 / (download) - annotate - [select for diffs], Thu Aug 30 23:43:43 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.58.4.1: +289 -0 lines
Diff to previous 1.58.4.1 (colored) to branchpoint 1.58 (colored)

First cut at LWP and SA support on the alpha.
Doesn't break in ordinary multiuser mode; LWPs and SAs not yet tested.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 18:13:00 2001 UTC (22 years, 10 months ago) by nathanw
Changes since 1.52: +29 -11 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Catch up to -current.

Revision 1.58.4.1, Wed May 30 12:28:38 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.58: +0 -289 lines
FILE REMOVED

file cpu.h was added on branch nathanw_sa on 2001-08-30 23:43:43 +0000

Revision 1.58 / (download) - annotate - [select for diffs], Wed May 30 12:28:38 2001 UTC (22 years, 10 months ago) by mrg
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, newlock-base, newlock, 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, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, kqueue, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: nathanw_sa
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

use _KERNEL_OPT

Revision 1.57 / (download) - annotate - [select for diffs], Sun May 27 13:53:25 2001 UTC (22 years, 10 months ago) by sommerfeld
Branch: MAIN
Changes since 1.56: +3 -1 lines
Diff to previous 1.56 (colored)

Assorted microtime fixes (similar to fixes I made yesterday when
porting this code to i386mp branch):

 - call microset() early on each cpu so that calls to microtime()
before the first clock interrupt don't return trash.  this manifested
itself as garbage runtimes in "ps" for kernel threads.
 - avoid races between hardclock updating "time" and microset on a
different cpu reading it by adding a "microset_time" global which is
initialized from "time" on the primary cpu.
 - call microset every hz ticks, not every hz+1 (cosmetic)

Revision 1.56 / (download) - annotate - [select for diffs], Sat Apr 28 06:10:50 2001 UTC (22 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.55: +12 -2 lines
Diff to previous 1.55 (colored)

Add a microtime() implementation that interpolates between ticks
using the cycle counter.  MP-safeness is achieved by giving each
CPU its own PCC frequency variables, and kicking the non-primary
processors via an IPI once per second.

Based on the sample code from David Mills' "A Kernel Model for
Precision Timekeeping".

Revision 1.55 / (download) - annotate - [select for diffs], Thu Apr 26 03:10:46 2001 UTC (22 years, 11 months ago) by ross
Branch: MAIN
Changes since 1.54: +4 -5 lines
Diff to previous 1.54 (colored)

o IEEE 754 floating-point completion code.
o Implement the architected FP_C "Floating Point Control Quadword"

Revision 1.35.2.7 / (download) - annotate - [select for diffs], Mon Apr 23 09:41:30 2001 UTC (22 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.35.2.6: +12 -5 lines
Diff to previous 1.35.2.6 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Sync with HEAD.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Apr 21 16:27:11 2001 UTC (23 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.53: +11 -5 lines
Diff to previous 1.53 (colored)

Adjust the way the cpu_info[] array works (array of pointers
rather than array of structures).  Keep a list of active
CPUs and define a CPU_INFO_FOREACH to traverse them.

This fixes cpustates statistics tracking.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Apr 20 00:10:18 2001 UTC (23 years ago) by thorpej
Branch: MAIN
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

Eliminate race conditions in the FP-switch code.  MP kernels get
much further on the way to multi-user now.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Feb 27 22:00:19 2001 UTC (23 years, 1 month ago) by mjacob
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

revert previous commit while the longbeards ponder

Revision 1.51 / (download) - annotate - [select for diffs], Tue Feb 27 21:11:41 2001 UTC (23 years, 1 month ago) by mjacob
Branch: MAIN
Changes since 1.50: +1 -2 lines
Diff to previous 1.50 (colored)

Remove cpu_wait #define because it's now prototyped in <sys/proc.h> which
means it has to really exist.

Revision 1.35.2.6 / (download) - annotate - [select for diffs], Sun Feb 11 19:08:39 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.35.2.5: +6 -6 lines
Diff to previous 1.35.2.5 (colored) to branchpoint 1.35 (colored)

Sync with HEAD.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jan 19 18:51:18 2001 UTC (23 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.49: +6 -6 lines
Diff to previous 1.49 (colored)

Make ASTs per-process.

Revision 1.35.2.5 / (download) - annotate - [select for diffs], Wed Dec 13 15:49:18 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.35.2.4: +1 -1 lines
Diff to previous 1.35.2.4 (colored) to branchpoint 1.35 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.35.2.4 / (download) - annotate - [select for diffs], Wed Dec 13 14:49:18 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.35.2.3: +8 -2 lines
Diff to previous 1.35.2.3 (colored) to branchpoint 1.35 (colored)

Sync with HEAD (for UBC fixes)

Revision 1.49 / (download) - annotate - [select for diffs], Wed Dec 13 00:46:31 2000 UTC (23 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.48: +8 -2 lines
Diff to previous 1.48 (colored)

Oops; add PROC_PC().

Revision 1.35.2.3 / (download) - annotate - [select for diffs], Fri Dec 8 09:23:37 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.35.2.2: +3 -1 lines
Diff to previous 1.35.2.2 (colored) to branchpoint 1.35 (colored)

Sync with HEAD.

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 15:59:45 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.35.2.1: +2 -2 lines
Diff to previous 1.35.2.1 (colored) to branchpoint 1.35 (colored)

Sync with HEAD.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Nov 22 08:39:53 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.47: +4 -2 lines
Diff to previous 1.47 (colored)

Several changes, which get us generally further along with
multiprocessor support:
- Implement MP-safe halt.
- Make the FPU saving code more like Bill's on the i386 MP branch.
  XXX This code will no doubt be revisited again.
- Pass the cpu_info and trapframe to IPI handlers, saving some work
  in the handlers themselves, and also making it possible for the
  "pause" handler to reference register state for DDB.
- Add "machine cpu" to DDB, making it possible to reference other
  CPUs registers (and thus get e.g. a traceback) from whichever
  CPU is actually running the debugger.
- Garbage-collect "machine halt" and "machine reboot" DDB commands.
  They don't have a prayer of working properly in multiprocessor
  kernels, and didn't really work all that well in uniprocessor kernels.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 19:56:49 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.35: +67 -28 lines
Diff to previous 1.35 (colored)

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

Revision 1.47 / (download) - annotate - [select for diffs], Mon Nov 20 19:25:43 2000 UTC (23 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

Make ci_ipis volatile.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Aug 25 01:04:06 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +4 -7 lines
Diff to previous 1.45 (colored)

Make need_resched() take a "struct cpu_info *" argument.  This
causes gives a primitive form of processor affinity.  Its use in
roundrobin() still needs some work.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Aug 21 02:03:12 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +6 -2 lines
Diff to previous 1.44 (colored)

Add experimental code for pausing other CPUs upon a CPU's
entry into the debugger.  While I'm here, add splsched()
as per spl(9).

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 16:58:27 2000 UTC (23 years, 10 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.39: +43 -27 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jun 8 03:10:06 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: 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
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

And more ANSI'ification!

Revision 1.43 / (download) - annotate - [select for diffs], Mon Jun 5 21:47:18 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Switch to the new `evcnt' mechanism for counting interrupts.  Maintain
a per-CPU interrupt counter for clock, device, and interprocessor
interrupts.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Jun 4 03:40:04 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +7 -4 lines
Diff to previous 1.41 (colored)

Increment an interrupt depth counter in non-clock interrupt cases
so that we can get time spent in interrupt statistics.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jun 3 20:47:40 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored)

- Clean up clock interrupt code a bit, and provide a CPU_IS_PRIMARY()
  macro in the MULTIPROCESSOR case (hardclock() wants it).
- Implement __GENERIC_SOFT_INTERRUPTS, and redefine the legacy
  software interrupts in terms of it.  Garbage-collect setsoftserial().

Revision 1.40 / (download) - annotate - [select for diffs], Wed May 31 05:14:32 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +33 -21 lines
Diff to previous 1.39 (colored)

- In the MULTIPROCESSOR case, initialize p_cpu before a process is
  marked SONPROC.
- Always make curproc, fpcurproc, astpending, and want_resched per-CPU
  variables in struct cpu_info.  Restructure code accordingly, and trim
  a few instructions from a few spots in various places in locore.

Revision 1.39 / (download) - annotate - [select for diffs], Fri May 26 21:19:24 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.38: +17 -15 lines
Diff to previous 1.38 (colored)

First sweep at scheduler state cleanup.  Collect MI scheduler
state into global and per-CPU scheduler state:

	- Global state: sched_qs (run queues), sched_whichqs (bitmap
	  of non-empty run queues), sched_slpque (sleep queues).
	  NOTE: These may collectively move into a struct schedstate
	  at some point in the future.

	- Per-CPU state, struct schedstate_percpu: spc_runtime
	  (time process on this CPU started running), spc_flags
	  (replaces struct proc's p_schedflags), and
	  spc_curpriority (usrpri of processes on this CPU).

	- Every platform must now supply a struct cpu_info and
	  a curcpu() macro.  Simplify existing cpu_info declarations
	  where appropriate.

	- All references to per-CPU scheduler state now made through
	  curcpu().  NOTE: this will likely be adjusted in the future
	  after further changes to struct proc are made.

Tested on i386 and Alpha.  Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Apr 3 01:47:29 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.37: +4 -1 lines
Diff to previous 1.37 (colored)

Print any architecture extensions present on the primary CPU.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Feb 29 22:19:54 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.36: +15 -1 lines
Diff to previous 1.36 (colored)

Put machine check info in cpu_info in the multiprocessor case, and
just have one statically allocate machine check info structure in the
single processor config case.

Revision 1.35.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:31:25 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.35: +6 -3 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Pull up to last week's -current.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Dec 16 20:17:23 1999 UTC (24 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.35: +6 -3 lines
Diff to previous 1.35 (colored)

- Remove a misguided attempt to use procs as idle contexts for secondary
  processors.  Instead, allocate separate idle PCBs for them (including
  the primary -- don't use proc0's for its idle context).
- Use SysValue to store the cpu_info for each processor.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Sep 17 19:59:37 1999 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.34: +1 -3 lines
Diff to previous 1.34 (colored)

Centralize the declaration and clearing of `cold'.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Aug 16 06:24:07 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

Pull in <machine/alpha_cpu.h>.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Aug 15 18:32:51 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +3 -4 lines
Diff to previous 1.32 (colored)

Protect userland from the vast majority of this file.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Aug 10 23:35:46 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +85 -1 lines
Diff to previous 1.31 (colored)

Move cpu_info and related info into <machine/cpu.h>, and implement the
other MP API components discussed on tech-smp.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Aug 10 21:08:05 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +3 -2 lines
Diff to previous 1.30 (colored)

Define cpu_number() as discussed on tech-smp.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Nov 19 01:51:40 1998 UTC (25 years, 5 months ago) by ross
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Changes since 1.29: +2 -63 lines
Diff to previous 1.29 (colored)

Rip out 70 lines of (all of) the port-alpha-specific decls and prototypes.
They should not be visible to the MI kernel and the MI kernel shouldn't
depend on this junk.  Most of it moves to new module <machine/alpha.h>.

Leave badaddr() here, though, because it's used so widely.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Nov 11 06:41:23 1998 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Changes to support fork_kthread():
- cpu_set_kpc() now takes void *arg third argument, passed to the
  entry point.
- cpu_fork() allows parent to be non-curproc iff parent is proc0.
  When forking non-curproc, assume its state has already been saved.
- Adjust various pieces of machine-dependent code to account of all of this.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 7 18:29:26 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Oops, back out a buglet I didn't intend to commit in the last change.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 6 20:50:15 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +4 -3 lines
Diff to previous 1.26 (colored)

configure() prototype is in <sys/device.h>

Revision 1.26 / (download) - annotate - [select for diffs], Tue Sep 29 07:07:36 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Prototype cpu_halt_secondary().

Revision 1.25 / (download) - annotate - [select for diffs], Thu Sep 24 23:28:18 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +10 -1 lines
Diff to previous 1.24 (colored)

First-cut at code to spin up secondary processors on a multiprocessor
Alpha system, conditional on MULTIPROCESSOR.

NOTE: This does not yet work completely.  The secondary CPU begins the
boot process, but never makes it into the cpu spinup trampoline.  This
is merely a snapshot of a work-in-progress.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 13 19:10:14 1998 UTC (25 years, 9 months ago) by ross
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Kill the old extern mchkinfo pointer and prototype cpu_mchkinfo().
This file has been collecting prototypes and other things used in the MD
code...that's bad...because this is exported to the MI kernel.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jul 8 17:20:42 1998 UTC (25 years, 9 months ago) by mjacob
Branch: MAIN
Changes since 1.22: +11 -2 lines
Diff to previous 1.22 (colored)

stale beer- place structure in right file

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jul 8 00:39:02 1998 UTC (25 years, 9 months ago) by mjacob
Branch: MAIN
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

Add machine check type definitions. Structure the expected/received
machine check items.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Feb 16 03:59:57 1998 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Add support for non-contiguous physical memory, using MACHINE_NEW_NONCONTIG.
These changes also recover memory that is located before the kernel in
the first system software segment on systems which do not use the PROM
for console I/O.  Written by Chris Demetriou and myself.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Feb 13 02:09:13 1998 UTC (26 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

Clean up kernel initialization.  Use the bootinfo structure (or innate
knowledge) earlier, and gather all information needed earlier.  Mark the
init code carefully re: when it can print stuff out, when it can expect
the firmware to stop working, etc.  Be more careful about using the PROM
console and other PROM facilities, and hint that in the future all use
of firmware/boot program callbacks by the kernel should go away (since
the world may not be mapped the way the firmware/boot program wants!).

Revision 1.19 / (download) - annotate - [select for diffs], Thu Feb 12 01:53:23 1998 UTC (26 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

clean up the way bootinfo information is passed and used: move the version
number passed by the boot block into a register, change the kernel's
bootinfo handing so that it always uses bootinfo to get bootinfo-ish values
(filling them in if the boot blocks didn't pass them), and make versioning
a small bit more sane.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Mon Sep 29 07:19:47 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.17: +7 -4 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Sep 23 23:17:49 1997 UTC (26 years, 6 months ago) by mjacob
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Changes since 1.17: +7 -4 lines
Diff to previous 1.17 (colored)

Redo the platform specific identification and initialization, making
it more explicit where platform specific functions (like machine check
handling) should go.

Revision 1.13.2.4 / (download) - annotate - [select for diffs], Tue Aug 12 05:55:28 1997 UTC (26 years, 8 months ago) by cgd
Branch: alpha-nwscons
Changes since 1.13.2.3: +2 -2 lines
Diff to previous 1.13.2.3 (colored) next main 1.14 (colored)

sync with -current as of August 11, 1997

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jul 25 00:04:36 1997 UTC (26 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, alpha-nwscons-base
Branch point for: marc-pcmcia
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Update alpha_init() prototype; takes two more args.

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Sun Jun 1 04:12:10 1997 UTC (26 years, 10 months ago) by cgd
Branch: alpha-nwscons
Changes since 1.13.2.2: +1 -1 lines
Diff to previous 1.13.2.2 (colored)

sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Apr 6 08:47:20 1997 UTC (27 years ago) by cgd
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (colored)

clean up NetBSD RCS ID strings

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Fri Jan 24 07:05:56 1997 UTC (27 years, 2 months ago) by cgd
Branch: alpha-nwscons
Changes since 1.13.2.1: +3 -1 lines
Diff to previous 1.13.2.1 (colored)

sync with trunk

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jan 24 06:38:37 1997 UTC (27 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

astpending and want_resched are kernel-only

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Sat Dec 7 02:08:53 1996 UTC (27 years, 4 months ago) by cgd
Branch: alpha-nwscons
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (colored)

mostly sync with changes on the trunk

Revision 1.14 / (download) - annotate - [select for diffs], Sat Dec 7 01:54:50 1996 UTC (27 years, 4 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (colored)

add a "machdep.booted_kernel" sysctl, which is the name of the booted
kernel as supplied by the SRM console's BOOTED_FILE variable.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 13 21:13:18 1996 UTC (27 years, 5 months ago) by cgd
Branch: MAIN
Branch point for: alpha-nwscons
Changes since 1.12: +49 -1 lines
Diff to previous 1.12 (colored)

compile cleanly with:
-Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jul 14 04:15:10 1996 UTC (27 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.11: +8 -2 lines
Diff to previous 1.11 (colored)

(1)     Add unaligned access fixup code to fix unaligned quad, long,
and IEEE S and T floating datum loads and stores.  VAX floating data
types not yet supported, and in the future will only be supported if
FIX_UNALIGNED_VAX_FP is defined.  (No point in wasting the space when
most of the time there will never be VAX FP loads and stores.)  Right
now, these features can be controlled only by sysctl.  The (boolean)
integer sysctls machdep.unaligned_print, machdep.unaligned_fix, and
machdep.unaligned_sigbus control printing about unaligned accesses
(defaults on), fixing up of unaligned accesses (defaults on), and
forcing a SIGBUS on unaligned accesses (defaults off).  If an access
is not fixed up (for lack of method or explicit decision), a SIGBUS is
always generated to keep programs from using bogus data.  At some point,
these three choices should be controlled by per-process flags, as well.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 11 05:31:30 1996 UTC (27 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

Instead of treating the trap/syscall/exception frame like a struct
containing a substruct (the hardware frame) and an array of registers,
treat it like one big array of registers, for easier and prettier
access.  Update everything to deal with that.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 11 03:46:00 1996 UTC (27 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

update to use new definitions in alpha_cpu.h

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jul 9 00:33:20 1996 UTC (27 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.8: +5 -15 lines
Diff to previous 1.8 (colored)

various cleanup, move setsoft* and spl* into intr.h.

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Fri Jun 14 20:42:44 1996 UTC (27 years, 10 months ago) by cgd
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

pull up from trunk:
>add a new machine-dependent sysctl, machdep.root_device, which is the
>(string) name of the root device.  It's a string so that it can
>be used before dev_mkdb has been run.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 14 20:40:49 1996 UTC (27 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

add a new machine-dependent sysctl, machdep.root_device, which is the
(string) name of the root device.  It's a string so that it can
be used before dev_mkdb has been run.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Dec 21 05:01:32 1995 UTC (28 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

Remove deprecated cpu_setstack().

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 28 02:55:18 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

remove unused cpu_exec() definitions.  moved "broken swap" markers, for
ports that still need it, to types.h.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 28 01:16:13 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -3 lines
Diff to previous 1.4 (colored)

update for various (old) NetBSD changes

Revision 1.4 / (download) - annotate - [select for diffs], Fri May 5 03:41:51 1995 UTC (28 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

define BROKEN_SWAP and/or cpu_swapout as appropriate.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 22 20:24:49 1995 UTC (29 years ago) by christos
Branch: MAIN
Changes since 1.2: +1 -3 lines
Diff to previous 1.2 (colored)

- added sunos_machdep.c for sun3, atari, amiga and mac68k.
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 24 15:01:31 1995 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -2 lines
Diff to previous 1.1 (colored)

remove support for double-mapping the user area/kernel stack

Revision 1.1 / (download) - annotate - [select for diffs], Mon Feb 13 23:07:33 1995 UTC (29 years, 2 months ago) by cgd
Branch: MAIN

preliminary Alpha support.  note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET.  Also, some of this is
_incredibly_ hack-ish, etc., but it works.

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>