x86: 32 bit: interrupt stub consistency with 64 bit
Don't generate interrupt stubs for interrupt vectors below FIRST_EXTERNAL_VECTOR, and make the table of interrupt vectors (interrupt[]) __initconst. Both of these changes both conserve memory and improve consistency with 64 bits. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
@@ -622,16 +622,16 @@ END(syscall_badsys)
|
||||
* Build the entry stubs and pointer table with
|
||||
* some assembler magic.
|
||||
*/
|
||||
.section .rodata,"a"
|
||||
.section .init.rodata,"a"
|
||||
ENTRY(interrupt)
|
||||
.text
|
||||
|
||||
ENTRY(irq_entries_start)
|
||||
RING0_INT_FRAME
|
||||
vector=0
|
||||
vector=FIRST_EXTERNAL_VECTOR
|
||||
.rept NR_VECTORS
|
||||
ALIGN
|
||||
.if vector
|
||||
.if vector != FIRST_EXTERNAL_VECTOR
|
||||
CFI_ADJUST_CFA_OFFSET -4
|
||||
.endif
|
||||
1: pushl $~(vector)
|
||||
|
Reference in New Issue
Block a user