[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/10] Missing `*' in assembler indirect lcall
From: |
Guillem Jover |
Subject: |
[PATCH 06/10] Missing `*' in assembler indirect lcall |
Date: |
Thu, 17 Dec 2009 14:39:26 +0100 |
* linux/src/arch/i386/kernel/bios32.c (bios32_service): Add `*'
in indirect lcall.
(check_pcibios, pci_bios_find_class, pci_bios_find_device): Likewise.
(pci_bios_read_config_byte, pci_bios_read_config_word): Likewise.
(pci_bios_read_config_dword, pci_bios_write_config_byte): Likewise.
(pci_bios_write_config_word, pci_bios_write_config_dword): Likewise.
---
linux/src/arch/i386/kernel/bios32.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/linux/src/arch/i386/kernel/bios32.c
b/linux/src/arch/i386/kernel/bios32.c
index 5a0fc38..0b357be 100644
--- a/linux/src/arch/i386/kernel/bios32.c
+++ b/linux/src/arch/i386/kernel/bios32.c
@@ -166,7 +166,7 @@ static unsigned long bios32_service(unsigned long service)
unsigned long flags;
save_flags(flags); cli();
- __asm__("lcall (%%edi)"
+ __asm__("lcall *(%%edi)"
: "=a" (return_code),
"=b" (address),
"=c" (length),
@@ -209,7 +209,7 @@ static int check_pcibios(void)
pci_indirect.address = pcibios_entry;
save_flags(flags); cli();
- __asm__("lcall (%%edi)\n\t"
+ __asm__("lcall *(%%edi)\n\t"
"jc 1f\n\t"
"xor %%ah, %%ah\n"
"1:\tshl $8, %%eax\n\t"
@@ -254,7 +254,7 @@ static int pci_bios_find_class (unsigned int class_code,
unsigned short index,
unsigned long flags;
save_flags(flags); cli();
- __asm__ ("lcall (%%edi)\n\t"
+ __asm__ ("lcall *(%%edi)\n\t"
"jc 1f\n\t"
"xor %%ah, %%ah\n"
"1:"
@@ -279,7 +279,7 @@ static int pci_bios_find_device (unsigned short vendor,
unsigned short device_id
unsigned long flags;
save_flags(flags); cli();
- __asm__("lcall (%%edi)\n\t"
+ __asm__("lcall *(%%edi)\n\t"
"jc 1f\n\t"
"xor %%ah, %%ah\n"
"1:"
@@ -304,7 +304,7 @@ static int pci_bios_read_config_byte(unsigned char bus,
unsigned long flags;
save_flags(flags); cli();
- __asm__("lcall (%%esi)\n\t"
+ __asm__("lcall *(%%esi)\n\t"
"jc 1f\n\t"
"xor %%ah, %%ah\n"
"1:"
@@ -326,7 +326,7 @@ static int pci_bios_read_config_word (unsigned char bus,
unsigned long flags;
save_flags(flags); cli();
- __asm__("lcall (%%esi)\n\t"
+ __asm__("lcall *(%%esi)\n\t"
"jc 1f\n\t"
"xor %%ah, %%ah\n"
"1:"
@@ -348,7 +348,7 @@ static int pci_bios_read_config_dword (unsigned char bus,
unsigned long flags;
save_flags(flags); cli();
- __asm__("lcall (%%esi)\n\t"
+ __asm__("lcall *(%%esi)\n\t"
"jc 1f\n\t"
"xor %%ah, %%ah\n"
"1:"
@@ -370,7 +370,7 @@ static int pci_bios_write_config_byte (unsigned char bus,
unsigned long flags;
save_flags(flags); cli();
- __asm__("lcall (%%esi)\n\t"
+ __asm__("lcall *(%%esi)\n\t"
"jc 1f\n\t"
"xor %%ah, %%ah\n"
"1:"
@@ -392,7 +392,7 @@ static int pci_bios_write_config_word (unsigned char bus,
unsigned long flags;
save_flags(flags); cli();
- __asm__("lcall (%%esi)\n\t"
+ __asm__("lcall *(%%esi)\n\t"
"jc 1f\n\t"
"xor %%ah, %%ah\n"
"1:"
@@ -414,7 +414,7 @@ static int pci_bios_write_config_dword (unsigned char bus,
unsigned long flags;
save_flags(flags); cli();
- __asm__("lcall (%%esi)\n\t"
+ __asm__("lcall *(%%esi)\n\t"
"jc 1f\n\t"
"xor %%ah, %%ah\n"
"1:"
--
1.6.5.4
- [PATCH 00/10] Warnings cleanup to make way for amd64 porting, Guillem Jover, 2009/12/17
- [PATCH 01/10] Use explicit type int when defining register variables, Guillem Jover, 2009/12/17
- [PATCH 02/10] Match function types with `struct tty' member functions, Guillem Jover, 2009/12/17
- [PATCH 05/10] Interrupt handlers do not return any value, Guillem Jover, 2009/12/17
- [PATCH 08/10] Use `unsigned char *' for byte buffers, Guillem Jover, 2009/12/17
- [PATCH 07/10] Mark macro arguments as used, Guillem Jover, 2009/12/17
- [PATCH 06/10] Missing `*' in assembler indirect lcall,
Guillem Jover <=
- [PATCH 04/10] Use selector definitions from Mach for Linux code, Guillem Jover, 2009/12/17
- [PATCH 03/10] Move linux/dev/include/asm-i386/segment.h to src tree, Guillem Jover, 2009/12/17
- [PATCH 09/10] Add missing function prototypes, Guillem Jover, 2009/12/17
- [PATCH 10/10] Add missing casts, Guillem Jover, 2009/12/17
- Re: [PATCH 00/10] Warnings cleanup to make way for amd64 porting, Samuel Thibault, 2009/12/17