The NetBSD Project

CVS log for src/sys/arch/xen/x86/Attic/intr.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.29.12.1, Sun Dec 3 11:36:51 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.29: +1 -1 lines
FILE REMOVED

update from HEAD

Revision 1.34, Sat Nov 4 14:56:48 2017 UTC (6 years, 5 months ago) by cherry
Branch: MAIN
CVS Tags: thorpej-futex-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, isaki-audio2-base, isaki-audio2, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache, HEAD
Changes since 1.33: +1 -1 lines
FILE REMOVED

Retire xen/x86/intr.c and use the new xen specific glue in x86/x86/intr.c

The purpose of this change is to expose the x86/include/intr.h API
to drivers. Specifically the following functions:

   void *intr_establish_xname(...);
   void *intr_establish(...);
   void intr_disestablish(...);

while maintaining the old API from xen/include/evtchn.h, specifically
the following functions:

    int event_set_handler(...);
    int event_remove_handler(...);

This is so that if things break, we can keep using the old API until
everything stabilises. This is a stepping stone towards getting the
actual XEN event callback path rework code in place - which can be
done opaquely behind the intr.h API - NetBSD/XEN specific drivers that
have been ported to the intr.h API should then work without
significant further modifications.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Nov 4 09:22:16 2017 UTC (6 years, 5 months ago) by cherry
Branch: MAIN
Changes since 1.32: +2 -11 lines
Diff to previous 1.32 (colored)

On XEN dom0, the function xen/x86/intr.c:xen_intr_map() is used to map
hardware interrupts to XEN callbacks called 'events'. This function
combines both the allocation and the binding.

This change is the first part of breaking up that combination into
xen_pirq_alloc() and the binding will happen as part of the
pic_addroute() callback of a new pseudo PIC_XEN

This code will be added later on.

Revision 1.29.30.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:57 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.29.30.1: +13 -5 lines
Diff to previous 1.29.30.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

Sync with HEAD

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Sun Jul 16 06:14:25 2017 UTC (6 years, 9 months ago) by cherry
Branch: perseant-stdc-iso10646
Changes since 1.32.2.1: +475 -0 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

2739767

Revision 1.32.2.1, Sun Jul 16 06:14:24 2017 UTC (6 years, 9 months ago) by cherry
Branch: perseant-stdc-iso10646
Changes since 1.32: +0 -475 lines
FILE REMOVED

file intr.c was added on branch perseant-stdc-iso10646 on 2017-07-16 06:14:25 +0000

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jul 16 06:14:24 2017 UTC (6 years, 9 months ago) by cherry
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, nick-nhusb-base-20170825
Branch point for: perseant-stdc-iso10646
Changes since 1.31: +11 -5 lines
Diff to previous 1.31 (colored)

Remove the xen specific interrupt type for the x86 intr_handle_t
For this to work, we use the evtchn.c:get_pirq_to_evtchn() glue
function to make things easier.

Revision 1.31 / (download) - annotate - [select for diffs], Tue May 23 08:54:39 2017 UTC (6 years, 10 months ago) by nonaka
Branch: MAIN
CVS Tags: 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.30: +3 -1 lines
Diff to previous 1.30 (colored)

x86: Add preliminary x2APIC support.

x2APIC is used only when x2APIC is enabled in BIOS/UEFI.
LAPIC ID is not supported above 256.

Revision 1.29.30.1 / (download) - annotate - [select for diffs], Mon Dec 5 10:54:59 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.29: +11 -1 lines
Diff to previous 1.29 (colored)

Sync with HEAD

Revision 1.29.34.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:07 2016 UTC (7 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.29: +11 -1 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with HEAD

Revision 1.30 / (download) - annotate - [select for diffs], Mon Oct 17 18:23:50 2016 UTC (7 years, 6 months ago) by jdolecek
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.29: +11 -1 lines
Diff to previous 1.29 (colored)

provide stub intr xname establish for xen

Revision 1.21.8.5 / (download) - annotate - [select for diffs], Sat Aug 27 15:37:32 2011 UTC (12 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.21.8.4: +1 -19 lines
Diff to previous 1.21.8.4 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Sync with HEAD. Most notably: uvm/pmap work done by rmind@, and MP Xen
work of cherry@.

No regression observed on suspend/restore.

Revision 1.27.6.2 / (download) - annotate - [select for diffs], Wed Aug 17 09:40:40 2011 UTC (12 years, 8 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.27.6.1: +1 -24 lines
Diff to previous 1.27.6.1 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

Pullup relevant changes from -current

Revision 1.29 / (download) - annotate - [select for diffs], Sat Aug 13 16:22:15 2011 UTC (12 years, 8 months ago) by cherry
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, 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, pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, 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, localcount-20160914, khorben-n900, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, 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, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: tls-maxphys, pgoyette-localcount, nick-nhusb
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)

Remove spurious header.
Thanks rmind@

Revision 1.28 / (download) - annotate - [select for diffs], Thu Aug 11 17:59:00 2011 UTC (12 years, 8 months ago) by cherry
Branch: MAIN
Changes since 1.27: +2 -19 lines
Diff to previous 1.27 (colored)

Make event/interrupt handling MP aware

Revision 1.27.6.1 / (download) - annotate - [select for diffs], Fri Jun 3 13:27:41 2011 UTC (12 years, 10 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.27: +7 -2 lines
Diff to previous 1.27 (colored)

Initial import of xen MP sources, with kernel and userspace tests.
 - this is a source priview.
 - boots to single user.
 - spurious interrupt and pmap related panics are normal

Revision 1.21.8.4 / (download) - annotate - [select for diffs], Sun Oct 24 22:48:21 2010 UTC (13 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.21.8.3: +7 -7 lines
Diff to previous 1.21.8.3 (colored) to branchpoint 1.21 (colored)

Sync with HEAD

Revision 1.17.10.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:52:59 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.17.10.4: +7 -7 lines
Diff to previous 1.17.10.4 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

sync with head.

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:14 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.26: +7 -7 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

sync with head

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:40:00 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.26: +7 -7 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync with HEAD.

Revision 1.21.12.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:33:45 2010 UTC (14 years ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.21: +5 -3 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync to netbsd-5

Revision 1.27 / (download) - annotate - [select for diffs], Fri Mar 19 23:27:12 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.26: +7 -7 lines
Diff to previous 1.26 (colored)

Cosmetic: abbreviate: use `pc' instead of `pci_chipset_tag'.

Revision 1.21.8.3 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:46 2009 UTC (14 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.21.8.2: +7 -14 lines
Diff to previous 1.21.8.2 (colored) to branchpoint 1.21 (colored)

Sync with HEAD.

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Sun Oct 4 00:03:19 2009 UTC (14 years, 6 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.21: +5 -3 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1054):
	sys/arch/xen/x86/intr.c: revision 1.22
	sys/arch/xen/xen/isa_machdep.c: revision 1.14
	sys/arch/xen/xen/pci_intr_machdep.c: revision 1.9
	sys/arch/xen/xen/pciide_machdep.c: revision 1.12
When ioapic is used, for ISA interrupts, reuse the legacy ISA interrupt
number instead of allocating a new one. Force allocating a new interrupt number
for PCI devices, as the number stored in the PCI interrupt register
may be wrong.
This should help using a pciide controller in compat mode or ISA devices
in a non-0 domain.

Revision 1.17.10.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:46:54 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.17.10.3: +7 -14 lines
Diff to previous 1.17.10.3 (colored) to branchpoint 1.17 (colored)

sync with head.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Aug 18 16:41:03 2009 UTC (14 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.25: +7 -7 lines
Diff to previous 1.25 (colored)

Switch to ACPICA 20090730, and update for API changes.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jul 29 12:02:08 2009 UTC (14 years, 8 months ago) by cegger
Branch: MAIN
Changes since 1.24: +1 -8 lines
Diff to previous 1.24 (colored)

remove Xen2 support.
ok bouyer@

Revision 1.17.10.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:13 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.17.10.2: +11 -3 lines
Diff to previous 1.17.10.2 (colored) to branchpoint 1.17 (colored)

sync with head

Revision 1.21.8.2 / (download) - annotate - [select for diffs], Sat Jun 6 22:30:41 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.21.8.1: +11 -3 lines
Diff to previous 1.21.8.1 (colored) to branchpoint 1.21 (colored)

As requested by cegger@, apply the following patch to jym-xensuspend branch:

Interrupt handling in Xen 3.5 changed. There's no longer
a hardcoded upper limit. So *our* upper limit of 200 may be different from machine to machine now.
So just retry if the hypercall failed.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jun 3 12:43:22 2009 UTC (14 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.23: +11 -3 lines
Diff to previous 1.23 (colored)

Interrupt handling in Xen 3.5 changed. There's no longer
a hardcoded upper limit. So *our* upper limit of 200 may be different from machine to machine now.
So just retry if the hypercall failed.

Revision 1.21.8.1 / (download) - annotate - [select for diffs], Wed May 13 17:18:50 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.21: +21 -3 lines
Diff to previous 1.21 (colored)

Sync with HEAD.

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

Revision 1.17.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:14 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.17.10.1: +30 -11 lines
Diff to previous 1.17.10.1 (colored) to branchpoint 1.17 (colored)

sync with head.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:01 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.21: +21 -3 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with HEAD.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Apr 22 21:16:40 2009 UTC (15 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.22: +17 -1 lines
Diff to previous 1.22 (colored)

Make xen kernels build again.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 10 17:21:57 2009 UTC (15 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.21: +5 -3 lines
Diff to previous 1.21 (colored)

When ioapic is used, for ISA interrupts, reuse the legacy ISA interrupt
number instead of allocating a new one. Force allocating a new interrupt number
for PCI devices, as the number stored in the PCI interrupt register
may be wrong.
This should help using a pciide controller in compat mode or ISA devices
in a non-0 domain.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:13 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with HEAD.

Revision 1.17.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:14 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.17.6.1: +7 -7 lines
Diff to previous 1.17.6.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Sync with HEAD.

Revision 1.17.12.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:33:39 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.17.12.1: +8 -8 lines
Diff to previous 1.17.12.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Sep 5 13:37:24 2008 UTC (15 years, 7 months ago) by tron
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, nick-hppapmap-base2, netbsd-5-base, 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, mjf-devfs2-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64, jym-xensuspend
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

Compile NetBSD/amd64 kernels with "-Wextra". Patches contributed by
Juan RP in PR port-amd64/39266.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:37:57 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jul 3 14:02:25 2008 UTC (15 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

Remove "struct device" from "struct pic", where it was only real
for ioapics and faked up for others. Add it to "struct ioapic_softc"
for now, until device/softc get split.
This required all typecasts between "struct pic" and "struct ioapic_softc"
to be replaced, I hope I got them all.
functionally tested on i386, compile-tested on xen, untested on amd64

Revision 1.17.12.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:51 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.17: +6 -5 lines
Diff to previous 1.17 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.17.8.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:04 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.17.8.1: +3 -2 lines
Diff to previous 1.17.8.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

sync with head

Revision 1.17.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:54 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.17: +5 -4 lines
Diff to previous 1.17 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Fri May 30 19:03:10 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Add a 'known_mpsafe' argument to intr_establish().

Revision 1.17.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:08 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

sync with head.

Revision 1.17.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:23:30 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Sun May 11 15:59:51 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

Stop using APIC IDs to identify CPUs for software purposes. Allows for
APIC IDs beyond 31, which has been possible for some time now.

Revision 1.13.24.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:30 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.13.24.1: +1 -3 lines
Diff to previous 1.13.24.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

sync with HEAD

Revision 1.13.30.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:20 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.13.30.2: +1 -3 lines
Diff to previous 1.13.30.2 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Sync with HEAD.

Revision 1.6.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:40:32 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.6.2.4: +2 -5 lines
Diff to previous 1.6.2.4 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

sync with head

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 11 20:00:51 2008 UTC (16 years, 3 months ago) by bouyer
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, wrstuden-revivesa, mjf-devfs2
Changes since 1.16: +1 -3 lines
Diff to previous 1.16 (colored)

Merge the bouyer-xeni386 branch to head, at tag bouyer-xeni386-merge1 (the
branch is still active and will see i386PAE support developement).
Sumary of changes:
- switch xeni386 to the x86/x86/pmap.c, and the xen/x86/x86_xpmap.c
  pmap bootstrap.
- merge back most of xen/i386/ to i386/i386
- change the build to reduce diffs between i386 and amd64 in file locations
- remove include files that were identical to the i386/amd64 counterparts,
  the build will find them via the xen-ma/machine link.

Revision 1.13.24.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:50:14 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.13: +8 -71 lines
Diff to previous 1.13 (colored)

sync with HEAD

Revision 1.15.6.2 / (download) - annotate - [select for diffs], Sun Jan 6 18:29:46 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.15.6.1: +0 -2 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Merge needed changes to genassym.cf and locore.S for xeni386 back to
arch/i386. Switch xeni386 to use the arch/i386 cpu.h.

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:51:34 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.15: +2 -3 lines
Diff to previous 1.15 (colored)

Sync with HEAD

Revision 1.13.30.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:43:30 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.13.30.1: +2 -3 lines
Diff to previous 1.13.30.1 (colored) to branchpoint 1.13 (colored)

Sync with HEAD.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:43:02 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.15: +2 -3 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 20 23:46:12 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base
Changes since 1.15: +2 -3 lines
Diff to previous 1.15 (colored)

- Make __cpu_simple_lock and similar real functions and patch at runtime.
- Remove old x86 atomic ops.
- Drop text alignment back to 16 on i386 (really, this time).
- Minor cleanup.

Revision 1.13.22.2 / (download) - annotate - [select for diffs], Sun Dec 9 19:36:32 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.13.22.1: +1 -67 lines
Diff to previous 1.13.22.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Sync with HEAD.

Revision 1.13.30.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:18:24 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.13: +7 -69 lines
Diff to previous 1.13 (colored)

Sync with HEAD.

Revision 1.6.2.4 / (download) - annotate - [select for diffs], Fri Dec 7 17:27:17 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.6.2.3: +7 -69 lines
Diff to previous 1.6.2.3 (colored) to branchpoint 1.6 (colored)

sync with head

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Mon Dec 3 18:40:40 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.13: +7 -69 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 3 15:34:29 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.14: +1 -67 lines
Diff to previous 1.14 (colored)

Interrupt handling changes, in discussion since February:

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

Revision 1.13.22.1 / (download) - annotate - [select for diffs], Tue Nov 27 19:36:20 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.13: +7 -3 lines
Diff to previous 1.13 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 22 16:17:04 2007 UTC (16 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.13: +7 -3 lines
Diff to previous 1.13 (colored)

Pull up the bouyer-xenamd64 branch to HEAD. This brings in amd64 support
to NetBSD/Xen, both Dom0 and DomU.

Revision 1.13.28.1 / (download) - annotate - [select for diffs], Wed Oct 17 21:08:21 2007 UTC (16 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.13: +7 -3 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Prepare for xenamd64:
- kill xen/i386/identcpu.c, use i386/i386/identcpu.c instead (with a few
  #ifndef XEN)
- move some files that can be shared between i386 and amd64 from
  xen/i386 to xen/x86 (or to xen/xen for non-cpu-specific code)
- split assembly out of xen/include/hypervisor.h to xen/include/hypercalls.h
- use <xen/...> instead of <machine/...> for cpu-independant include files.

more work needed here, i386-specific files should got out of arch/xen to
arch/xeni386, and more code shared with arch/i386.

Revision 1.13.12.1 / (download) - annotate - [select for diffs], Wed Apr 18 04:45:15 2007 UTC (17 years ago) by thorpej
Branch: thorpej-atomic
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Convert i386 and amd64 to the new atomic ops API.

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:08:56 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.6.2.2: +1 -2 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored)

sync with head.

Revision 1.8.8.3 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:12 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.8.8.2: +1 -2 lines
Diff to previous 1.8.8.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 29 01:52:46 2007 UTC (17 years, 2 months ago) by hubertf
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, yamt-idlelwp, vmlocking-base, thorpej-atomic-base, reinoud-bufcleanup, ppcoea-renovation-base, ppcoea-renovation, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, thorpej-atomic, mjf-devfs, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)

Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.

Revision 1.8.8.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:01:02 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.8.8.1: +8 -1 lines
Diff to previous 1.8.8.1 (colored) to branchpoint 1.8 (colored)

Sync with head.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:25 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.6.2.1: +231 -7 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

sync with head.

Revision 1.8.10.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:43 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.8.10.1: +8 -1 lines
Diff to previous 1.8.10.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

sync with head.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Dec 8 15:05:18 2006 UTC (17 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Changes since 1.11: +8 -1 lines
Diff to previous 1.11 (colored)

- pass intrframe by-pointer, not by-value.
- make i386 and xen use per-cpu interrupt stack.

xen part is reviewed by Manuel Bouyer.

Revision 1.8.8.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:29:39 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.8: +224 -7 lines
Diff to previous 1.8 (colored)

Sync with head.

Revision 1.8.10.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:20 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.8: +224 -7 lines
Diff to previous 1.8 (colored)

sync with head

Revision 1.11 / (download) - annotate - [select for diffs], Sun Oct 15 13:31:18 2006 UTC (17 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

include machine/mpconfig.h so that these files can be compiled
with ACPI but without MPBIOS.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Oct 12 09:01:02 2006 UTC (17 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

intr_establish: add a missing ";" in the case of NIOAPIC==0.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Sep 28 18:53:15 2006 UTC (17 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.8: +223 -7 lines
Diff to previous 1.8 (colored)

Add Xen3 support for ACPI and/or MPBIOS + IOAPIC. To help with this, physical
CPUs are now configured on mainbus only in dom0, and only to know about
their APIC id. virtual CPUs are attached to hypervisor as:
vcpu* at hypervisor?
and this is what's used as curcpu(). The kernel config files needs to be
updated for this, see XEN3_DOM0 or XEN3_DOMU for examples.
XEN3_DOM0 now has acpi, MPBIOS and ioapic by default.
Note that a Xen dom0 kernel doens't have access to the lapic.

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:45:05 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.7: +31 -1 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

sync with head

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:58:23 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.6: +32 -3 lines
Diff to previous 1.6 (colored)

sync with head.

Revision 1.7.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:48:25 2006 UTC (17 years, 11 months ago) by tron
Branch: peter-altq
Changes since 1.7: +31 -1 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.7.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:11 2006 UTC (18 years ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.7: +31 -1 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync with head.

Revision 1.7.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 02:34:03 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.7: +31 -1 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

sync with head - hopefully this will work

Revision 1.7.8.1 / (download) - annotate - [select for diffs], Tue Apr 11 11:53:48 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.7: +31 -1 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

sync with head

Revision 1.8 / (download) - annotate - [select for diffs], Sun Apr 9 19:28:01 2006 UTC (18 years ago) by bouyer
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.7: +31 -1 lines
Diff to previous 1.7 (colored)

Add support for ACPI in xen-3 dom0 support. We can now boot a xen-3 dom0
kernel with a default xen comamnd line.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 11 12:19:50 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored)

merge ktrace-lwp.

Revision 1.2.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 14:00:34 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.6: +68 -90 lines
Diff to previous 1.2.2.6 (colored) next main 1.3 (colored)

Sync with HEAD. Here we go again...

Revision 1.3.6.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:30 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.3: +132 -707 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

sync with -current

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Thu Apr 28 10:19:24 2005 UTC (18 years, 11 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.4.2.1: +55 -96 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Pull up revision 1.6 (requested by bouyer in ticket #192):
Get rid of the event to pseudo-irq mapping. We are limited to 32 pseudo-irq,
including soft interrupt, and this is way too low in some use (lots of domains,
or domains with lots of xennet, or even hardware with lots of devices at
different interrupts).
Based on idea from YAMAMOTO Takashi, keep one list of handler per-event and
one per-IPL (so the same handler is now in 2 lists). In the common case were
an event is received at low IPL, we can call the handlers quickly (there
is usually only one handler per event, unless the event is mapped to a
physical interrupt and this interrupt is shared by different devices).
Deffered events and software interrupts are handled by a bitmask (as before)
with one bit per IPL. When one IPL has an event pending all handlers for
this IPL will be called.
With this change, it is now possible to have all the 1024 events active.
While here, handle debug event in a special way: the handler is always called,
regardless of the current IPL. Make the handler print usefull informations
about events and IPL states.
Also remove code not used on Xen in files inherited from the x86 port.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Apr 16 22:49:38 2005 UTC (19 years ago) by bouyer
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, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.5: +57 -98 lines
Diff to previous 1.5 (colored)

Get rid of the event to pseudo-irq mapping. We are limited to 32 pseudo-irq,
including soft interrupt, and this is way too low in some use (lots of domains,
or domains with lots of xennet, or even hardware with lots of devices at
different interrupts).
Based on idea from YAMAMOTO Takashi, keep one list of handler per-event and
one per-IPL (so the same handler is now in 2 lists). In the common case were
an event is received at low IPL, we can call the handlers quickly (there
is usually only one handler per event, unless the event is mapped to a
physical interrupt and this interrupt is shared by different devices).
Deffered events and software interrupts are handled by a bitmask (as before)
with one bit per IPL. When one IPL has an event pending all handlers for
this IPL will be called.
With this change, it is now possible to have all the 1024 events active.

While here, handle debug event in a special way: the handler is always called,
regardless of the current IPL. Make the handler print usefull informations
about events and IPL states.
Also remove code not used on Xen in files inherited from the x86 port.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Wed Apr 13 21:38:58 2005 UTC (19 years ago) by tron
Branch: netbsd-3
Changes since 1.4: +23 -2 lines
Diff to previous 1.4 (colored)

Pull up revision 1.5 (requested by yamt in ticket #146):
fix a bug which corrupts runqueue.
when dealing with events, which are handed to xenevt pseudo device,
don't call wakeup(9)/selnotify(9) at too high IPL.  PR/29792.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 11 12:10:31 2005 UTC (19 years ago) by yamt
Branch: MAIN
Changes since 1.4: +23 -2 lines
Diff to previous 1.4 (colored)

fix a bug which corrupts runqueue.
when dealing with events, which are handed to xenevt pseudo device,
don't call wakeup(9)/selnotify(9) at too high IPL.  PR/29792.

Revision 1.2.2.6 / (download) - annotate - [select for diffs], Fri Apr 1 14:29:11 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.5: +70 -624 lines
Diff to previous 1.2.2.5 (colored)

Sync with HEAD.

Revision 1.3.8.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:26 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.3: +70 -625 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 9 22:39:21 2005 UTC (19 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.3: +70 -625 lines
Diff to previous 1.3 (colored)

Merge the bouyer-xen2 branch. This add supports for the Xen 2.0 virtual
machine kernel (both privileged and non-privileged domains), and remove support
for the old xen 1.2.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Tue Jan 18 14:09:32 2005 UTC (19 years, 3 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.3.4.1: +2 -642 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Remove unused code.

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Fri Dec 17 16:37:35 2004 UTC (19 years, 4 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.3: +105 -20 lines
Diff to previous 1.3 (colored)

Sync with arch/x86/x86/intr.c 1.20.

Revision 1.2.2.5 / (download) - annotate - [select for diffs], Tue Nov 2 07:51:06 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.4: +6 -6 lines
Diff to previous 1.2.2.4 (colored)

Sync with HEAD.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 23 21:27:35 2004 UTC (19 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1, bouyer-xen2-base
Branch point for: yamt-km, kent-audio2, bouyer-xen2
Changes since 1.2: +6 -6 lines
Diff to previous 1.2 (colored)

don't reference kernel_lock directly.

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:24:45 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.3: +2 -2 lines
Diff to previous 1.2.2.3 (colored)

Fix the sync with head I botched.

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:42:53 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.2: +2 -2 lines
Diff to previous 1.2.2.2 (colored)

Sync with HEAD.

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

Sync with HEAD

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Sat May 22 15:59:31 2004 UTC (19 years, 11 months ago) by he
Branch: netbsd-2-0
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-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
Changes since 1.1: +8 -11 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Pull up revision 1.2 (requested by cl in ticket #337):
	Upgrade xen support:
	 - add block device driver
	 - network device driver bug fixes
	 - support for vga/keyboard/mouse
	 - support for domain0 operations
	 - fix /dev/mem and i386_iopl, reboot, event dispatch
	 - fix clock support, cpu speed report, lazy fpu switching
	 - add xen12load loader
	 - sys/arch/xen parts of build.sh release support
	[cl, ticket #337]

Revision 1.2.2.1, Sun Apr 11 00:18:29 2004 UTC (20 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.2: +0 -843 lines
FILE REMOVED

file intr.c was added on branch ktrace-lwp on 2004-08-03 10:43:19 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 11 00:18:29 2004 UTC (20 years ago) by cl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.1: +8 -11 lines
Diff to previous 1.1 (colored)

catch up with arch/x86/x86/intr.c
1.15/kochi
use designated initializer for struct pic initializers.
just for readability.

update the xenev_pic initializer as well

Revision 1.1 / (download) - annotate - [select for diffs], Thu Mar 11 21:44:08 2004 UTC (20 years, 1 month ago) by cl
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0

Add port to the Xen virtual machine monitor.
(see http://www.cl.cam.ac.uk/Research/SRG/netos/xen/)

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>