projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5524ea3
)
x86: replace early exception setup macro recursion with loop
author
Andi Kleen
<
[email protected]
>
Tue, 11 Mar 2008 01:23:22 +0000
(
02:23
+0100)
committer
Ingo Molnar
<
[email protected]
>
Thu, 17 Apr 2008 15:41:29 +0000
(17:41 +0200)
The early exception handlers are currently set up using a macro
recursion. There is only one user left. Replace the macro with a
standard loop in place.
Noop patch, just a cleanup.
[
[email protected]
: simplified ]
Signed-off-by: Andi Kleen <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Thomas Gleixner <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/head_64.S
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/head_64.S
b/arch/x86/kernel/head_64.S
index 2c0abe0e3c687b5200dc01e4c9b98689938f8822..5e0391229502cf5b49ccb6954dd902f23237a35b 100644
(file)
--- a/
arch/x86/kernel/head_64.S
+++ b/
arch/x86/kernel/head_64.S
@@
-268,18
+268,14
@@
bad_address:
jmp bad_address
#ifdef CONFIG_EARLY_PRINTK
-.macro early_idt_tramp first, last
- .ifgt \last-\first
- early_idt_tramp \first, \last-1
- .endif
- movl $\last,%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
+ movl $i, %esi
+ jmp early_idt_handler
+ i = i + 1
+ .endr
#endif
ENTRY(early_idt_handler)