login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
February
»
25
Re: [PATCH 12/14] x86_64 irq: Add constants for the reserved IRQ vectors.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Pavel Machek
Subject:
Re: [PATCH 12/14] x86_64 irq: Add constants for the reserved IRQ vectors.
Date: Sunday, February 25, 2007 - 12:48 pm
On Sun 2007-02-25 04:15:30, Eric W. Biederman wrote:
quoted text
> Pavel Machek <pavel@ucw.cz> writes: > > > Hi! > > > >> For the ISA irqs we reserve 16 vectors. This patch adds constants for > >> those vectors and modifies the code to use them. Making the code a > >> little clearer and making it possible to move these vectors in the future. > > > > > >> /* > >> * Vectors 0x20-0x2f are used for ISA interrupts. > >> */ > >> +#define IRQ0_VECTOR FIRST_EXTERNAL_VECTOR > >> +#define IRQ1_VECTOR IRQ0_VECTOR + 1 > > > > Maybe IRQ_VECTOR(1) would be similary readable, and would avoid > > > >> +#define IRQ2_VECTOR IRQ0_VECTOR + 2 > >> +#define IRQ3_VECTOR IRQ0_VECTOR + 3 > >> +#define IRQ4_VECTOR IRQ0_VECTOR + 4 > >> +#define IRQ5_VECTOR IRQ0_VECTOR + 5 > >> +#define IRQ6_VECTOR IRQ0_VECTOR + 6 > >> +#define IRQ7_VECTOR IRQ0_VECTOR + 7 > >> +#define IRQ8_VECTOR IRQ0_VECTOR + 8 > >> +#define IRQ9_VECTOR IRQ0_VECTOR + 9 > >> +#define IRQ10_VECTOR IRQ0_VECTOR + 10 > >> +#define IRQ11_VECTOR IRQ0_VECTOR + 11 > >> +#define IRQ12_VECTOR IRQ0_VECTOR + 12 > >> +#define IRQ13_VECTOR IRQ0_VECTOR + 13 > >> +#define IRQ14_VECTOR IRQ0_VECTOR + 14 > >> +#define IRQ15_VECTOR IRQ0_VECTOR + 15 > > > > ...these defines? > > It would, and mostly I like it. However, of the 1500+ possible irqs > exactly 16 have a reserved vector. IRQ_VECTOR(N) does not convey > that in fact it conveys the opposite impression. > > So I think the code is more maintainable with the distinct > definitions.
BUILD_BUG_ON(x > 15) ? ;-). Pavel -- (english)
http://www.livejournal.com/~pavelmachek
(cesky, pictures)
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] x86_64 irq: Simplfy __assign_irq_vector
, Eric W. Biederman
, (Fri Feb 2, 5:31 pm)
[PATCH 2/2] x86_64 irq: Handle irqs pending in IRR during ...
, Eric W. Biederman
, (Fri Feb 2, 5:35 pm)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Andrew Morton
, (Fri Feb 2, 6:05 pm)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Eric W. Biederman
, (Fri Feb 2, 6:39 pm)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Andrew Morton
, (Fri Feb 2, 7:01 pm)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Arjan van de Ven
, (Sat Feb 3, 12:32 am)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Eric W. Biederman
, (Sat Feb 3, 12:55 am)
Re: [PATCH 1/2] x86_64 irq: Simplfy __assign_irq_vector
, Andi Kleen
, (Sat Feb 3, 2:50 am)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Andi Kleen
, (Sat Feb 3, 3:01 am)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Eric W. Biederman
, (Sat Feb 3, 3:22 am)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Andi Kleen
, (Sat Feb 3, 3:26 am)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, l.genoni
, (Sat Feb 3, 7:31 am)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Ingo Molnar
, (Tue Feb 6, 12:36 am)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Eric W. Biederman
, (Tue Feb 6, 1:57 am)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Eric W. Biederman
, (Tue Feb 6, 3:16 pm)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Ingo Molnar
, (Tue Feb 6, 3:25 pm)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Eric W. Biederman
, (Tue Feb 6, 7:33 pm)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Eric W. Biederman
, (Thu Feb 8, 4:48 am)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Eric W. Biederman
, (Thu Feb 8, 1:19 pm)
Re: [PATCH 2/2] x86_64 irq: Handle irqs pending in IRR du ...
, Eric W. Biederman
, (Thu Feb 8, 11:40 pm)
What are the real ioapic rte programming constraints?
, Eric W. Biederman
, (Sat Feb 10, 4:52 pm)
Re: What are the real ioapic rte programming constraints?
, Zwane Mwaikambo
, (Sat Feb 10, 10:57 pm)
Re: What are the real ioapic rte programming constraints?
, Eric W. Biederman
, (Sun Feb 11, 3:20 am)
Re: What are the real ioapic rte programming constraints?
, Zwane Mwaikambo
, (Sun Feb 11, 9:16 am)
Re: What are the real ioapic rte programming constraints?
, Eric W. Biederman
, (Sun Feb 11, 3:01 pm)
Re: What are the real ioapic rte programming constraints?
, Zwane Mwaikambo
, (Sun Feb 11, 6:05 pm)
Re: What are the real ioapic rte programming constraints?
, Eric W. Biederman
, (Sun Feb 11, 9:51 pm)
Conclusions from my investigation about ioapic programming
, Eric W. Biederman
, (Fri Feb 23, 3:51 am)
[PATCH 0/14] x86_64 irq related fixes and cleanups.
, Eric W. Biederman
, (Fri Feb 23, 4:10 am)
[PATCH 01/14] x86_64 irq: Simplfy __assign_irq_vector
, Eric W. Biederman
, (Fri Feb 23, 4:11 am)
[PATCH 02/14] irq: Remove set_native_irq_info
, Eric W. Biederman
, (Fri Feb 23, 4:13 am)
[PATCH 03/14] x86_64 irq: Kill declaration of removed arra ...
, Eric W. Biederman
, (Fri Feb 23, 4:15 am)
[PATCH 04/14] x86_64 irq: Remove the unused vector paramet ...
, Eric W. Biederman
, (Fri Feb 23, 4:16 am)
[PATCH 05/14] x86_64 irq: Refactor setup_IO_APIC_irq
, Eric W. Biederman
, (Fri Feb 23, 4:19 am)
[PATCH 06/14] x86_64 irq: Simplfiy the set_affinity logic.
, Eric W. Biederman
, (Fri Feb 23, 4:20 am)
[PATCH 07/14] x86_64 irq: In __DO_ACTION perform the FINAL ...
, Eric W. Biederman
, (Fri Feb 23, 4:23 am)
[PATCH 08/14] x86_64 irq: Use NR_IRQS not NR_IRQ_VECTORS
, Eric W. Biederman
, (Fri Feb 23, 4:26 am)
[PATCH 09/14] x86_64 irq: Begin consolidating per_irq data ...
, Eric W. Biederman
, (Fri Feb 23, 4:32 am)
[PATCH 10/14] x86_64 irq: Simplify assign_irq_vector's arg ...
, Eric W. Biederman
, (Fri Feb 23, 4:35 am)
[PATCH 11/14] x86_64 irq: Remove unnecessary irq 0 setup.
, Eric W. Biederman
, (Fri Feb 23, 4:36 am)
[PATCH 12/14] x86_64 irq: Add constants for the reserved I ...
, Eric W. Biederman
, (Fri Feb 23, 4:38 am)
[PATCH 13/14] x86_64 irq: Safely cleanup an irq after movi ...
, Eric W. Biederman
, (Fri Feb 23, 4:40 am)
[PATCH 14/14] genirq: Mask irqs when migrating them.
, Eric W. Biederman
, (Fri Feb 23, 4:46 am)
[PATCH] x86_64 irq: Document what works and why on ioapics.
, Eric W. Biederman
, (Fri Feb 23, 5:01 am)
Re: Conclusions from my investigation about ioapic programming
, Jeff V. Merkey
, (Fri Feb 23, 9:48 am)
Re: Conclusions from my investigation about ioapic programming
, Jeff V. Merkey
, (Fri Feb 23, 10:48 am)
Re: Conclusions from my investigation about ioapic programming
, Jeff V. Merkey
, (Fri Feb 23, 10:48 am)
Re: Conclusions from my investigation about ioapic programming
, Eric W. Biederman
, (Fri Feb 23, 11:10 am)
Re: [PATCH 14/14] genirq: Mask irqs when migrating them.
, Siddha, Suresh B
, (Fri Feb 23, 7:06 pm)
Re: Conclusions from my investigation about ioapic programming
, Eric W. Biederman
, (Fri Feb 23, 9:05 pm)
Re: Conclusions from my investigation about ioapic programming
, Jeffrey V. Merkey
, (Fri Feb 23, 10:44 pm)
Re: [PATCH 12/14] x86_64 irq: Add constants for the reserv ...
, Pavel Machek
, (Sun Feb 25, 3:43 am)
Re: [PATCH 12/14] x86_64 irq: Add constants for the reserv ...
, Eric W. Biederman
, (Sun Feb 25, 4:15 am)
Re: [PATCH 13/14] x86_64 irq: Safely cleanup an irq after ...
, Mika Penttilä
, (Sun Feb 25, 4:53 am)
Re: [PATCH 13/14] x86_64 irq: Safely cleanup an irq after ...
, Eric W. Biederman
, (Sun Feb 25, 5:09 am)
Re: [PATCH 12/14] x86_64 irq: Add constants for the reserv ...
, Pavel Machek
, (Sun Feb 25, 12:48 pm)
Re: [PATCH 12/14] x86_64 irq: Add constants for the reserv ...
, Eric W. Biederman
, (Sun Feb 25, 2:01 pm)
Re: [PATCH 12/14] x86_64 irq: Add constants for the reserv ...
, Pavel Machek
, (Sun Feb 25, 2:13 pm)
Re: [PATCH 14/14] genirq: Mask irqs when migrating them.
, Andrew Morton
, (Tue Feb 27, 1:26 pm)
Re: [PATCH 14/14] genirq: Mask irqs when migrating them.
, Eric W. Biederman
, (Tue Feb 27, 1:41 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
monstr
[PATCH 46/56] microblaze_v2: headers files entry.h current.h mman.h registers.h se...
Jan Engelhardt
Re: Linux Security *Module* Framework (Was: LSM conversion to static interface)
Dave Jones
Re: Why do so many machines need "noapic"?
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Lars-Peter Clausen
[PATCH v4] MMC: Add JZ4740 mmc driver
git
:
Andy Parkins
git-fetch fails with error code 128
Eli Zaretskii
Re: Switching from CVS to GIT
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Dan Chokola
Re: how do you "force a pull"?
Johan Herland
Re: Comment on weak refs
git-commits-head
:
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
linux-netdev
:
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Ilpo Järvinen
net-next/unix: BUG: using smp_processor_id() in preemptible
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Evgeniy Polyakov
Re: virt-manager broken by bind(0) in net-next.
Eric Dumazet
Re: [PATCH] conntrack: use SLAB_DESTROY_BY_RCU for nf_conn structs
openbsd-misc
:
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
Henning Brauer
Re: Sun Blade 1000?
Laurens Vets
Re: OT: opinions on IDS / IPS solutions
Colocation donated by:
Syndicate