The NetBSD Project

CVS log for src/sys/arch/powerpc/pic/pic_openpic.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 23 21:54:40 2022 UTC (11 months, 1 week ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

fix various typos in comments, mainly immediatly/immediately/,
as well shared and recently fixed typos in OpenBSD code by Jonathan Grey.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 13 00:04:03 2020 UTC (2 years, 6 months 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-futex, 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.18: +2 -3 lines
Diff to previous 1.18 (colored)

Drop unused opt_interrupt.h include.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jul 12 23:54:38 2020 UTC (2 years, 6 months ago) by rin
Branch: MAIN
Changes since 1.17: +2 -5 lines
Diff to previous 1.17 (colored)

No need to test _KERNEL_OPT twice.
No binary changes.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 6 10:54:56 2020 UTC (2 years, 6 months ago) by rin
Branch: MAIN
Changes since 1.16: +6 -2 lines
Diff to previous 1.16 (colored)

Include missing opt_multiprocessor.h.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 6 09:34:18 2020 UTC (2 years, 6 months ago) by rin
Branch: MAIN
Changes since 1.15: +6 -4 lines
Diff to previous 1.15 (colored)

Style and cosmetic changes. No binary changes intended.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:39 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Sync with HEAD

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:39 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.12.2.2: +3 -3 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Sync with HEAD

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

Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:26 2018 UTC (4 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, 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, 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.14: +3 -3 lines
Diff to previous 1.14 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Mon May 21 04:36:01 2018 UTC (4 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.12.2.1: +14 -6 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 16 21:54:38 2018 UTC (4 years, 8 months ago) by macallan
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.13: +14 -6 lines
Diff to previous 1.13 (colored)

special case IPIs so we don't mess with hardware IRQ sources
now SMP works on my PCI-X G5

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Fri Mar 30 06:20:12 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Resolve conflicts between branch and HEAD

Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 22 21:27:36 2018 UTC (4 years, 10 months 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.12: +3 -3 lines
Diff to previous 1.12 (colored)

don't call mapiodev() - the caller should hand us a usable address

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 2 19:36:19 2018 UTC (4 years, 11 months ago) by macallan
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

IRQ0 is perfectly legal to use on at least some macppc, so don't treat it
as an error or something special
with this svwsata works on my PCI-X G5

Revision 1.11 / (download) - annotate - [select for diffs], Thu Mar 1 16:03:02 2018 UTC (4 years, 11 months ago) by macallan
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

use mapiodev() so this can work on G5s

Revision 1.8.6.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:37 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.8: +3 -4 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

update from HEAD

Revision 1.8.24.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:49 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.8.24.1: +2 -3 lines
Diff to previous 1.8.24.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Sync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:07 2017 UTC (5 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, 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
Changes since 1.9: +2 -3 lines
Diff to previous 1.9 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.8.24.1 / (download) - annotate - [select for diffs], Sun May 29 08:44:18 2016 UTC (6 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Sync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 26 17:38:05 2016 UTC (6 years, 8 months ago) by macallan
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

treat IPIs like regular interrupts at IPL_HIGH
should fix port-powerpc/44387
tested by chuq

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:48 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.6: +15 -7 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

sync with head

Revision 1.6.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:32:59 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.6: +15 -7 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

merge to -current.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Feb 1 09:54:03 2012 UTC (11 years ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, 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, nick-nhusb
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

Use kmem instead of malloc.  Remove unneeded <sys/malloc.h> includes.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 14 19:35:59 2012 UTC (11 years ago) by phx
Branch: MAIN
Changes since 1.6: +13 -5 lines
Diff to previous 1.6 (colored)

Some PICs have the capability to define the interrupt's polarity (OpenPIC
for example). So the accepted interrupt types have been extended to:
- IST_EDGE_FALLING (which is the same as IST_EDGE)
- IST_EDGE_RISING (new)
- IST_LEVEL_LOW (is the same as IST_LEVEL)
- IST_LEVEL_HIGH (new)
Old code will continue to work without modification.

Revision 1.5.32.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:33 2011 UTC (11 years, 7 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jun 20 06:21:45 2011 UTC (11 years, 7 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.5: +3 -3 lines
Diff to previous 1.5 (colored)

<arch/powerpc/... -> <powerpc/...

Revision 1.4.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:33 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.4: +2 -5 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.4.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:38 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.4: +2 -5 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.4.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:23:02 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.4: +2 -5 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 29 06:53:02 2008 UTC (14 years, 9 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-base7, 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, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, 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-premerge-20101231, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, ad-audiomp2-base, ad-audiomp2
Branch point for: cherry-xenmp
Changes since 1.4: +2 -5 lines
Diff to previous 1.4 (colored)

Convert to new 2 clause license

Revision 1.2.8.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:18 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.2.8.3: +15 -54 lines
Diff to previous 1.2.8.3 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with HEAD

Revision 1.2.6.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:58 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.2: +15 -54 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Mon Jan 21 09:38:27 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.4.2: +15 -54 lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head

Revision 1.2.14.2 / (download) - annotate - [select for diffs], Sat Jan 19 12:14:43 2008 UTC (15 years ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.2.14.1: +13 -52 lines
Diff to previous 1.2.14.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 17 23:43:00 2008 UTC (15 years ago) by garbled
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.3: +15 -54 lines
Diff to previous 1.3 (colored)

Add support to ofppc for the IBM 7044-270 machine.  This is a POWER3-II
based machine.  Currently the kernel to run on this machine is
incompatible with the standard GENERIC kernel, so for now, we have a
separate GENERIC_B64. Eventually, I hope to combine the two.

Please note, this is a port of 32bit ofppc, not a powerpc64 port.

Thanks to Matt Thomas and Kevin Bowling for helping to make this port
possible.

Summary of changes:

Change ofwpci to use the ofmethod config for configuring the PCI bus,
rather than indirect configuration.
Move the wiring of the interrupt controllers from at the start of the
boot, into the configuration of the first PCI bus.
Rewrite the map_isa_ioregs() hack to work on a machine without BATs
Fix a ton of bugs in the genofw_find_pics routine, and in the map_space code.
Split the pic_openpic into openpic_common and pic_openpic.
Create a new pic_distopenpic driver, for the distributed openpic found on
some newer IBM machines.
Fix a bad panic in pmap_extract on 64bit bridge mode

Revision 1.2.8.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:47:54 2008 UTC (15 years ago) by matt
Branch: matt-armv6
Changes since 1.2.8.2: +4 -4 lines
Diff to previous 1.2.8.2 (colored) to branchpoint 1.2 (colored)

sync with HEAD

Revision 1.2.10.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:42:38 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync with head.

Revision 1.2.14.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:54:55 2007 UTC (15 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

Sync with HEAD

Revision 1.2.12.1 / (download) - annotate - [select for diffs], Thu Dec 13 05:05:21 2007 UTC (15 years, 1 month ago) by yamt
Branch: yamt-kmem
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

sync with head.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Dec 11 18:04:20 2007 UTC (15 years, 1 month ago) by garbled
Branch: MAIN
CVS Tags: yamt-kmem-base3, vmlocking2-base3, matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

Fix the endless stream of 7's problem on i8259-like interrupt controllers
once and for all.  The i8259 does not like to be read in a loop, when an
interrupt comes in, it will return a valid value, however, if you keep
reading it until there are no outstanding interrupts, it will return 7
(which is the lpt interrupt).  Change the pic handler to give an argument
to the get_irq functions of mode, which indicates if this is the first
time we are asking, or if we are just rechecking in a loop.  Non-i8259
handlers can safely ignore this argument.

Tested to fix the stream of 7's problem on prep and ofppc.  Got rid of
the nasty hack in ofppc with this too, and the prep machine seems to take
less interrupts now, which is a good thing.

Revision 1.2.8.2 / (download) - annotate - [select for diffs], Tue Nov 6 23:20:57 2007 UTC (15 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.2.8.1: +217 -0 lines
Diff to previous 1.2.8.1 (colored) to branchpoint 1.2 (colored)

sync with HEAD

Revision 1.1.6.1 / (download) - annotate - [select for diffs], Fri Nov 2 13:34:48 2007 UTC (15 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.1: +217 -0 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

More diff reduce to HEAD due to botched up merging.

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sat Oct 27 11:28:01 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.4.1: +217 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)

sync with head.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Tue Oct 23 20:36:21 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.2.2.1: +217 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with head.

Revision 1.1.8.1 / (download) - annotate - [select for diffs], Thu Oct 18 08:32:46 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.1: +217 -0 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

sync with head.

Revision 1.2.8.1, Wed Oct 17 19:56:46 2007 UTC (15 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.2: +0 -217 lines
FILE REMOVED

file pic_openpic.c was added on branch matt-armv6 on 2007-11-06 23:20:56 +0000

Revision 1.2.4.1, Wed Oct 17 19:56:46 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2: +0 -217 lines
FILE REMOVED

file pic_openpic.c was added on branch yamt-lazymbuf on 2007-10-27 11:28:01 +0000

Revision 1.2.2.1, Wed Oct 17 19:56:46 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.2: +0 -217 lines
FILE REMOVED

file pic_openpic.c was added on branch vmlocking on 2007-10-23 20:36:21 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 17 19:56:46 2007 UTC (15 years, 3 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-kmem-base2, yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-lazymbuf, yamt-kmem, vmlocking2, vmlocking, mjf-devfs, matt-armv6, bouyer-xeni386
Changes since 1.1: +217 -0 lines
Diff to previous 1.1 (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.1.2.12 / (download) - annotate - [select for diffs], Tue Oct 16 06:34:47 2007 UTC (15 years, 3 months ago) by macallan
Branch: ppcoea-renovation
Changes since 1.1.2.11: +8 -3 lines
Diff to previous 1.1.2.11 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

make interrupt distribution via OpenPIC optional
with options OPENPIC_DISTRIBUTE all CPUs will receive hardware interrupts,
otherwise only cpu0

Revision 1.1.2.11 / (download) - annotate - [select for diffs], Thu Oct 11 06:17:53 2007 UTC (15 years, 3 months ago) by macallan
Branch: ppcoea-renovation
Changes since 1.1.2.10: +20 -4 lines
Diff to previous 1.1.2.10 (colored) to branchpoint 1.1 (colored)

implement pic_finish_setup() to send interrupts to all attached CPUs

Revision 1.1.2.10 / (download) - annotate - [select for diffs], Wed Oct 10 22:19:45 2007 UTC (15 years, 3 months ago) by macallan
Branch: ppcoea-renovation
Changes since 1.1.2.9: +4 -8 lines
Diff to previous 1.1.2.9 (colored) to branchpoint 1.1 (colored)

- move IPI setup to ipi_openpic
- some cleanup

Revision 1.1.2.9 / (download) - annotate - [select for diffs], Thu Oct 4 18:14:39 2007 UTC (15 years, 4 months ago) by macallan
Branch: ppcoea-renovation
Changes since 1.1.2.8: +4 -4 lines
Diff to previous 1.1.2.8 (colored) to branchpoint 1.1 (colored)

make openpic_set_priority non-static for now since cpu.c calls it on SMP
kernels. This should go away when the hatch code is rewritten.

Revision 1.1.2.8 / (download) - annotate - [select for diffs], Sun Jun 3 06:49:44 2007 UTC (15 years, 8 months ago) by nisimura
Branch: ppcoea-renovation
Changes since 1.1.2.7: +36 -38 lines
Diff to previous 1.1.2.7 (colored) to branchpoint 1.1 (colored)

- make setup_openpic() to have every SRC_VECTOR(irq) register a value
  0x8000'0000 during initialization.  opic_establish_irq() will assign
  acutual usage values later on.
- note a comment describing that writing S1C bit for OPENPIC_CONFIG
  register should bring the sane initial operation state.  #if-0'ed out
  this time since it remains unknown wether every OpenPIC compliant
  controller behave in the same way.
- nuke struct openpic_ops which contains enable_mask for no use.

Revision 1.1.2.7 / (download) - annotate - [select for diffs], Fri May 4 02:54:33 2007 UTC (15 years, 9 months ago) by macallan
Branch: ppcoea-renovation
Changes since 1.1.2.6: +24 -25 lines
Diff to previous 1.1.2.6 (colored) to branchpoint 1.1 (colored)

nuke unused pic_ops methods, honour priority in pic_establish_irq()

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Thu May 3 19:38:37 2007 UTC (15 years, 9 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.1.2.5: +45 -18 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored)

Move the functions down from openpic.c into pic_openpic.c, as there
really is no need to have them over there when all the interrupt routines
will be using pic_openpic.c
Change the openpic setup to set all the irqs except 0 to negative polarity.
Set the spurious vector reg to 0xff.
Emit a nice printf showing the version of the openpic, and getrid of the
maxint thing.
Add a global, primary_pic, so machines can elect any registered pic as
the primary interrupt controller.
Clean up a few nits in pic_prepivr to make it more similar to the openpic
one, add a prototype for the setup_prepivr function, etc etc.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Thu May 3 18:13:04 2007 UTC (15 years, 9 months ago) by nisimura
Branch: ppcoea-renovation
Changes since 1.1.2.4: +2 -3 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored)

These two have no <machine/autoconf.h> dependency.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Thu May 3 16:00:15 2007 UTC (15 years, 9 months ago) by nisimura
Branch: ppcoea-renovation
Changes since 1.1.2.3: +11 -16 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

- files.pic
  allow to choose files as designated for Makefile.
- pic_openpic.c, pic_prepivr.c
  remove #ifdef PIC_xxx constructs.
- pic_openpic.c
  honour OPENPIC feature register NIRQ field for max. number of
  available irqs.  Valid for MPC107/MPC824x EPIC.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Thu May 3 04:00:52 2007 UTC (15 years, 9 months ago) by macallan
Branch: ppcoea-renovation
Changes since 1.1.2.2: +3 -2 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

fix typo

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Thu May 3 03:18:33 2007 UTC (15 years, 9 months ago) by macallan
Branch: ppcoea-renovation
Changes since 1.1.2.1: +4 -6 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

adapt to changes picvar.h

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Wed May 2 23:51:38 2007 UTC (15 years, 9 months ago) by macallan
Branch: ppcoea-renovation
Changes since 1.1: +183 -0 lines
Diff to previous 1.1 (colored)

OpenPIC support

Revision 1.1, Wed May 2 23:51:38 2007 UTC (15 years, 9 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-idlelwp-base8, vmlocking-base, ppcoea-renovation-base, mjf-ufs-trans-base, hpcarm-cleanup, bouyer-xenamd64
Branch point for: yamt-x86pmap, ppcoea-renovation, jmcneill-pm
FILE REMOVED

file pic_openpic.c was initially added on branch ppcoea-renovation.

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>