i386: Remove inline asm symbols from .dynsym

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
This commit is contained in:
Graeme Russ 2009-11-24 20:04:19 +11:00 committed by Wolfgang Denk
parent 564a9984bd
commit 0fc1b49ecb
5 changed files with 80 additions and 0 deletions

View file

@ -71,6 +71,8 @@ board_init16:
.section .bios, "ax" .section .bios, "ax"
.code16 .code16
.globl realmode_reset .globl realmode_reset
.hidden realmode_reset
.type realmode_reset, @function
realmode_reset: realmode_reset:
/* Alias MMCR to 0xdf000 */ /* Alias MMCR to 0xdf000 */
movw $0xfffc, %dx movw $0xfffc, %dx

View file

@ -73,6 +73,8 @@ void __attribute__ ((regparm(0))) generate_gpf(void);
/* segment 0x70 is an arbitrary segment which does not exist */ /* segment 0x70 is an arbitrary segment which does not exist */
asm(".globl generate_gpf\n" asm(".globl generate_gpf\n"
".hidden generate_gpf\n"
".type generate_gpf, @function\n"
"generate_gpf:\n" "generate_gpf:\n"
"ljmp $0x70, $0x47114711\n"); "ljmp $0x70, $0x47114711\n");

View file

@ -29,6 +29,8 @@
#define DECLARE_INTERRUPT(x) \ #define DECLARE_INTERRUPT(x) \
".globl irq_"#x"\n" \ ".globl irq_"#x"\n" \
".hidden irq_"#x"\n" \
".type irq_"#x", @function\n" \
"irq_"#x":\n" \ "irq_"#x":\n" \
"pushl %ebp\n" \ "pushl %ebp\n" \
"movl %esp,%ebp\n" \ "movl %esp,%ebp\n" \
@ -229,6 +231,8 @@ __isr__ irq_llsr(int ip, int seg, int irq)
* the easiest way I could do it. Maybe it can be made better later. * the easiest way I could do it. Maybe it can be made better later.
*/ */
asm(".globl irq_common_entry\n" \ asm(".globl irq_common_entry\n" \
".hidden irq_common_entry\n" \
".type irq_common_entry, @function\n" \
"irq_common_entry:\n" \ "irq_common_entry:\n" \
"pushl $0\n" \ "pushl $0\n" \
"pushl $0\n" \ "pushl $0\n" \

View file

@ -50,134 +50,200 @@
jmp realmode_reset jmp realmode_reset
.globl rm_int00 .globl rm_int00
.hidden rm_int00
.type rm_int00, @function
rm_int00: rm_int00:
pushw $0 pushw $0
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int01 .globl rm_int01
.hidden rm_int01
.type rm_int01, @function
rm_int01: rm_int01:
pushw $1 pushw $1
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int02 .globl rm_int02
.hidden rm_int02
.type rm_int02, @function
rm_int02: rm_int02:
pushw $2 pushw $2
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int03 .globl rm_int03
.hidden rm_int03
.type rm_int03, @function
rm_int03: rm_int03:
pushw $3 pushw $3
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int04 .globl rm_int04
.hidden rm_int04
.type rm_int04, @function
rm_int04: rm_int04:
pushw $4 pushw $4
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int05 .globl rm_int05
.hidden rm_int05
.type rm_int05, @function
rm_int05: rm_int05:
pushw $5 pushw $5
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int06 .globl rm_int06
.hidden rm_int06
.type rm_int06, @function
rm_int06: rm_int06:
pushw $6 pushw $6
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int07 .globl rm_int07
.hidden rm_int07
.type rm_int07, @function
rm_int07: rm_int07:
pushw $7 pushw $7
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int08 .globl rm_int08
.hidden rm_int08
.type rm_int08, @function
rm_int08: rm_int08:
pushw $8 pushw $8
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int09 .globl rm_int09
.hidden rm_int09
.type rm_int09, @function
rm_int09: rm_int09:
pushw $9 pushw $9
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int0a .globl rm_int0a
.hidden rm_int0a
.type rm_int0a, @function
rm_int0a: rm_int0a:
pushw $10 pushw $10
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int0b .globl rm_int0b
.hidden rm_int0b
.type rm_int0b, @function
rm_int0b: rm_int0b:
pushw $11 pushw $11
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int0c .globl rm_int0c
.hidden rm_int0c
.type rm_int0c, @function
rm_int0c: rm_int0c:
pushw $12 pushw $12
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int0d .globl rm_int0d
.hidden rm_int0d
.type rm_int0d, @function
rm_int0d: rm_int0d:
pushw $13 pushw $13
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int0e .globl rm_int0e
.hidden rm_int0e
.type rm_int0e, @function
rm_int0e: rm_int0e:
pushw $14 pushw $14
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int0f .globl rm_int0f
.hidden rm_int0f
.type rm_int0f, @function
rm_int0f: rm_int0f:
pushw $15 pushw $15
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int10 .globl rm_int10
.hidden rm_int10
.type rm_int10, @function
rm_int10: rm_int10:
pushw $16 pushw $16
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int11 .globl rm_int11
.hidden rm_int11
.type rm_int11, @function
rm_int11: rm_int11:
pushw $17 pushw $17
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int12 .globl rm_int12
.hidden rm_int12
.type rm_int12, @function
rm_int12: rm_int12:
pushw $18 pushw $18
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int13 .globl rm_int13
.hidden rm_int13
.type rm_int13, @function
rm_int13: rm_int13:
pushw $19 pushw $19
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int14 .globl rm_int14
.hidden rm_int14
.type rm_int14, @function
rm_int14: rm_int14:
pushw $20 pushw $20
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int15 .globl rm_int15
.hidden rm_int15
.type rm_int15, @function
rm_int15: rm_int15:
pushw $21 pushw $21
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int16 .globl rm_int16
.hidden rm_int16
.type rm_int16, @function
rm_int16: rm_int16:
pushw $22 pushw $22
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int17 .globl rm_int17
.hidden rm_int17
.type rm_int17, @function
rm_int17: rm_int17:
pushw $23 pushw $23
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int18 .globl rm_int18
.hidden rm_int18
.type rm_int18, @function
rm_int18: rm_int18:
pushw $24 pushw $24
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int19 .globl rm_int19
.hidden rm_int19
.type rm_int19, @function
rm_int19: rm_int19:
pushw $25 pushw $25
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int1a .globl rm_int1a
.hidden rm_int1a
.type rm_int1a, @function
rm_int1a: rm_int1a:
pushw $26 pushw $26
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int1b .globl rm_int1b
.hidden rm_int1b
.type rm_int1b, @function
rm_int1b: rm_int1b:
pushw $27 pushw $27
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int1c .globl rm_int1c
.hidden rm_int1c
.type rm_int1c, @function
rm_int1c: rm_int1c:
pushw $28 pushw $28
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int1d .globl rm_int1d
.hidden rm_int1d
.type rm_int1d, @function
rm_int1d: rm_int1d:
pushw $29 pushw $29
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int1e .globl rm_int1e
.hidden rm_int1e
.type rm_int1e, @function
rm_int1e: rm_int1e:
pushw $30 pushw $30
jmp any_interrupt16 jmp any_interrupt16
.globl rm_int1f .globl rm_int1f
.hidden rm_int1f
.type rm_int1f, @function
rm_int1f: rm_int1f:
pushw $31 pushw $31
jmp any_interrupt16 jmp any_interrupt16
.globl rm_def_int .globl rm_def_int
.hidden rm_def_int
.type rm_def_int, @function
rm_def_int: rm_def_int:
iret iret
@ -454,9 +520,13 @@ Lfunc_b1h:
.globl ram_in_64kb_chunks .globl ram_in_64kb_chunks
.hidden ram_in_64kb_chunks
.type ram_in_64kb_chunks, @function
ram_in_64kb_chunks: ram_in_64kb_chunks:
.word 0 .word 0
.globl bios_equipment .globl bios_equipment
.hidden bios_equipment
.type bios_equipment, @function
bios_equipment: bios_equipment:
.word 0 .word 0

View file

@ -34,6 +34,8 @@
.section .bios, "ax" .section .bios, "ax"
.code16 .code16
.globl realmode_pci_bios_call_entry .globl realmode_pci_bios_call_entry
.hidden realmode_pci_bios_call_entry
.type realmode_pci_bios_call_entry, @function
realmode_pci_bios_call_entry: realmode_pci_bios_call_entry:
MAKE_BIOS_STACK MAKE_BIOS_STACK
call realmode_pci_bios call realmode_pci_bios