From: Andi Kleen <andi@firstfloor.org>
To: mingo@elte.hu, linux-kernel@vger.kernel.org, tglx@linutronix.de,
roland@redhat.com
Subject: [PATCH] [3/3] Replace macro recursion with more conventional loop
Date: Mon, 25 Feb 2008 12:07:10 +0100 (CET) [thread overview]
Message-ID: <20080225110710.EBB2D1B4192@basil.firstfloor.org> (raw)
In-Reply-To: <200802251207.906590508@firstfloor.org>
The early exception handlers are currently set up using a macro
recursion. Replace that with a standard loop.
Noop patch, just a cleanup.
---
arch/x86/kernel/head_64.S | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
Index: linux/arch/x86/kernel/head_64.S
===================================================================
--- linux.orig/arch/x86/kernel/head_64.S
+++ linux/arch/x86/kernel/head_64.S
@@ -269,18 +269,17 @@ bad_address:
.section ".init.text","ax"
#ifdef CONFIG_EARLY_PRINTK
-.macro early_idt_tramp first, last
- .ifgt \last-\first
- early_idt_tramp \first, \last-1
- .endif
- movl $\last,%esi
+.macro early_idt_tramp i
+ movl $\i,%esi
jmp early_idt_handler
.endm
-
.globl early_idt_handlers
early_idt_handlers:
- .set maxe,NUM_EXCEPTION_VECTORS-1
- early_idt_tramp 0,maxe
+ i = 0
+ .rept NUM_EXCEPTION_VECTORS
+ early_idt_tramp i
+ i = i+1
+ .endr
#endif
ENTRY(early_idt_handler)
prev parent reply other threads:[~2008-02-25 11:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-25 11:07 [PATCH] [1/3] Don't set up early exception handlers for external interrupts Andi Kleen
2008-02-25 11:07 ` [PATCH] [2/3] Move early exception handlers into init.text Andi Kleen
2008-02-25 11:07 ` Andi Kleen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080225110710.EBB2D1B4192@basil.firstfloor.org \
--to=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=roland@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®